Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor LEVEL_1

Share your experience Add your viva experience here
22 Questions
2 Sets
0 Topics
0 Reviews
Tips for this examiner: make sure you know how to run the application thoroughly, what each function and feature will do, and where all the changes would be made because of that.
practice the viva sheet, was sufficient.
the proctor was chill (i answered all the questions also..)

Student reviews

No student reviews for this proctor yet.

Approved viva sets

Download all
  1. 1
    First to run the application, set all the env variables and configs
    Times asked 2
  2. 2
    proctor was checking each. feature if it was working or not and tried to find some bugs
    Times asked 2
  3. 3
    then after the checking web worked properly checked if cache is implemented, if jwt tokens work, what happens after deleting them, if the user stays logged in or log out.
    Times asked 2
  4. 4
    then email feature, if it was able to send mails or not
    Times asked 2
  5. 5
    vue cdn or cli, which one and why
    Times asked 2
  6. 6
    what are the techstacks used.
    Times asked 2
  7. 7
    what is sqlalchemy, why it is used.
    Times asked 2
  8. 8
    different ways of data binding in vue. (vue bind and model, diff b/w them)
    Times asked 2
  9. 9
    diff b/w v-if and v-show
    Times asked 2
  10. 10
    opened one component file of frontend, and asked what does this function do
    Times asked 2
  11. 11
    told to open a notepad and write a flask endpoint, accepts post req and returns a json file
    Times asked 2
Advice: make sure you know how to run the application thoroughly, what each function and feature will do, and where all the changes would be made because of that. practice the viva sheet, was sufficient. the proctor was chill (i answered all the questions also..)
  1. 1
    First to run the application, set all the env variables and configs
    Times asked 2
    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
  2. 2
    proctor was checking each. feature if it was working or not and tried to find some bugs
    Times asked 2
    Official solution

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

  3. 3
    then after the checking web worked properly checked if cache is implemented, if jwt tokens work, what happens after deleting them, if the user stays logged in or log out.
    Times asked 2
    Official solution

    SimpleJWT teen tukde ki signed chitthi: header.payload.signature. Padhi ja sakti hai, badli nahi ja sakti.

    Encoded (Base64) + signed, encrypted nahi (JWE alag). Payload mein password mat daalo — koi jwt.io pe dekh lega.

    Login pe server secret se HMAC (HS256). Har API Authorization: Bearer <token>.
    Expiry exp. Change payload → signature fail → 401.

    Session MAD1 server yaad rakhta. JWT MAD2 client rakhta, server stateless-ish.

    Example

    eyJhbGciOiJIUzI1NiJ9.{"sub":1,"role":"admin"}.signature
    # Authorization: Bearer <token>

    Project example: POST /login → token LS. fetch interceptor header. @jwt_required APIs.

    Viva tipAlgo HS256. Secret env var. jwt.io pe payload dikhao, secret public site pe mat paste.

  4. 4
    then email feature, if it was able to send mails or not
    Times asked 2
    Official solution

    SimpleSMTP = Simple Mail Transfer Protocol — email bhejne ka standard. Flask-Mail / smtplib se reminders/reports.

    Example

    from flask_mail import Message
    msg = Message('Subject', recipients=[user.email])
    msg.body = 'Hello'
    mail.send(msg)

    Viva tipViva mein MailHog/inbox dikhao. Port 587 TLS common; local pe MailHog 1025.

  5. 5
    vue cdn or cli, which one and why
    Times asked 2
    Official solution

    SimpleCDN = Vue script tag se, jaise pen drive. CLI/Vite = poori factory (SFC, npm, bundle).

    CDN: no build, chhote apps, exam PC pe Node nahi to bhi chal. Weak: no .vue compile, 3rd-party cache, scale/team.

    CLI/Vite: Single File Components, env, code-split, production dist/. Scalable.

    Examiner 'which + why' — jo use kiya wahi justify, doosra naam rato mat.

    Example

    <!-- CDN -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    
    # Vite
    npm run dev
    npm run build

    Project example: CDN: index.html unpkg vue. CLI: package.json, npm run serve / vite.

    Viva tipCDN scalable large teams ke liye weak (no SFC compile, caching 3rd party). Examiner 'which + why' poochta hai — jo use kiya wahi justify karo.

  6. 6
    what are the techstacks used.
    Times asked 2
    Official solution

    SimpleStack bolo: Python, Flask, Jinja2, SQLAlchemy, SQLite, HTML/CSS/Bootstrap, maybe Chart.js.

  7. 7
    what is sqlalchemy, why it is used.
    Times asked 2
    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()
  8. 8
    different ways of data binding in vue. (vue bind and model, diff b/w them)
    Times asked 2
    Official solution

    Simplemodels.py = har table ki class: columns, PK/FK, relationships. Yeh Model layer hai.

    Suggested flow1) Classes list karo
    2) Har table ka kaam 1 line
    3) Relationships (1-M / M-M)
    4) Constraints (unique, nullable)

    Example

    class Lot(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        name = db.Column(db.String(80), nullable=False)
        spots = db.relationship('Spot', backref='lot', lazy=True)
  9. 9
    diff b/w v-if and v-show
    Times asked 2
    Official solution

    Simplev-if ghar se nikaal deta hai (DOM se). v-show sirf light band karta hai (display:none).

    v-if false → element exist hi nahi — costly create/destroy, lekin secret HTML DOM mein nahi.
    v-show → hamesha DOM, CSS hide, toggle tez.

    Rare / permission UI: v-if (admin panel). Dropdown bar-bar: v-show.

    : shorthand v-bind ka, v-if ka nahi.

    Example

    <div v-if="isAdmin">Admin panel</div>
    <div v-show="open">Dropdown</div>

    Project example: Admin links v-if="role==='admin'". FAQ accordion v-show="open".

    Viva tipSecurity ke liye sirf v-if kaafi nahi — API 403 bhi chahiye.

  10. 10
    opened one component file of frontend, and asked what does this function do
    Times asked 2
    Official solution

    SimpleMAD1 frontend usually Jinja templates + HTML/CSS/Bootstrap (+ thoda JS). MAD2 pe Vue ho to clearly bolo.

  11. 11
    told to open a notepad and write a flask endpoint, accepts post req and returns a json file
    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'
Advice: make sure you know how to run the application thoroughly, what each function and feature will do, and where all the changes would be made because of that. practice the viva sheet, was sufficient. the proctor was chill (i answered all the questions also..)
Created for educational purposes only. Questions are based on students' personal experiences and may not reflect actual exam content.