Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor @APPDEV_LEVEL1_VIVA1

Share your experience Add your viva experience here
21 Questions
2 Sets
0 Topics
2 Reviews
Tips for this examiner: He is very friendly yet professional.. Can ask anything related to your code ..

Student reviews

Farha MAD1

The proctor was very calm and sweet.
I couldn't hear her a few times, so I asked her to say the things again, and she repeated them.

When the proctor joined the meeting, she told me to:
1. show the Student ID
2. open git and show the collaborator
3. go to the Viva portal and download your submission, open it and run it
4. give demo, while giving demo i had a line missing in my code before i submitted the code in portal, but i knew it so i asked her if i should add it right now so that i can view a user's trek history ( missing line was * @app.route('/my_history') *), but she told no it's fine and then said "so the history page is deleted ?" and i told her," actually it's not deleted i have just a line missing", after adding the line, I showed her the user history
5. She told me to go to my VS Code and show through which route the user can book the trek
6. Go and mark a trek as completed by the staff (any)
7. told me to show the participants of any trek
(I didn't remember which trek has participants, so I asked her if I can book a trek right now by a user and show it, and she said yeah, do it; I did it )
She asked me, "Does my app allow me to book those treks which are not open? I said no, it doesn't allow. She said OK, then again to the previous question to show the participant.
I showed her the participants list for a particular trek.
8. Theory questions: MVC, difference between authentication and authorisation, difference between inline, internal and external CSS
9. Open Notepad and write a route to get all the blacklisted trekkers
10. Change the background colour of the login button

Questions remembered
  1. She told me to go to my VS Code and show through which route the user can book the trek
  2. Go and mark a trek as completed by the staff (any)
  3. told me to show the participants of any trek
  4. Theory questions: MVC, difference between authentication and authorisation, difference between inline, internal and external CSS
  5. Open Notepad and write a route to get all the blacklisted trekkers
  6. Change the background colour of the login button
yomesh MAD1

First, he checked my student ID.
Then he checked my GitHub collaborator access.
After that, he directly asked me to demonstrate my project — user/coordinator signup and login and overbooking prevention.
Then he asked what is backref and back_populate, which I answered correctly.
He asked what is Jinja, and I answered that correctly too.
Then he asked what is a CSRF token. I was a little unsure, but after thinking, I gave a decent answer.
He asked me to write a route to find blacklisted coordinators who have an assigned trek and whose trek is ongoing. I answered this partially correctly.
Then he asked me to change the login button colour, which I did correctly.
At the end, he suggested that I practice theory and coding questions more.
He was mostly quiet and gave me enough time to think, but didn't give any hints or help.

Questions remembered
  1. Then he asked what is backref and back_populate, which I answered correctly.
  2. He asked what is Jinja, and I answered that correctly too
  3. Then he asked what is a CSRF token. I was a little unsure, but after thinking, I gave a decent answer.
  4. He asked me to write a route to find blacklisted coordinators who have an assigned trek and whose trek is ongoing. I answered this partially correctly.
  5. Then he asked me to change the login button colour, which I did correctly.

Approved viva sets

Download all
  1. 1
    Demo of the app
    Times asked 8
  2. 2
    Explain the code for export CSV
    Times asked 2
  3. 3
    In notepad write any vue component, wrote basic v-for , than he asked to add relative fetch request for that and backend route for that..(Basically was testing if you know to write a component, route , backend fetch logic correctly)
    Times asked 2
  4. 4
    Also asked to check authentication in route and check for roles, allow only admin to view that route .
    Times asked 2
  5. 5
    Asked to explain caching.
    Times asked 2
Advice: He is very friendly yet professional.. Can ask anything related to your code ..
  1. 1
    Demo of the app
    Times asked 8
    Official solution

    SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.

    Suggested flow1) Register/login user
    2) Admin login — CRUD
    3) Approval/blacklist
    4) Booking/apply + edge case
    5) Search
    6) Logout

    Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.

  2. 2
    Explain the code for export CSV
    Times asked 2
    Official solution

    SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.

    Viva tipFunction signature + 3-4 important lines + edge case.

  3. 3
    In notepad write any vue component, wrote basic v-for , than he asked to add relative fetch request for that and backend route for that..(Basically was testing if you know to write a component, route , backend fetch logic correctly)
    Times asked 2
    Official solution

    SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.

    Example

    @app.route('/ping')
    def ping():
        return jsonify(ok=True)
    
    @app.route('/even/<int:n>')
    def even(n):
        return 'even' if n % 2 == 0 else 'odd'
  4. 4
    Also asked to check authentication in route and check for roles, allow only admin to view that route .
    Times asked 2
    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)
  5. 5
    Asked to explain caching.
    Times asked 2
    Official solution

    SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.

    Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.

    Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.

    Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.

    Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.

    Example

    @cache.cached(timeout=50, query_string=True)
    @app.route('/api/shows')
    def shows():
        return jsonify([s.serialize() for s in Show.query.all()])

    Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').

    Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.

  6. 6
    Then he asked what is backref and back_populate, which I answered correctly.
    Added by 25F2007091 YOMESH
    Times asked 1
  7. 7
    He asked what is Jinja, and I answered that correctly too
    Added by 25F2007091 YOMESH
    Times asked 1
  8. 8
    Then he asked what is a CSRF token. I was a little unsure, but after thinking, I gave a decent answer.
    Added by 25F2007091 YOMESH
    Times asked 1
  9. 9
    He asked me to write a route to find blacklisted coordinators who have an assigned trek and whose trek is ongoing. I answered this partially correctly.
    Added by 25F2007091 YOMESH
    Times asked 1
  10. 10
    Then he asked me to change the login button colour, which I did correctly.
    Added by 25F2007091 YOMESH
    Times asked 1
  11. 11
    She told me to go to my VS Code and show through which route the user can book the trek
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
  12. 12
    Go and mark a trek as completed by the staff (any)
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
  13. 13
    told me to show the participants of any trek
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
  14. 14
    Theory questions: MVC, difference between authentication and authorisation, difference between inline, internal and external CSS
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
  15. 15
    Open Notepad and write a route to get all the blacklisted trekkers
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
  16. 16
    Change the background colour of the login button
    Added by 24F3003848 SHAIKH FARHA AHSANALI
    Times asked 1
Advice: He is very friendly yet professional.. Can ask anything related to your code ..
Maintaine By Lazy IITians Team + IITM BS students Regualr for More data you have