Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor PROCTOR785@STUDY.IITM.AC.IN

Share your experience Add your viva experience here
15 Questions
1 Sets
0 Topics
0 Reviews
Tips for this examiner: Be thorough with your own code, have some knowledge of the theory. Be prepared to be told to write a new route.

Student reviews

No student reviews for this proctor yet.

Approved viva sets

  1. 1
    LEVEL 2 Viva :
    Times asked 1
    Official solution

    SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.

    Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.

  2. 2
    - First I was asked to run the app and present it.
    Times asked 1
    Official solution

    Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.

    Example

    python -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    flask run
  3. 3
    - He then asked about the folder structure :
    Times asked 1
    Official solution

    SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.

    Suggested flow1) Concept kya hai?
    2) Mere code mein kahan?
    3) Example / demo
    4) Edge case

    Example

    # related file: models.py / routes / template
    # formula: request → check/auth → DB → render/redirect

    Viva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.

  4. 4
    what is your folder structure like? How many controllers do you have ?
    Times asked 1
    Official solution

    SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.

    Suggested flow1) Concept kya hai?
    2) Mere code mein kahan?
    3) Example / demo
    4) Edge case

    Example

    # related file: models.py / routes / template
    # formula: request → check/auth → DB → render/redirect

    Viva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.

  5. 5
    I was then asked to explain my models. He asked me what does this cascade, all-delete mean.
    Times asked 1
    Official solution

    SimpleCascade parent delete pe children pe kya ho: delete-orphan related rows hata deta hai.

    Example

    db.relationship('Spot', cascade='all, delete-orphan')

    Viva tipParking lot delete → uske spots/bookings policy clear bolo.

  6. 6
    - I was then asked to show my routes, we started with authentication routes like login, registration routes. He asked to explain what was happening in these routes.
    Times asked 1
    Official solution

    SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).

    Example

    # auth
    if check_password_hash(user.password, pwd):
        session['user_id'] = user.id
    
    # authz
    if user.role != 'admin':
        abort(403)
  7. 7
    - Continuing with routes he asked me the difference between redirect and render_template.
    Times asked 1
    Official solution

    Simplerender_template Jinja HTML file ko data deke final HTML banata hai.

    Example

    return render_template('dashboard.html', user=user, lots=lots)
  8. 8
    - next he asked if I had used template inheritance, I hadn't so we moved on, he asked where did I use jinja2 and show an example in my templates. He asked what was the purpose of this jinja2 code I had written and explain it.
    Times asked 1
    Official solution

    SimpleBase template pe navbar/footer, child pages {% extends %} + {% block %} se content bharte hain. DRY.

    Example

    {# base.html #}
    {% block content %}{% endblock %}
    
    {# home.html #}
    {% extends 'base.html' %}
    {% block content %}
      <h1>Home</h1>
    {% endblock %}
  9. 9
    - next I was asked some theory :
    Times asked 1
    Official solution

    SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.

  10. 10
    what are the advantages and disadvantages of flask_sqlalchemy ORM?
    Times asked 1
    Official solution

    SimpleSQLAlchemy MAD1 ka common ORM. Flask-SQLAlchemy wrapper se db.Model, db.session.

    Example

    user = User(email='a@b.com')
    db.session.add(user)
    db.session.commit()
    users = User.query.filter_by(role='admin').all()
  11. 11
    what is horizontal scaling ? and what is vertical scaling?
    Times asked 1
    Official solution

    SimpleVertical badi machine. Horizontal aur boxes + load balancer. JWT stateless horizontal friendly.

    10k users: Postgres, Redis, gunicorn, CDN, pagination, indexes.
    Millions: replicas, queue partition, more workers.

    Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).

    4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.

    Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.

    Project example: Course app vertical enough. Design answer scale-out.

  12. 12
    what does time complexity mean?
    Times asked 1
    Official solution

    SimpleTime complexity input size ke saath time kaise badhta hai.

    O(1): dict lookup. O(n): list mein loop. O(n^2): nested loops.

    Example

    User.query.all() phir Python mein filter = O(n). DB pe indexed WHERE tez.

    Search suggestions: prefix index / ILIKE, nai to har keypress pe poori table mat ghumao.

  13. 13
    ( I cant remember more theory questions, unfortunately.)
    Times asked 1
    Official solution

    SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.

  14. 14
    the task :
    Times asked 1
    Official solution

    SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.

  15. 15
    Make a route for admin_delete_trek_staff
    Times asked 1
    Official solution

    SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).

    Viva tip1 minute elevator pitch ready rakho, phir demo.

Advice: Be thorough with your own code, have some knowledge of the theory. Be prepared to be told to write a new route.
Created for educational purposes only. Questions are based on students' personal experiences and may not reflect actual exam content.