Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor APPDEV_LEVEL1_VIVA1@STUDY.IITM.AC.IN

Share your experience Add your viva experience here
4 Questions
1 Sets
0 Topics
0 Reviews
Tips for this examiner: Proctor is very chill and he will help you .Just be patient and answer.

Student reviews

No student reviews for this proctor yet.

Approved viva sets

Download all
  1. 1
    Authorization and Authentication
    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)
  2. 2
    PUT vs PATCH 3.Templating and Jinja 4.session
    Times asked 1
    Official solution

    SimpleMAD1 mein usually session-based auth: login pe session['user_id'], har request pe verify.

    Example

    session['user_id'] = user.id
    uid = session.get('user_id')
    user = User.query.get(uid)

    Viva tipSECRET_KEY set karo warna session insecure. logout pe session.clear().

  3. 3
    Create a login form
    Times asked 1
    Official solution

    SimpleORM = Object Relational Mapping. Tables → Python classes. Raw SQL kam likhte ho.

    Example

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)
    
    User.query.get(5)  # SELECT ... WHERE id=5
  4. 4
    Display the application id of blacklisted companies 7.route for login validation
    Times asked 1
    Official solution

    SimpleBlacklist/block: user.status='blocked' check login/booking pe. Temporary flag vs hard delete permanent.

Advice: Proctor is very chill and he will help you .Just be patient and answer.
Maintaine By Lazy IITians Team + IITM BS students Regualr for More data you have