Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor Level1_132

Share your experience Add your viva experience here
290 Questions
35 Sets
0 Topics
15 Reviews
Tips for this examiner: The proctor’s approach was intense, technical, and hands-on, with a clear preference for code understanding over presentation.
- Prioritized code comprehension over flashy demos.
- Asked candidates to write or modify code live, testing real-time problem-solving.

Student reviews

Sheet response MAD1

1) Understand every line of code
2) Know theory in detail

He is a good proctor. Seems like a strict guy, asks unexpected questions. But gives hints and tries to understand your explanation. He wants you to learn things in depth. He said it is needed for mad2. Overall he said a good app, work on in depth knowledge.

Questions remembered
  1. 1)complete project demo
  2. url vs uri
  3. one one and many-one relationships
  4. advantages and disadvantages of sqlalchemy
  5. orm basics
  6. http status codes
  7. explanation of random code snippets A few more theory questions Coding
  8. add trek entire route and display as html
  9. frontend code for displaying all statistics as cards on admin page
Sheet response MAD1

Keep your theory strong, be through with routes, models (db), and flask sessions.

The examiner is a bit strict. Not intimidating enough to snatch your soul, but not friendly too.

He won't help you. You are either on your own, or he'll explain the stuffs which you couldn't answer.

Questions remembered
  1. Level 2 viva
  2. Proctor id: level1_132
  3. Took only 35 mins...
  4. Asked to explain the folder structure,
  5. what does the login manager do?
  6. Explain what is a session?
  7. Explain how is user authenticated in a flask session, what happens in it.
  8. I have a login_manager.user_loader in my code, asked what does that do.
  9. What is there different between URL and URI?
  10. (not in the code, during db setup, there SQL_DATABASE_URI)
  11. What is the difference between unauthorised and forbidden?
  12. Show models.py . Explain how will you define a many to many relationships.
  13. A few questions based on my routes and what is the function doing.
  14. Asked me to code my register route and form.
  15. Asked me to centre a table in my web page.
  16. Then show me the demo of your app.
  17. I did the coding part but couldn't answer a few theoretical questions. They went pretty deep into it.
Mantasha MAD1

Understand every part of your project—your models, routes, Jinja templates, HTML, database queries, and error handling. Don't just memorize the code. Be prepared to explain every line and even write important parts from scratch in Notepad.

Questions remembered
  1. Level2 done
  2. LEVEL1_132
  3. * First, he told me to explain my folder structure
  4. * Then he was watching my model.py code and asked me about a one-to-one relationship and how I would do a one-to-one relationship from one-to-many.
  5. * Why did you use both a foreign key and db.relationship in a table.
  6. * diff between db.relationship and foreign key
  7. * How you control the error; he said about flash messages. I told him that I didn't use flash in my project. Then
  8. I told I will write the error message and explained how the error part is working for my project in app.py.
  9. * He asked me about what 402 error code mean(I don't know the answer, itna error code pdha tha like 200, 302,302,400,401,403,404,500, but usne vhi pucha jo mujhe nhi pta tha)
  10. * He asked me to explain integrity error.(I said i don't know the answer)
  11. * He asked me how you will write the function in Jinja2.
  12. * He told me to go html page of admin_dashboard, and asked about padding.
  13. * Then he told me to run app.py and log in as an admin. I have used cards in admin_dashboard. He told me to write the HTML code for these 4 cards in Notepad.
  14. * He told me to write the code in Notepad: write a code which create or add user in the database. I asked him about the register route, he told me it's on you. Here I wrote my entire register route in Notepad.
  15. * Finally, he told me to show the demo of your project.
  16. * At last, he told me that your knowledge of the error part is not enough; you should work on that, bcz in industries, we should handle error efficiently. You are able to write the code, and your UI is good. Best of luck for your MAD2.
  17. Mera viva pura 1 hr chala, he checked my database, Jinja, HTML, and routes knowledge.
  18. Tip: Understand every part of your code, what you write, and be able to write it in Notepad.
Omi MAD1

Basically understand your codebase to the bit.
Learn to communicate and explain well.

Questions remembered
  1. Mad 1 viva 2 id: level1_132
  2. He asked about each folder and it's purpose.
  3. Asked How database is defined.
  4. Asked to showcase project
  5. Asked " ORM vs raw SQL " why use orm?
  6. Asked to show session cookies in inspect tool ( inspect > application > cookies storage > session )
  7. Asked why u can't use admin role and other role in same browser window
  8. Asked to write a query to fetch all used them list then in jinja2 all in notepad ( i fumbled 💔)
  9. Also asked to write another query I forgot
  10. I was confident in my explanation he did say u are wrong ( simply ) and proceeded to another question. Like rapid fire
  11. He was strict not giving any hints at all.
  12. Gave Feedback at end
  13. " you lack coding knowledge"
  14. Improve upon it or u not be able to do mad 2
  15. " This meet is ended "
  16. * I may have missed some questions
  17. I might pass with minimum marks
  18. I explained all theory and wrote some code ( jinja , orm query)
SV MAD1

He will start asking you questions directly from your code. He will go very deep.

Questions remembered
  1. Show me your Id card
  2. Explain folder structure 3.In your app.py why you initialised app=None, What will happen if we remove it I said it may throw error or not I am not sure? Just told me to comment it? Now tell me the reason? 4.Why we use app.context, ? Difference in app.app_context().push() and app.context() when to use it? I answered but he corrected me . 5.After that write a code to close the drive after the deadline in a notepad. I forgot to write request method. He gave me hints.
  3. In admin dashboard you used cards ? Write code only html to make cards in a row. I said I did using Bootstrap. He said I want in Html only . I was writing external css . He said only in html dont use external css. I used inline css. Wrote code but syntax error . He said paste in html file check. I corrected syntax error. 7.have you used Apis ? No sir .. Why ? It was optional and I am not comfortable using it. But it is part of course so I will ask questions
  4. Create a route and show display 404 message in terminal
  5. Asked about status code
  6. What security features have you used? What is SQL injection? Tell me one example of SQL injection? How flasksqlalchemy prevents sql injection? 10.Finally Show me the demo of your app. It was utter silence I felt as if no one is in the meet. He said Overall it is a good app. Just work on the areas I suggested and know every line of your code.
Raushan Kumar MAD1

It was okay, I am fine with what I did to myself. Compared to the rest, this is a bit strict. But I enjoyed it.

Questions remembered
  1. During my viva, he was first asked me to explain app.py then says to write the code of app.py. After that, they asked conceptual questions about HTTP methods—specifically, what would happen if we used PATCH instead of GET or POST.
  2. Then, they asked me to explain the difference between session and db.session.
  3. They also asked me to write and explain the code where I used dynamic URLs.
  4. After that, they checked my frontend knowledge by asking about Bootstrap and CSS. They specifically asked where I used the box-shadow property and told me to show it in my project.
  5. There were several more questions, and overall, my viva lasted approximately 45 minutes.
Student MAD1

He is not here tp check what your project does he will not even ask for a demo he will ask bizarre theoretical questions which can be quiet unrelated to the project. He is interested in knowing what you don't know when you explain something he will interrupt and move to next question.

Questions remembered
  1. Where is session data stored?
  2. difference between sql Alchemy and something I don't remember
  3. Various status code meanings randomly don't even remember all of them
  4. Write a full HTML page to make 4 rows with switches
  5. He is very strict if you try to be sure about something he will say " are you asking me? "
  6. he can ask you anything and everything even something that is not quiet related to your project work.
  7. Be ready to code anything he asked me to code something I hadn't implemented in my project
  8. He is basically there to deduct your marks
S.P.Singh MAD1

Mug up the theory questions . You can see the previous responses . Be prepared to code .

Questions remembered
  1. Asked for project structure
  2. 1.How to apply one to one relationship in SQL alchemy - I fumbled but in the end I answered
  3. 2.Asked to code for the edit-profile of student
  4. 3.what is the difference between redirect and render template
  5. 4.what is the status code for internal server error
  6. 5.asked for demo .
  7. 6.what is the session and db session
  8. That's all I remembered.
Shahil Khan MAD1

be confident to write the code

Questions remembered
  1. -asked to write a route to edit a doctor profile
  2. - write jinja flash message and fecth the new info
  3. - aksed about error code 305,306,
  4. - why we get bad request error ,
gowri MAD1

The questions were a bit unexpected for me. Sir asked me to make the file structure explanation quicker next time as he had to stop my explanation part before completing it to ask the viva qns and there was no time to complete the explanation and show demo in the end.

Questions remembered
  1. -asked why foreign key and db.relationship used in the same table, what is the difference
  2. -asked what can be used to modify only the name of the doctor table without changing other columns, i said path http request, he asked then why is it not used here, i didn't know, he said since patch does not support flask html
  3. -asked about 305 status code
  4. -difference between session.db and session storage
  5. -and some other such questions too, i can't remember now
  6. -coding question: function to delete doctor and jinja template to show the deleted doctor as well as all other doctors. Also asked me to write the code for flash messages
no MAD1

He is nice , patient and gives time to try and explain. He will also let you ask and correct you where u get wrong. Don't rely on questions here , U need to have a proper understanding of the logics u put behind the project , For me i wasnt able to answer a lot of questions and he simply said me practice and to actually make the project next time for MAD2. Overall he only pointed me where i am weak at and thats good!

Questions remembered
  1. Structure of project
  2. Why used blueprints
  3. Make a html file and take user credentials
  4. Status code , assertion
  5. app.py - login manager
  6. app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False , if we make this true
  7. make a route to edit parking lot and spots
  8. There were more questions related to the backend
  9. Status code 305 - Do all the status codes
.. MAD1

Again, don't panic and keep your calm. Nervousness will lead you nowhere.

Questions remembered
  1. Missed some of these questions, just adding missing questions now👇
  2. suppose your app has current storage of 18GB, you wany to scale the app and scaling up demands 20 GB of storage. How will you make this happen?
  3. Do you know what are APIs?
.. MAD1

Prepare theory part well, keep your calm, join meet 10 minutes prior as he also joined early and viva concluded in maximum 30 minutes.

Questions remembered
  1. It was taking time to unzip so he first asked the questions then went on to project demo
  2. what http methods we have
  3. Do u know about status codes
  4. What does 303 status code do
  5. Do u know about json? Can json be parsed into html template, if yes then how.
  6. Create a new py file and write a function for delete lot
  7. A few other theory questions I forgot.
anjali k MAD1

very nice proctor give you time to do all tasks and very polite explain if you stuck anywere....overall very nice proctor

Questions remembered
  1. id card dikao porat se download kro project aur GitHub repo dikao
  2. explain backreef bakpopulate
  3. explain dif between relationship and foreign key
  4. explain how this relationship works 4)change background coloue home page 5)make new file and write code for delete lot 6)explain 403 303 503 msges
  5. explain class and id(iska jawab mene aisa diya ki proctor has pade)
  6. explain http methods 9)app demo in detail
  7. aur ek to kkuch bhi tha meko samj hi nhi aaya kya pucha 2 bar bolne kaha tb bhi nhi samja... kuch to tha ki scalbity ka tha sayd bahut lambba expel diya fir kaha isme konsa sclability honga 11)aur kah ki ek file banao use api ka code liko mene kaha meko api ka jyada idea nhi hai to kaha ki thr+ pr sathme hai men ekah ha to bolte hai ki 6th week me hai mene kaha mene lec nhi deke jyda yt se sb cover krke banaya hai sikke....okk fine ..fir kaha jao yt pe search kro mad1 live sessin mil nhi rhe the fir mil gye kaha yahape 6th live session pe jao usme jo bhi code mam lik rhi hai vo kahse milenga mene kaha nhi pata hai kaha jao GitHub pe aur serch kro kuch name kaha dalne fir repo pe jao usme ye code milenge fir acchse code aur lec krlena sb yah pe hai......okk sir 12)relationship between parking_spot and user
  8. age(sunke proctor hase...🙂 mene kaha ------ to kehte hai fir 12th just hui hai kah ayes to kehte hai sep term me admission liya ..yess niceeeeeee)
  9. education(kahi bahr admission liya hai?...yes)
  10. kahape liya hai konsi field me .....ok Anjali that's from my side ....thank you sir
Sheet response MAD1

Shared viva questions from response sheet: Diff between http and HTTPS and how is it more secure; how is the insrance folder created. like by what line of code; can templates folder be named as template and static folder be named statics, if yes then how ?

Questions remembered
  1. Diff between http and HTTPS and how is it more secure
  2. how is the insrance folder created. like by what line of code
  3. can templates folder be named as template and static folder be named statics, if yes then how ?
  4. Https methods and why do we only use GET and POST , why not Put and Patch
  5. some css, like if margin value is 1 rem what it means, what is rem.
  6. Can ask any code change, color or button change and difficult css explanation.
  7. Regular theory can be asked, like by other proctors
  8. asked me , when we run the app, we see a warning in the terminal, make the required code changes so that this warning is removed. Will ask many weird uncommon questions like that which will be difficult or maybe even not possible.
  9. Explanation of backref and in which type of relationships it. Should be used (like one to one many to oen etc)
  10. Cascade...diff bet delete and delete orphan, how to decide when to use which and why
  11. Don't rely on questions here...ha is very strict and there to cut down your marks by any way possible, cover everything and anything you did or see in your project and do it in immense detail...he can go into depths

Approved viva sets

  1. 1
    vue router vs pinia
    Times asked 1
  2. 2
    keyword to define vue router
    Times asked 1
  3. 3
    web hook vs lifecycle hooks
    Times asked 1
  4. 4
    memoization and cache
    Times asked 1
  5. 5
    code to delete a user from database using vue
    Times asked 1
  6. 6
    Webcreate history meaning
    Times asked 1
Advice: congratulations ur proctor is Shri Krishna Pandey💀
  1. 1
    allah malik.....
    Times asked 2
Advice: know you to meaning of every single line of code......
  1. 1
    1.Difference between web history and web as history
    Times asked 2
  2. 2
    2.Forbidden error Integrity errors
    Times asked 2
  3. 3
    3.Difference between Action and Mutation
    Times asked 2
  4. 4
    9.Show me where the sent email can be seen or where can we see the exact mail after scheduled
    Times asked 2
  5. 5
    10.How to check if a mail has been sent
    Times asked 2
  6. 6
    Say the code (sql based) which defines many to many relation between tables
    Times asked 2
  7. 7
    11. Go to the schedule section of reminder and change the time to current time.
    Times asked 2
  8. 8
    12.He asked me to go the router section and asked what is meta and why do we use and what else can be used in place of meta.
    Times asked 1
Advice: Pray to every god
  1. 1
    Questions are almost similar what is mentioned in the sheet.
    Times asked 2
Advice: Examiner is not so rude, shares feedback (positive and negative). Overall ok experience.
  1. 1
    Life cycle hooks
    Times asked 6
Advice: He will ask from whatever you say and show. Be mindful of your words. Give precise and clear answers.
  1. 1
    Level 2 viva Coding
    Times asked 2
  2. 2
    Change the celery cornjob to today's time for showcase of mail
    Times asked 2
  3. 3
    how to send props from child to parent(use emit) Show a code on emit Theory
    Times asked 2
  4. 4
    what is db and how is it different from model.py and what is model.py
    Times asked 2
  5. 5
    cli vs cdn which is more beneficial
    Times asked 2
Advice: He has an infamous reputation that's sure know your code really well and prepare theory and code so that he is satisfied In my case he seemed tired so didn't ask much but you should be ready for any questions he will throw at you He is really strict with concepts
  1. 1
    yes you should know each and every line of ur code , he said if it falls under the subject , u have to answer , it doesn't matter if u have used it in ur project or not
    Times asked 2
  2. 2
    vuex ka question bhi pucha tha , vo yaad nhi hai
    Times asked 2
  3. 3
    asked a lot more questions
    Times asked 2
  4. 4
    relationship between tables ,
    Times asked 2
  5. 5
    fetch call for frontend and template part
    Times asked 2
  6. 6
    crontab change in timing
    Times asked 2
Advice: actually ,whatever you have written in code , you should know why and if it would work same without it , definitely , but he could ask you something more too
  1. 1
    theory question
    Times asked 2
  2. 2
    - which one you are using vue2 or vue3
    Times asked 2
  3. 3
    - any difference btw vue2 or vue3
    Times asked 2
  4. 4
    ( more question puche the jo yaad nahi samajh hi nahi aa rha puch kya rha h )
    Times asked 2
  5. 5
    Coading Question
    Times asked 2
  6. 6
    - asking are u using cleeary and chache ( jo maine implement nahi kiya )
    Times asked 2
  7. 7
    - fetch api from fronted part ( write on notepad, problem ushi diya tha )
    Times asked 2
  8. 8
    - and implement on vue component
    Times asked 2
Advice: Unpredictable kuch bhi puch sakta h bahut intese h fail karne ko ready (mai bhi fail ho gya )
  1. 1
    Index.html se open kyu kr rha h change the port aur phir open kro
    Times asked 2
  2. 2
    Console khol ke koi error aa rha usko thiq kro
    Times asked 2
  3. 3
    Cdn why not cli
    Times asked 2
  4. 4
    Admin dashboard ka side bar recreate kro
    Times asked 2
  5. 5
    Route banao nye to fetch an api call
    Times asked 2
  6. 6
    Ek aur route to delete
    Times asked 2
  7. 7
    Sql query to fetch users who have registered
    Times asked 2
  8. 8
    Css file explanation each line in deatil
    Times asked 2
  9. 9
    Demo
    Times asked 9
Advice: Bch ke rhna
  1. 1
    duration: exact 1 hr (9 to 10pm)
    Times asked 2
  2. 2
    {for level 2}
    Times asked 2
  3. 3
    Conceptual Questions
    Times asked 2
  4. 4
    - What is a key prefix in cache vs memoize?
    Times asked 2
  5. 5
    Can the same child route work in Vue? (Write and test it)
    Times asked 2
  6. 6
    Coding Practice Prompts
    Times asked 2
  7. 7
    - Write a fetch request without looking at the code
    Times asked 2
  8. 8
    - Write a fetch request for deletion of a subject
    Times asked 2
  9. 9
    - Schedule a daily reminder using crontab
    Times asked 2
Advice: The proctor’s approach was intense, technical, and hands-on, with a clear preference for code understanding over presentation. - Prioritized code comprehension over flashy demos. - Asked candidates to write or modify code live, testing real-time problem-solving.
  1. 1
    url vs uri
    Times asked 1
    Official solution

    SimpleUngli rakhe to 4-line formula — panic ki jagah structure.

    1) File ka role: model / Flask route / Vue SFC / celery task / config
    2) Input kahan: JSON, params, token, props, $route
    3) Kya kaam: query, cache, validation, .delay()
    4) Output: jsonify, this.items, email, redirect

    Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.

    Suggested flow1) Kaunsi layer?
    2) Input?
    3) DB/cache/task?
    4) Response/UI?

    Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.

    Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.

  2. 2
    advantages and disadvantages of sqlalchemy
    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()
  3. 3
    orm basics
    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
    explanation of random code snippets A few more theory questions Coding
    Times asked 1
    Official solution

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

  5. 5
    add trek entire route and display as html
    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.

  6. 6
    frontend code for displaying all statistics as cards on admin page
    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.

Advice: 1) Understand every line of code 2) Know theory in detail He is a good proctor. Seems like a strict guy, asks unexpected questions. But gives hints and tries to understand your explanation. He wants you to learn things in depth. He said it is needed for mad2. Overall he said a good app, work on in depth knowledge.
  1. 1
    Proctor id: level1_132
    Times asked 1
    Official solution

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

  2. 2
    Took only 35 mins...
    Times asked 1
    Official solution

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

  3. 3
    what does the login manager do?
    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
    Explain what is a 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().

  5. 5
    What is there different between URL and URI?
    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.

  6. 6
    (not in the code, during db setup, there SQL_DATABASE_URI)
    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.

  7. 7
    What is the difference between unauthorised and forbidden?
    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.

  8. 8
    A few questions based on my routes and what is the function doing.
    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.

  9. 9
    Asked me to code my register route and 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
  10. 10
    Asked me to centre a table in my web page.
    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.

  11. 11
    I did the coding part but couldn't answer a few theoretical questions. They went pretty deep into it.
    Times asked 1
    Official solution

    SimpleLive coding: notepad/editor mein chhota Flask route / Jinja loop / model field. Calm raho, run karke dikhao.

Advice: Keep your theory strong, be through with routes, models (db), and flask sessions. The examiner is a bit strict. Not intimidating enough to snatch your soul, but not friendly too. He won't help you. You are either on your own, or he'll explain the stuffs which you couldn't answer.
  1. 1
    Level2 done
    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, he told me to explain my folder structure
    Times asked 1
    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
    * Then he was watching my model.py code and asked me about a one-to-one relationship and how I would do a one-to-one relationship from one-to-many.
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  4. 4
    * Why did you use both a foreign key and db.relationship in a table.
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  5. 5
    * How you control the error; he said about flash messages. I told him that I didn't use flash in my project. Then
    Times asked 1
    Official solution

    Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.

    Example

    flash('Login successful', 'success')
    return redirect(url_for('user.dashboard'))
  6. 6
    I told I will write the error message and explained how the error part is working for my project in app.py.
    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.

  7. 7
    * He asked me about what 402 error code mean(I don't know the answer, itna error code pdha tha like 200, 302,302,400,401,403,404,500, but usne vhi pucha jo mujhe nhi pta tha)
    Times asked 1
    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'
  8. 8
    * He asked me to explain integrity error.(I said i don't know the answer)
    Times asked 1
    Official solution

    SimpleInt column mein string daalne pe SQLAlchemy/DB type error ya Integrity/StatementError. Empty table pe bhi same validation fail — row count matter nahi.

    Example

    # SQLite may coerce sometimes; Postgres: invalid input syntax for integer
    Spot(status='free', lot_id='abc')  # lot_id int → error
  9. 9
    * He asked me how you will write the function in Jinja2.
    Times asked 1
    Official solution

    SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.

    Example

    {% for lot in lots %}
      <li>{{ lot.name }} — {{ lot.spots }}</li>
    {% else %}
      <p>No lots</p>
    {% endfor %}
  10. 10
    * He told me to go html page of admin_dashboard, and asked about padding.
    Times asked 1
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  11. 11
    * Then he told me to run app.py and log in as an admin. I have used cards in admin_dashboard. He told me to write the HTML code for these 4 cards in Notepad.
    Times asked 1
    Official solution

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

  12. 12
    * He told me to write the code in Notepad: write a code which create or add user in the database. I asked him about the register route, he told me it's on you. Here I wrote my entire register route in Notepad.
    Times asked 1
    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'
  13. 13
    * At last, he told me that your knowledge of the error part is not enough; you should work on that, bcz in industries, we should handle error efficiently. You are able to write the code, and your UI is good. Best of luck for your MAD2.
    Times asked 1
    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'
  14. 14
    Mera viva pura 1 hr chala, he checked my database, Jinja, HTML, and routes knowledge.
    Times asked 1
    Official solution

    SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.

    Example

    {% for lot in lots %}
      <li>{{ lot.name }} — {{ lot.spots }}</li>
    {% else %}
      <p>No lots</p>
    {% endfor %}
  15. 15
    Tip: Understand every part of your code, what you write, and be able to write it in Notepad.
    Times asked 1
    Official solution

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

Advice: Understand every part of your project—your models, routes, Jinja templates, HTML, database queries, and error handling. Don't just memorize the code. Be prepared to explain every line and even write important parts from scratch in Notepad.
  1. 1
    Mad 1 viva 2 id: level1_132
    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
    He asked about each folder and it's purpose.
    Times asked 1
    Official solution

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

  3. 3
    Asked How database is defined.
    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
    Asked to showcase project
    Times asked 1
    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.

  5. 5
    Asked " ORM vs raw SQL " why use orm?
    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
  6. 6
    Asked to show session cookies in inspect tool ( inspect > application > cookies storage > 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().

  7. 7
    Asked why u can't use admin role and other role in same browser window
    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.

  8. 8
    Asked to write a query to fetch all used them list then in jinja2 all in notepad ( i fumbled 💔)
    Times asked 1
    Official solution

    SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.

    Example

    {% for lot in lots %}
      <li>{{ lot.name }} — {{ lot.spots }}</li>
    {% else %}
      <p>No lots</p>
    {% endfor %}
  9. 9
    Also asked to write another query I forgot
    Times asked 1
    Official solution

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

  10. 10
    I was confident in my explanation he did say u are wrong ( simply ) and proceeded to another question. Like rapid fire
    Times asked 1
    Official solution

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

  11. 11
    He was strict not giving any hints at all.
    Times asked 1
    Official solution

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

  12. 12
    Gave Feedback at end
    Times asked 1
    Official solution

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

  13. 13
    " you lack coding knowledge"
    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.

  14. 14
    Improve upon it or u not be able to do mad 2
    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.

  15. 15
    " This meet is ended "
    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.

  16. 16
    * I may have missed some questions
    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.

  17. 17
    I might pass with minimum marks
    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.

  18. 18
    I explained all theory and wrote some code ( jinja , orm query)
    Times asked 1
    Official solution

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

Advice: Basically understand your codebase to the bit. Learn to communicate and explain well.
  1. 1
    Show me your Id card
    Times asked 2
    Official solution

    SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.

    Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.

  2. 2
    Explain folder structure 3.In your app.py why you initialised app=None, What will happen if we remove it I said it may throw error or not I am not sure? Just told me to comment it? Now tell me the reason? 4.Why we use app.context, ? Difference in app.app_context().push() and app.context() when to use it? I answered but he corrected me . 5.After that write a code to close the drive after the deadline in a notepad. I forgot to write request method. He gave me hints.
    Times asked 1
    Official solution

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

  3. 3
    In admin dashboard you used cards ? Write code only html to make cards in a row. I said I did using Bootstrap. He said I want in Html only . I was writing external css . He said only in html dont use external css. I used inline css. Wrote code but syntax error . He said paste in html file check. I corrected syntax error. 7.have you used Apis ? No sir .. Why ? It was optional and I am not comfortable using it. But it is part of course so I will ask questions
    Times asked 1
    Official solution

    SimpleBootstrap CSS framework — grid, navbar, buttons jaldi. CDN ya downloaded files.

  4. 4
    Create a route and show display 404 message in terminal
    Times asked 1
    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.

Advice: He will start asking you questions directly from your code. He will go very deep.
  1. 1
    Then, they asked me to explain the difference between session and db.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().

  2. 2
    They also asked me to write and explain the code where I used dynamic URLs.
    Times asked 1
    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
    After that, they checked my frontend knowledge by asking about Bootstrap and CSS. They specifically asked where I used the box-shadow property and told me to show it in my project.
    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.

  4. 4
    There were several more questions, and overall, my viva lasted approximately 45 minutes.
    Times asked 1
    Official solution

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

Advice: It was okay, I am fine with what I did to myself. Compared to the rest, this is a bit strict. But I enjoyed it.
  1. 1
    Where is session data stored?
    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().

  2. 2
    difference between sql Alchemy and something I don't remember
    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()
  3. 3
    Various status code meanings randomly don't even remember all of them
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  4. 4
    Write a full HTML page to make 4 rows with switches
    Times asked 1
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  5. 5
    He is very strict if you try to be sure about something he will say " are you asking me? "
    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.

  6. 6
    he can ask you anything and everything even something that is not quiet related to your project work.
    Times asked 1
    Official solution

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

  7. 7
    Be ready to code anything he asked me to code something I hadn't implemented in my project
    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.

  8. 8
    He is basically there to deduct your marks
    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.

Advice: He is not here tp check what your project does he will not even ask for a demo he will ask bizarre theoretical questions which can be quiet unrelated to the project. He is interested in knowing what you don't know when you explain something he will interrupt and move to next question.
  1. 1
    1.How to apply one to one relationship in SQL alchemy - I fumbled but in the end I answered
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  2. 2
    2.Asked to code for the edit-profile of student
    Times asked 1
    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'
  3. 3
    3.what is the difference between redirect and render template
    Times asked 1
    Official solution

    Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.

    Example

    flash('Login successful', 'success')
    return redirect(url_for('user.dashboard'))
  4. 4
    4.what is the status code for internal server error
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  5. 5
    6.what is the session and db 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().

  6. 6
    That's all I remembered.
    Times asked 1
    Official solution

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

Advice: Mug up the theory questions . You can see the previous responses . Be prepared to code .
  1. 1
    -asked to write a route to edit a doctor profile
    Times asked 1
    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'
  2. 2
    - write jinja flash message and fecth the new info
    Times asked 1
    Official solution

    Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.

    Example

    flash('Login successful', 'success')
    return redirect(url_for('user.dashboard'))
  3. 3
    - aksed about error code 305,306,
    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
    - why we get bad request error ,
    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.

Advice: be confident to write the code
  1. 1
    -asked why foreign key and db.relationship used in the same table, what is the difference
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  2. 2
    -asked what can be used to modify only the name of the doctor table without changing other columns, i said path http request, he asked then why is it not used here, i didn't know, he said since patch does not support flask html
    Times asked 1
    Official solution

    SimpleFlask lightweight Python web framework — routes, request/response, templates. MAD1 ka backend yahi hai.

    Example

    from flask import Flask
    app = Flask(__name__)
    
    @app.route('/')
    def home():
        return 'Hello'

    Viva tipFlask micro hai: jo chahiye (DB, login, forms) khud jodte ho.

  3. 3
    -asked about 305 status code
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  4. 4
    -difference between session.db and session storage
    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().

  5. 5
    -and some other such questions too, i can't remember now
    Times asked 1
    Official solution

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

  6. 6
    -coding question: function to delete doctor and jinja template to show the deleted doctor as well as all other doctors. Also asked me to write the code for flash messages
    Times asked 1
    Official solution

    SimpleJinja for loop list render karta hai. loop.index, else branch empty list pe.

    Example

    {% for u in users %}
      <tr><td>{{ loop.index }}</td><td>{{ u.email }}</td></tr>
    {% endfor %}
Advice: The questions were a bit unexpected for me. Sir asked me to make the file structure explanation quicker next time as he had to stop my explanation part before completing it to ask the viva qns and there was no time to complete the explanation and show demo in the end.
  1. 1
    Why used blueprints
    Times asked 1
    Official solution

    SimpleBlueprint se app ko modules mein todte ho — auth, admin, user alag files. Scale + clean structure.

    Example

    auth_bp = Blueprint('auth', __name__, url_prefix='/auth')
    
    @auth_bp.route('/login')
    def login(): ...
    
    app.register_blueprint(auth_bp)

    Viva tipViva: 'kyun blueprint?' → separation of concerns, badi app maintainable.

  2. 2
    Make a html file and take user credentials
    Times asked 1
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  3. 3
    Status code , assertion
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  4. 4
    app.py - login manager
    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
    app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False , if we make this true
    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()
  6. 6
    make a route to edit parking lot and spots
    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.

  7. 7
    There were more questions related to the backend
    Times asked 1
    Official solution

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

  8. 8
    Status code 305 - Do all the status codes
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

Advice: He is nice , patient and gives time to try and explain. He will also let you ask and correct you where u get wrong. Don't rely on questions here , U need to have a proper understanding of the logics u put behind the project , For me i wasnt able to answer a lot of questions and he simply said me practice and to actually make the project next time for MAD2. Overall he only pointed me where i am weak at and thats good!
  1. 1
    Missed some of these questions, just adding missing questions now👇
    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.

  2. 2
    suppose your app has current storage of 18GB, you wany to scale the app and scaling up demands 20 GB of storage. How will you make this happen?
    Times asked 1
    Official solution

    Simple10k users: Postgres, caching, celery workers, pagination, indexes, load balancer, no SQLite write contention.

  3. 3
    Do you know what are APIs?
    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.

Advice: Again, don't panic and keep your calm. Nervousness will lead you nowhere.
  1. 1
    what http methods we have
    Times asked 1
    Official solution

    SimpleHTTP verbs REST ke tools. Methods HTTP ke hain, REST unhe convention se use karta hai.

    GET read cacheable. POST create payload. PUT replace. PATCH patch. DELETE remove.

    GET exists bina REST ke bhi — browser address bar.

    HTTP verbs + status REST ki zabaan. GET read, POST create, PUT replace, PATCH partial, DELETE remove. GET typically no body.

    Status: 200 OK, 201 created, 202 accepted (Celery task), 400 bad input, 401 no/bad token, 403 role nahi, 404 missing, 409 conflict (double book), 500 server.

    AJAX/fetch page reload nahi. SPA poori isi pe. Postman se bina Vue ke API prove karo — examiner pasand.

    Example

    GET /api/venues
    POST /api/venues
    PUT /api/venues/1
    DELETE /api/venues/1

    Project example: resources.py methods list. Postman 4-5 calls.

    Viva tipGET typically no body (cacheable). POST/PUT/PATCH haan payload. PUT idempotent, POST nahi.

  2. 2
    Do u know about status codes
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  3. 3
    What does 303 status code do
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  4. 4
    Do u know about json? Can json be parsed into html template, if yes then how.
    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
    Create a new py file and write a function for delete lot
    Times asked 1
    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.

  6. 6
    A few other theory questions I forgot.
    Times asked 1
    Official solution

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

Advice: Prepare theory part well, keep your calm, join meet 10 minutes prior as he also joined early and viva concluded in maximum 30 minutes.
  1. 1
    id card dikao porat se download kro project aur GitHub repo dikao
    Times asked 1
    Official solution

    SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.

    Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.

  2. 2
    explain backreef bakpopulate
    Times asked 1
    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
    explain dif between relationship and foreign key
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  4. 4
    explain how this relationship works 4)change background coloue home page 5)make new file and write code for delete lot 6)explain 403 303 503 msges
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  5. 5
    explain class and id(iska jawab mene aisa diya ki proctor has pade)
    Times asked 1
    Official solution

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

  6. 6
    aur ek to kkuch bhi tha meko samj hi nhi aaya kya pucha 2 bar bolne kaha tb bhi nhi samja... kuch to tha ki scalbity ka tha sayd bahut lambba expel diya fir kaha isme konsa sclability honga 11)aur kah ki ek file banao use api ka code liko mene kaha meko api ka jyada idea nhi hai to kaha ki thr+ pr sathme hai men ekah ha to bolte hai ki 6th week me hai mene kaha mene lec nhi deke jyda yt se sb cover krke banaya hai sikke....okk fine ..fir kaha jao yt pe search kro mad1 live sessin mil nhi rhe the fir mil gye kaha yahape 6th live session pe jao usme jo bhi code mam lik rhi hai vo kahse milenga mene kaha nhi pata hai kaha jao GitHub pe aur serch kro kuch name kaha dalne fir repo pe jao usme ye code milenge fir acchse code aur lec krlena sb yah pe hai......okk sir 12)relationship between parking_spot and user
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  7. 7
    age(sunke proctor hase...🙂 mene kaha ------ to kehte hai fir 12th just hui hai kah ayes to kehte hai sep term me admission liya ..yess niceeeeeee)
    Times asked 1
    Official solution

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

  8. 8
    education(kahi bahr admission liya hai?...yes)
    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.

  9. 9
    kahape liya hai konsi field me .....ok Anjali that's from my side ....thank you sir
    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.

Advice: very nice proctor give you time to do all tasks and very polite explain if you stuck anywere....overall very nice proctor
  1. 1
    Diff between http and HTTPS and how is it more secure
    Times asked 1
    Official solution

    SimpleHTTP postcard (koi padh le). HTTPS envelope (TLS lock).

    Same headers, encrypted channel. MITM se password/token bachao. Local viva HTTP OK.

    HTTP/1.1 version keep-alive. TCP neeche, TLS security layer, SMTP mail alag.

    Browser + API ke beech extra darwaze: CORS origin allow, HTTPS encrypt transit, CSRF cookie-auto-send attack, XSS HTML inject, SQL injection raw query.

    MAD2 SPA: Vue :8080 Flask :5000 → Flask-CORS. JWT localStorage XSS se chori ho sakta — v-html user input pe avoid. Password Network tab localhost pe dikhega; prod HTTPS, response mein password echo nahi.

    401 unauthenticated, 403 unauthorized, 400 validation. Hash one-way — SHA decrypt nahi hota. Secret key .env, GitHub pe nahi.

    Project example: Dev localhost http. Production https:// + cert.

    Viva tipProtocols: HTTP/HTTPS app, TCP transport, TLS security, SMTP mail. HTTP/1.1 version — persistent connections.

  2. 2
    how is the insrance folder created. like by what line of code
    Times asked 1
    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
    can templates folder be named as template and static folder be named statics, if yes then how ?
    Times asked 1
    Official solution

    Simplestatic/ folder CSS, JS, images. url_for('static', filename=...) se link.

    Example

    <link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}">
  4. 4
    Https methods and why do we only use GET and POST , why not Put and Patch
    Times asked 1
    Official solution

    SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).

    Example

    @app.route('/login', methods=['GET', 'POST'])
    def login():
        if request.method == 'POST':
            # validate + session
            ...
        return render_template('login.html')
  5. 5
    some css, like if margin value is 1 rem what it means, what is rem.
    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.

  6. 6
    Can ask any code change, color or button change and difficult css explanation.
    Times asked 1
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  7. 7
    Regular theory can be asked, like by other proctors
    Times asked 1
    Official solution

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

  8. 8
    asked me , when we run the app, we see a warning in the terminal, make the required code changes so that this warning is removed. Will ask many weird uncommon questions like that which will be difficult or maybe even not possible.
    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
  9. 9
    Explanation of backref and in which type of relationships it. Should be used (like one to one many to oen etc)
    Times asked 1
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  10. 10
    Cascade...diff bet delete and delete orphan, how to decide when to use which and why
    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.

  11. 11
    Don't rely on questions here...ha is very strict and there to cut down your marks by any way possible, cover everything and anything you did or see in your project and do it in immense detail...he can go into depths
    Times asked 1
    Official solution

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

  1. 1
    allah malik.....
    Times asked 2
    Official solution

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

Advice: know you to meaning of every single line of code......
  1. 1
    1.Difference between web history and web as history
    Times asked 2
    Official solution

    SimpleHTML5 history mode: clean URLs /lots/1 (server fallback chahiye). Hash mode: /#/lots/1 — static host easy, ugly URL.

  2. 2
    2.Forbidden error Integrity errors
    Times asked 2
    Official solution

    SimpleInt column mein string daalne pe SQLAlchemy/DB type error ya Integrity/StatementError. Empty table pe bhi same validation fail — row count matter nahi.

    Example

    # SQLite may coerce sometimes; Postgres: invalid input syntax for integer
    Spot(status='free', lot_id='abc')  # lot_id int → error
  3. 3
    3.Difference between Action and Mutation
    Times asked 2
    Official solution

    SimpleMutations sync diary entry. Actions async kaam phir diary.

    Direct state mutate action se Vuex 4 discouraged. Devtools time-travel mutations.

    Purpose of Actions: API, phir commit. Purpose of Mutations: state change one place.

    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: action fetchVenues → commit setVenues. Mutation sirf array replace.

  4. 4
    4.What is the use of ref
    Times asked 1
    Official solution

    SimpleComponent = reusable UI piece (navbar, card, form). Props in, events out. Vue SFC ya Jinja macros/includes.

    Viva tipParent-child: props down, emit/$emit up.

  5. 5
    5.Difference between ref and reactive
    Times asked 1
    Official solution

    Simpleref() wrap .value, primitive. reactive() object proxy. Destructure ref toot sakta.

    Options API this.x. Composition choose one style.

    Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.

    computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.

    SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.

    Example

    const count = ref(0)
    count.value++
    const form = reactive({ email: '' })

    Project example: If Options only, bolo nahi use, Options data().

  6. 6
    7.Write the API code for fetching the export feature
    Times asked 1
    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'
  7. 7
    9.Show me where the sent email can be seen or where can we see the exact mail after scheduled
    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.

  8. 8
    10.How to check if a mail has been sent
    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.

  9. 9
    Say the code (sql based) which defines many to many relation between tables
    Times asked 2
    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.

  10. 10
    11. Go to the schedule section of reminder and change the time to current time.
    Times asked 2
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

Advice: Pray to every god
  1. 1
    Questions are almost similar what is mentioned in the sheet.
    Times asked 2
    Official solution

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

Advice: Examiner is not so rude, shares feedback (positive and negative). Overall ok experience.
  1. 1
    Explain scalability and it's types, which will be more scalable cli or cdn
    Times asked 1
    Official solution

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

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

  2. 2
    Life cycle hooks
    Times asked 6
    Official solution

    SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.

    Progressive frontend framework. Components, reactivity, directives.

    MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.

    Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.

    Example

    <!-- HelloWorld.vue -->
    <template>
      <h1>{{ msg }}</h1>
    </template>
    <script>
    export default { data() { return { msg: 'Hello' } } }
    </script>

    Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.

    Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.

  3. 3
    What is Object in vue and why do we use it
    Times asked 1
    Official solution

    SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.

    Progressive frontend framework. Components, reactivity, directives.

    MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.

    Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.

    Example

    <!-- HelloWorld.vue -->
    <template>
      <h1>{{ msg }}</h1>
    </template>
    <script>
    export default { data() { return { msg: 'Hello' } } }
    </script>

    Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.

    Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.

  4. 4
    Create api to Update username and email for user. Create file in vs code
    Times asked 1
    Official solution

    SimpleUngli rakhe to 4-line formula — panic ki jagah structure.

    1) File ka role: model / Flask route / Vue SFC / celery task / config
    2) Input kahan: JSON, params, token, props, $route
    3) Kya kaam: query, cache, validation, .delay()
    4) Output: jsonify, this.items, email, redirect

    Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.

    Suggested flow1) Kaunsi layer?
    2) Input?
    3) DB/cache/task?
    4) Response/UI?

    Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.

    Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.

  5. 5
    Show celery emails
    Times asked 1
    Official solution

    SimpleCelery = background naukri. HTTP request ko 10 second email bhejne ke liye mat rokna.

    Distributed task queue: aap function ko abhi nahi, worker process mein later/retry/schedule pe chalaate ho.

    MAD2 typical jobs: daily reminder mail, monthly HTML report, user-triggered CSV export.

    Web request 200ms hona chahiye. 10,000 emails request thread mein = timeout. Worker alag CPU pe kaam kare.

    Redis broker chahiye. Beat alag process schedule ke liye.

    Example

    @celery.task
    def daily_reminder():
        for u in User.query.filter_by(active=True):
            send_mail(u.email, 'Book something today!')

    Project example: User Export click → 202 Accepted. Worker CSV + email. Daily 6pm Beat reminder.

    Viva tipWorker + Redis bina Beat ke user-triggered chalega. Scheduled jobs ke liye Beat bhi chahiye.

Advice: He will ask from whatever you say and show. Be mindful of your words. Give precise and clear answers.
  1. 1
    Level 2 viva Coding
    Times asked 2
    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
    Change the celery cornjob to today's time for showcase of mail
    Times asked 2
    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.

  3. 3
    how to send props from child to parent(use emit) Show a code on emit Theory
    Times asked 2
    Official solution

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

  4. 4
    what is userdatastore
    Times asked 1
    Official solution

    Simpledata() local diary. Store school notice board.

    Search query local. Logged-in user store. Persist: store + localStorage together.

    state vs data: similar concept, scope alag.

    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.

    Example

    // local
    data() { return { q: '' } }
    // global
    this.$store.state.user

    Project example: Login.vue local form fields. this.$store.state.user Navbar.

  5. 5
    what is db and how is it different from model.py and what is model.py
    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)
  6. 6
    cli vs cdn which is more beneficial
    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.

Advice: He has an infamous reputation that's sure know your code really well and prepare theory and code so that he is satisfied In my case he seemed tired so didn't ask much but you should be ready for any questions he will throw at you He is really strict with concepts
  1. 1
    props vs emit , difference between mvc (v) and vue , status code , models.py me one to one implement and one to many , many to many , crontab scheduling , if u have used celery beat , then why monthly_report.s(), status codes
    Times asked 1
    Official solution

    SimpleStatus code server ka result: 200 OK, 302 redirect, 400 bad input, 401/403 auth, 404 not found, 500 server error.

  2. 2
    yes you should know each and every line of ur code , he said if it falls under the subject , u have to answer , it doesn't matter if u have used it in ur project or not
    Times asked 2
    Official solution

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

  3. 3
    vuex ka question bhi pucha tha , vo yaad nhi hai
    Times asked 2
    Official solution

    SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.

    Progressive frontend framework. Components, reactivity, directives.

    MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.

    Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.

    Example

    <!-- HelloWorld.vue -->
    <template>
      <h1>{{ msg }}</h1>
    </template>
    <script>
    export default { data() { return { msg: 'Hello' } } }
    </script>

    Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.

    Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.

  4. 4
    asked a lot more questions
    Times asked 2
    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
    he asked me to open my code , explain my project structure , then in code , open models.py
    Times asked 1
    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)
  6. 6
    relationship between tables ,
    Times asked 2
    Official solution

    Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.

    Example

    spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
  7. 7
    fetch call for frontend and template part
    Times asked 2
    Official solution

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

  8. 8
    crontab change in timing
    Times asked 2
    Official solution

    SimpleCrontab 5 boxes: minute hour day-of-month month day-of-week.

    crontab(hour=18, minute=0) roz 6pm. day_of_month=1 monthly. minute='*/1' har minute test.

    Standard cron seconds support nahi. Examiner 'every 10 seconds' bole to schedule=10.0.

    Beat process isi dict ko padhti hai. Edit ke baad beat restart.

    Example

    from celery.schedules import crontab
    crontab(hour=18, minute=0)
    crontab(minute='*/1')
    crontab(day_of_month=1, hour=9, minute=0)

    Project example: daily 18:00, monthly 1st 09:00. Viva mein dono 17:20 karke live dikhaya.

    Viva tipStandard cron seconds support nahi karta. Har 10 sec ke liye Celery schedule=10.0 use karo.

Advice: actually ,whatever you have written in code , you should know why and if it would work same without it , definitely , but he could ask you something more too
  1. 1
    theory question
    Times asked 2
    Official solution

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

  2. 2
    - which one you are using vue2 or vue3
    Times asked 2
    Official solution

    SimpleVue 3 naya engine: Composition API, fragments, better TS, tree-shaking. Vue 2 Options + filters.

    mounted vs onMounted. Filters Vue 3 mein hata — computed/methods.

    Version package.json / Vue.version se dikhao. Jo use kiya uske hooks bolo.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: package.json vue ^3.x. setup() + onMounted fetch.

    Viva tipVersion package.json / Vue.version se dikhao. MAD2 dono allowed usually — jo use kiya uske hooks bolo (mounted vs onMounted).

  3. 3
    - any difference btw vue2 or vue3
    Times asked 2
    Official solution

    SimpleVue 3 naya engine: Composition API, fragments, better TS, tree-shaking. Vue 2 Options + filters.

    mounted vs onMounted. Filters Vue 3 mein hata — computed/methods.

    Version package.json / Vue.version se dikhao. Jo use kiya uske hooks bolo.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: package.json vue ^3.x. setup() + onMounted fetch.

    Viva tipVersion package.json / Vue.version se dikhao. MAD2 dono allowed usually — jo use kiya uske hooks bolo (mounted vs onMounted).

  4. 4
    - Vue router
    Times asked 1
    Official solution

    SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.

    Progressive frontend framework. Components, reactivity, directives.

    MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.

    Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.

    Example

    <!-- HelloWorld.vue -->
    <template>
      <h1>{{ msg }}</h1>
    </template>
    <script>
    export default { data() { return { msg: 'Hello' } } }
    </script>

    Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.

    Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.

  5. 5
    ( more question puche the jo yaad nahi samajh hi nahi aa rha puch kya rha h )
    Times asked 2
    Official solution

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

  6. 6
    Coading Question
    Times asked 2
    Official solution

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

  7. 7
    - asking are u using cleeary and chache ( jo maine implement nahi kiya )
    Times asked 2
    Official solution

    SimpleCron/crontab = schedule pe job. Celery Beat app-level cron (daily email). OS crontab alag.

    Example

    crontab(hour=18, minute=0)  # har din 6pm
  8. 8
    - fetch api from fronted part ( write on notepad, problem ushi diya tha )
    Times asked 2
    Official solution

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

  9. 9
    - and implement on vue component
    Times asked 2
    Official solution

    SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.

    Progressive frontend framework. Components, reactivity, directives.

    MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.

    Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.

    Example

    <!-- HelloWorld.vue -->
    <template>
      <h1>{{ msg }}</h1>
    </template>
    <script>
    export default { data() { return { msg: 'Hello' } } }
    </script>

    Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.

    Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.

Advice: Unpredictable kuch bhi puch sakta h bahut intese h fail karne ko ready (mai bhi fail ho gya )
  1. 1
    Index.html se open kyu kr rha h change the port aur phir open kro
    Times asked 2
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  2. 2
    Console khol ke koi error aa rha usko thiq kro
    Times asked 2
    Official solution

    SimpleDebug: terminal traceback padho, print/logging, Flask debug, browser Network/Console, reproduce minimum steps.

  3. 3
    Token based authentication vs session based authentication with code example
    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().

  4. 4
    Cdn why not cli
    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.

  5. 5
    Create a new model.py
    Times asked 1
    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)
  6. 6
    Admin dashboard ka side bar recreate kro
    Times asked 2
    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.

  7. 7
    Route banao nye to fetch an api call
    Times asked 2
    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.

  8. 8
    Ek aur route to delete
    Times asked 2
    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.

  9. 9
    Sql query to fetch users who have registered
    Times asked 2
    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.

  10. 10
    Css file explanation each line in deatil
    Times asked 2
    Official solution

    SimpleCSS look. Selectors element .class #id. Box model flex grid.

    Inline vs internal vs external. Specificity inline high.

    Look: Bootstrap utility classes (margin m-3, flex, grid) ya khud CSS. Responsive = media query / Bootstrap breakpoints se mobile.

    Vue scoped style leak nahi. :class binding. Examiner colour/button live change maange to DevTools nahi, source class dikhao.

    CSS ≠ Bootstrap. Bootstrap CSS+JS framework. Inline style last resort.

    Example

    .btn { background: green; }
    .mt-2 { margin-top: .5rem; }  /* bootstrap */
    .my-3 { margin-top+bottom }

    Project example: style section SFC scoped + bootstrap.

    Viva tipResponsive: Bootstrap grid / media queries. Bina CSS possible nahi really — browser default ugly. Flexbox 1D, Grid 2D.

  11. 11
    Demo
    Times asked 9
    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.

Advice: Bch ke rhna
  1. 1
    duration: exact 1 hr (9 to 10pm)
    Times asked 2
    Official solution

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

  2. 2
    {for level 2}
    Times asked 2
    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.

  3. 3
    Conceptual Questions
    Times asked 2
    Official solution

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

  4. 4
    - Redis: Server-side or client-side?
    Times asked 1
    Official solution

    SimpleRedis server-side daemon hai. Browser usko directly nahi bolta.

    Flask/Celery redis-py se localhost:6379. Client-side localStorage alag.

    Examiner confuse kare: 'Redis frontend?' — nahi, backend process.

    Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.

    MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.

    Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.

    Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.

    Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.

    Project example: redis-server terminal. Vue sirf fetch Flask.

  5. 5
    - Explain Celery initialization (celery init)
    Times asked 1
    Official solution

    SimpleCelery instance, broker URL, @celery.task, worker command, Beat schedule.

    DB use karte waqt with app.app_context():. .delay() JSON-serializable args.

    Examiner files: celery.py / tasks.py / config beat dict / README commands.

    Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.

    Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.

    MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.

    Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.

    Example

    celery = Celery(__name__, broker='redis://localhost:6379/0')
    @celery.task
    def ping():
        return 'ok'

    Project example: jobs.py daily_reminder, monthly_report, export_csv. config.py broker.

  6. 6
    - How to change a crontab schedule
    Times asked 1
    Official solution

    SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.

    Example

    /* button red */
    .btn-primary { background: red; }
    
    /* center navbar item */
    .navbar { justify-content: center; }

    Viva tipDevTools se pehle try, phir file mein permanent change.

  7. 7
    - What is a key prefix in cache vs memoize?
    Times asked 2
    Official solution

    SimpleUngli rakhe to 4-line formula — panic ki jagah structure.

    1) File ka role: model / Flask route / Vue SFC / celery task / config
    2) Input kahan: JSON, params, token, props, $route
    3) Kya kaam: query, cache, validation, .delay()
    4) Output: jsonify, this.items, email, redirect

    Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.

    Suggested flow1) Kaunsi layer?
    2) Input?
    3) DB/cache/task?
    4) Response/UI?

    Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.

    Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.

  8. 8
    Can the same child route work in Vue? (Write and test it)
    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'
  9. 9
    Coding Practice Prompts
    Times asked 2
    Official solution

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

  10. 10
    - Write a fetch request without looking at the code
    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'
  11. 11
    - Write a fetch request for deletion of a subject
    Times asked 2
    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.

  12. 12
    - Schedule a daily reminder using crontab
    Times asked 2
    Official solution

    SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.

    Scheduled vs user-triggered dono dikhao. Missing feature honestly.

    Examiner 2 cheezein: simple desi line + tumhare project ki exact file.

    Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.

    Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.

    Suggested flow1) redis
    2) worker
    3) beat
    4) crontab now
    5) logs + MailHog

    Example

    CELERY_BEAT_SCHEDULE = {
      'daily-reminder': {
        'task': 'jobs.daily_reminder',
        'schedule': crontab(hour=18, minute=0),
      },
    }

    Project example: Change schedule current time. MailHog. Export button 202.

Advice: The proctor’s approach was intense, technical, and hands-on, with a clear preference for code understanding over presentation. - Prioritized code comprehension over flashy demos. - Asked candidates to write or modify code live, testing real-time problem-solving.
  1. 1
    Download the project and run it.
    Times asked 1
    Official solution

    SimpleExaminer wohi ZIP chahta hai jo tumne submit kiya, local extra magic nahi.

    Portal download → extract → redis, venv, pip, npm, flask, worker, beat.

    Checksum maange to hash. Uncommitted files mat dikhana.

    Examiner 2 cheezein: simple desi line + tumhare project ki exact file.

    Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.

    Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.

    Suggested flow1) ZIP
    2) Extract
    3) Redis + venv + pip
    4) npm/vite
    5) flask + celery worker + beat

    Project example: Submitted zip run. README commands copy.

    Viva tipChecksum maange to hash match karke dikhao. Extra uncommitted files mat dikhana.

  2. 2
    Demonstrate the application.
    Times asked 4
    Official solution

    SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.

    Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.

    Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.

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

    Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.

    Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.

  3. 3
    Explain your project structure.
    Times asked 3
    Official solution

    SimpleUngli rakhe to 4-line formula — panic ki jagah structure.

    1) File ka role: model / Flask route / Vue SFC / celery task / config
    2) Input kahan: JSON, params, token, props, $route
    3) Kya kaam: query, cache, validation, .delay()
    4) Output: jsonify, this.items, email, redirect

    Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.

    Suggested flow1) Kaunsi layer?
    2) Input?
    3) DB/cache/task?
    4) Response/UI?

    Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.

    Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.

  4. 4
    Explain models.py.
    Times asked 21
    Official solution

    Simplemodels.py tables ki blueprint. Har class ek table, har Column ek field.

    PK id, FK dusri table, relationship dono taraf, serialize() JSON (password mat).
    app factory db.init. resources APIs use models.

    Examiner random line: type, nullable, unique, ondelete.

    Suggested flow1) Har table → class
    2) PK id
    3) FK
    4) relationship()
    5) serialize()

    Example

    class Booking(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
        user = db.relationship('User', back_populates='bookings')

    Project example: User, Role, Venue/Show/Booking (ya Drive/Application). Draw 1-M.

    Viva tipExaminer random line poochhe: column type, FK, constraint. Draw 1-M / M-M on paper mentally.

  5. 5
    Explain table relationships (One-to-One, One-to-Many, Many-to-Many).
    Times asked 1
    Official solution

    Simple1-1 uselist=False. 1-M list. M-M association table roles_users.

    back_populates both sides. Draw viva.

    ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.

    class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.

    SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.

    Bookings source of truth DB, Redis cache copy.

    Example

    roles_users = db.Table('roles_users',
        db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
        db.Column('role_id', db.Integer, db.ForeignKey('role.id')),
    )
    class User(db.Model):
        roles = db.relationship('Role', secondary=roles_users, backref='users')

    Project example: User-Booking 1-M. User-Role M-M.

  6. 6
    Create a new model.py model.
    Times asked 1
    Official solution

    Simple

    class X(db.Model) create_all/migrate relationship restart. Create new model.py model.

    Register import.

    ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.

    class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.

    SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.

    Bookings source of truth DB, Redis cache copy.

    Project example: models.py.

  7. 7
    Explain the CSS file line by line.
    Times asked 1
    Official solution

    SimpleUngli rakhe to 4-line formula — panic ki jagah structure.

    1) File ka role: model / Flask route / Vue SFC / celery task / config
    2) Input kahan: JSON, params, token, props, $route
    3) Kya kaam: query, cache, validation, .delay()
    4) Output: jsonify, this.items, email, redirect

    Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.

    Suggested flow1) Kaunsi layer?
    2) Input?
    3) DB/cache/task?
    4) Response/UI?

    Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.

    Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.

  8. 8
    Explain db and how it differs from model.py.
    Times asked 1
    Official solution

    Simpledb engine/session. models.py classes. Tables metadata.create_all.

    db and how differs from model.py.

    ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.

    class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.

    SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.

    Bookings source of truth DB, Redis cache copy.

    Project example: extensions.py db, models import db.

  9. 9
    Vue 2 vs Vue 3.
    Times asked 1
    Official solution

    SimpleVue 3 naya engine: Composition API, fragments, better TS, tree-shaking. Vue 2 Options + filters.

    mounted vs onMounted. Filters Vue 3 mein hata — computed/methods.

    Version package.json / Vue.version se dikhao. Jo use kiya uske hooks bolo.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: package.json vue ^3.x. setup() + onMounted fetch.

    Viva tipVersion package.json / Vue.version se dikhao. MAD2 dono allowed usually — jo use kiya uske hooks bolo (mounted vs onMounted).

  10. 10
    Vue CLI vs Vue CDN.
    Times asked 6
    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.

  11. 11
    Why did you choose CDN over CLI?
    Times asked 1
    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.

  12. 12
    Which is more scalable: CLI or CDN?
    Times asked 1
    Official solution

    SimpleCLI/Vite bundle split env more scalable. CDN widget/prototype.

    Which more scalable: CLI. Which you used: honest.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: If CDN, admit tradeoff.

  13. 13
    What is Vue Router?
    Times asked 3
    Official solution

    SimpleRouter URL ko component se map karta hai. Google Maps for pages.

    routes array path+component. router-view jagah. router-link reload nahi.

    meta.auth + beforeEach guard. Dynamic /venues/:id.

    Nayi page: SFC + routes entry + link.

    Example

    const routes = [
      { path: '/', component: Home },
      { path: '/login', component: Login },
      { path: '/venues/:id', component: VenueDetail, meta: { auth: true } },
    ]

    Project example: routes.js Login, Register, UserHome, AdminHome, 404.

    Viva tipNayi page: component banao, routes array mein path, router-link se jao.

  14. 14
    Difference between createWebHistory and createWebHashHistory.
    Times asked 1
    Official solution

    SimpleHash #/login server config nahi. History /login pretty, Flask SPA fallback chahiye.

    createWebHashHistory vs createWebHistory. Exam static hash easy.

    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.

    Example

    createRouter({ history: createWebHashHistory(), routes })

    Project example: router history mode file. URL bar dikhao.

  15. 15
    What is meta in Vue Router? What alternatives exist?
    Times asked 1
    Official solution

    Simplemeta extra flags auth role. Guards read. Alt: each component check repeat, wrapper, server 403.

    What is meta alternatives.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: meta: { auth: true, role: 'admin' }.

  16. 16
    What is Vuex?
    Times asked 3
    Official solution

    SimpleVuex/Pinia ghar ka notice board. Har room (component) same user/token dekhe.

    State data, mutations sync change, actions async API phir commit.

    Local data() sirf us component. Token/user global.

    Pinia Vue 3 official, kam boilerplate. Vuex older MAD2 still common.

    Example

    state: { user: null }
    mutations: { setUser(s, u) { s.user = u } }
    actions: { async login({ commit }, form) {
      const u = await api.login(form); commit('setUser', u)
    }}

    Project example: store user + token login action. Navbar getters isAdmin. Logout clear LS+state.

    Viva tipLocal/Session storage persist ke liye, reactive share ke liye store. Pinia Vue 3 official, Vuex older.

  17. 17
    Difference between data and store.
    Times asked 1
    Official solution

    Simpledata() local diary. Store school notice board.

    Search query local. Logged-in user store. Persist: store + localStorage together.

    state vs data: similar concept, scope alag.

    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.

    Example

    // local
    data() { return { q: '' } }
    // global
    this.$store.state.user

    Project example: Login.vue local form fields. this.$store.state.user Navbar.

  18. 18
    Difference between state and data.
    Times asked 1
    Official solution

    Simpledata() local. Vuex state global. Similar, scope alag.

    Difference state and data.

    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: q in data, user in store.

    Project example: q in data, user in store.

  19. 19
    Difference between props and emit.
    Times asked 1
    Official solution

    SimpleProps parent→child values. Emit child→parent signal. Basic communication.

    Difference props and emit.

    Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.

    computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.

    SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.

    Project example: Card props venue emit select.

  20. 20
    Show how to send data from child to parent using emit.
    Times asked 1
    Official solution

    Simpleemit = child parent ko chillata hai: 'delete 5'. Props down, events up.

    this.$emit('delete', id). Parent @delete="removeRow".

    Grandchild: chain emit ya Vuex/provide.

    Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.

    computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.

    SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.

    Example

    this.$emit('delete', id)
    // parent: <Child @delete="removeRow" />

    Project example: BookingRow emit cancel → parent list se hata + API DELETE.

  21. 21
    What is ref?
    Times asked 1
    Official solution

    Simpletemplate ref $refs OR composition ref() primitive. Two meanings — ask context.

    What is ref in Vue.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: If Options this.$refs.form. If composition ref(0).

  22. 22
    Difference between ref and reactive.
    Times asked 1
    Official solution

    Simpleref() wrap .value, primitive. reactive() object proxy. Destructure ref toot sakta.

    Options API this.x. Composition choose one style.

    Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.

    computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.

    SFC: template + script + style ek .vue file. Parent-child exam favourite: list parent, row child :item + @delete.

    Example

    const count = ref(0)
    count.value++
    const form = reactive({ email: '' })

    Project example: If Options only, bolo nahi use, Options data().

  23. 23
    What are Vue Lifecycle Hooks?
    Times asked 5
    Official solution

    SimpleLifecycle = component ki zindagi ke stages. API call tab jab DOM ready ho — mounted.

    created: instance bani, this data, DOM nahi. mounted/onMounted: page pe aa gaya — fetch, Chart.js, setInterval.
    updated: data change ke baad. unmounted: cleanup (clearInterval) warna memory leak.

    Dashboards onMounted isliye: canvas/API tab valid. created mein $el nahi.

    Composition: onMounted(() => {}) setup ke andar.

    Example

    export default {
      async mounted() {
        const r = await fetch('/api/venues')
        this.venues = await r.json()
      }
    }

    Project example: Venues.vue mounted fetch list. Clock component unmounted pe interval clear.

    Viva tipcreated: data setup, DOM nahi. mounted/onMounted: $el mil gaya — fetch yahi. Dashboards isliye onMounted use karti hain.

  24. 24
    What is an Object in Vue and why is it used?
    Times asked 1
    Official solution

    SimpleOptions object data methods computed hooks. Reactivity observes object. JSON subset key-value.

    What is an Object in Vue why used. JS object.

    SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.

    Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id$route.params.id.

    Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.

    Project example: export default { data() { return {} } }

  25. 25
    Token-based vs Session-based authentication (with code example).
    Times asked 1
    Official solution

    SimpleSession school id card office mein rakha. Token photocopy jo tum har baar dikhate ho.

    Session: Set-Cookie, server store, MAD1 Flask-Login. CSRF risk cookies auto-send.

    Token/JWT: SPA + alag port Vue/Flask, scale easy, mobile. XSS if localStorage.

    MAD2 typically JWT/Flask-Security token. httpOnly cookie safer lekin CORS+CSRF extra.

    Example

    # session
    login_user(user)  # Set-Cookie
    # token
    return jsonify(token=create_access_token(identity=user.id))

    Project example: login jsonify token. Vue LS. MAD1 session cookie nahi dikhana unless used.

    Viva tipToken localStorage XSS risk; httpOnly cookie safer. Session CSRF risk. MAD2 APIs ke liye JWT/Flask-Security token common.

  26. 26
    What is UserDatastore?
    Times asked 2
    Official solution

    Simpledata() local diary. Store school notice board.

    Search query local. Logged-in user store. Persist: store + localStorage together.

    state vs data: similar concept, scope alag.

    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.

    Example

    // local
    data() { return { q: '' } }
    // global
    this.$store.state.user

    Project example: Login.vue local form fields. this.$store.state.user Navbar.

  27. 27
    HTTP status codes.
    Times asked 1
    Official solution

    Simple2xx jeet, 4xx teri galti, 5xx meri (server) galti.

    200 OK, 201 Created, 400 validation, 401 no/invalid token (authentication fail), 403 role (authorization fail), 404 missing, 409 conflict, 500 crash.

    403 vs IntegrityError: 403 permission. Duplicate unique → 400/409, 500 mat chhodo.

    Example

    return jsonify(msg='ok'), 200
    return jsonify(msg='login required'), 401

    Project example: Login fail 401. User admin API 403. Duplicate booking 400.

    Viva tip403 vs IntegrityError: 403 permission, IntegrityError DB constraint (duplicate unique) — 400/409 banao, 500 mat chhodo.

  28. 28
    Forbidden (403) vs Integrity Errors.
    Times asked 1
    Official solution

    Simple2xx jeet, 4xx teri galti, 5xx meri (server) galti.

    200 OK, 201 Created, 400 validation, 401 no/invalid token (authentication fail), 403 role (authorization fail), 404 missing, 409 conflict, 500 crash.

    403 vs IntegrityError: 403 permission. Duplicate unique → 400/409, 500 mat chhodo.

    Example

    return jsonify(msg='ok'), 200
    return jsonify(msg='login required'), 401

    Project example: Login fail 401. User admin API 403. Duplicate booking 400.

    Viva tip403 vs IntegrityError: 403 permission, IntegrityError DB constraint (duplicate unique) — 400/409 banao, 500 mat chhodo.

  29. 29
    Is Redis server-side or client-side?
    Times asked 1
    Official solution

    SimpleRedis server-side daemon hai. Browser usko directly nahi bolta.

    Flask/Celery redis-py se localhost:6379. Client-side localStorage alag.

    Examiner confuse kare: 'Redis frontend?' — nahi, backend process.

    Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.

    MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.

    Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.

    Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.

    Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.

    Project example: redis-server terminal. Vue sirf fetch Flask.

  30. 30
    Difference between server-side and client-side storage.
    Times asked 1
    Official solution

    SimpleServer DB Redis sessions authoritative. Client cache UX. Never trust client role.

    Difference server-side and client-side storage.

    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: Bookings DB. Token LS. Cache Redis server.

  31. 31
    Explain Celery initialization.
    Times asked 1
    Official solution

    SimpleCelery instance, broker URL, @celery.task, worker command, Beat schedule.

    DB use karte waqt with app.app_context():. .delay() JSON-serializable args.

    Examiner files: celery.py / tasks.py / config beat dict / README commands.

    Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.

    Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.

    MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.

    Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.

    Example

    celery = Celery(__name__, broker='redis://localhost:6379/0')
    @celery.task
    def ping():
        return 'ok'

    Project example: jobs.py daily_reminder, monthly_report, export_csv. config.py broker.

  32. 32
    Explain Celery Beat.
    Times asked 1
    Official solution

    SimpleCelery Beat = app-level cron. OS crontab se alag, Windows pe bhi chal jaata hai.

    CELERY_BEAT_SCHEDULE dict. Beat process continuously. Timezone naive UTC issues common — demo ke liye current minute set karo.

    Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.

    Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.

    MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.

    Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.

    Project example: monthly_report crontab(day_of_month=1, hour=8, minute=0).

  33. 33
    How do you change a Crontab schedule?
    Times asked 1
    Official solution

    SimpleCELERY_BEAT_SCHEDULE edit, beat restart. Dynamic: PeriodicTask table (redbeat/django-celery-beat) — student apps static dict.

    Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.

    Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.

    MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.

    Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.

    Project example: tasks.py reminder + export. Worker + Beat terminals. MailHog 8025.

  34. 34
    Change the reminder/monthly report schedule to the current time.
    Times asked 1
    Official solution

    SimpleSchedule current time / har minute, beat restart, logs + MailHog.

    Don't forget worker. Crontab fields. Demo ke baad revert if asked.

    Examiner 2 cheezein: simple desi line + tumhare project ki exact file.

    Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.

    Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.

    Example

    crontab(hour=17, minute=20)
    crontab(minute='*/1')
    @celery.task
    def add(a, b):
        return a + b

    Project example: CELERY_BEAT_SCHEDULE edit. Terminal beat 'Sending due task'.

  35. 35
    Write the scheduling code for the monthly report.
    Times asked 1
    Official solution

    Simplebeat monthly crontab day_of_month. Write scheduling code monthly report.

    Restart beat.

    Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.

    Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.

    MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.

    Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.

    Example

    'monthly-report': {'task': 'jobs.monthly', 'schedule': crontab(day_of_month=1, hour=8, minute=0)}

    Project example: CELERY_BEAT_SCHEDULE.

  36. 36
    Show Celery-generated emails.
    Times asked 1
    Official solution

    SimpleMAIL config Message MailHog. Show how emails sent SMTP. Show Celery-generated emails. Where email sending logic.

    tasks.py + MailHog.

    Flask-Mail / SMTP se mail. Local MailHog fake server: SMTP 1025, UI 8025 — internet nahi, viva safe.

    Asli send Celery task mein, request thread mein nahi. Beat 6pm reminder, export ke baad CSV attach optional.

    MAIL_SERVER localhost demo. Gmail SMTP student account pe block common. Body mein user name personalization examiner dekhta hai.

    Project example: screenshot 8025.

  37. 37
    Where can you view sent emails?
    Times asked 1
    Official solution

    SimpleMailHog local fake post office — email internet pe nahi jaata, browser mein dikhta hai.

    SMTP 1025, Web UI 8025. Viva demo gold. Credentials nahi.

    Real Gmail SMTP student accounts pe block common — MailHog safer.

    Flask-Mail / SMTP se mail. Local MailHog fake server: SMTP 1025, UI 8025 — internet nahi, viva safe.

    Asli send Celery task mein, request thread mein nahi. Beat 6pm reminder, export ke baad CSV attach optional.

    MAIL_SERVER localhost demo. Gmail SMTP student account pe block common. Body mein user name personalization examiner dekhta hai.

    Example

    MAIL_SERVER=localhost
    MAIL_PORT=1025
    # http://localhost:8025

    Project example: Reminder task → MailHog list → HTML body user name ke saath.

  38. 38
    How do you verify that an email has been sent?
    Times asked 1
    Official solution

    SimpleMailHog UI, sent log, Celery SUCCESS, SMTP debug.

    Don't need real inbox.

    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: localhost:8025 after reminder.

    Project example: localhost:8025 after reminder.

  39. 39
    Difference between cache.cached and cache.memoize key prefixes.
    Times asked 1
    Official solution

    Simplecached poori view ko yaad rakhta hai, memoize function ke arguments ke hisaab se.

    @cache.cached URL / key_prefix (optional query_string) se key banata hai — list endpoints ke liye.
    @cache.memoize arguments se key banata hai — get_user(5) aur get_user(9) alag cache.

    Prefix clash se galat data mil sakta hai. Dono ka timeout same idea hai. Invalidation: delete_memoized(fn, args) vs cache.delete(prefix).

    Example

    @cache.cached(timeout=30, key_prefix='home')
    def home(): ...
    
    @cache.memoize(30)
    def get_user(user_id): ...  # alag key per user_id

    Project example: Venues list = cached. User-wise report function = memoize(user_id).

    Viva tipList endpoint: cached. Function with arguments: memoize. Prefix alag rakho warna clash.

  40. 40
    Write a fetch() request without referring to your project.
    Times asked 1
    Official solution

    Simplefetch(url).then(r=>r.json()).then(console.log).catch. Write fetch without referring project.

    async/await also OK.

    JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.

    Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.

    fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.

    Project example: Notepad.

    Project example: Notepad.

  41. 41
    Write a fetch() request to delete a subject.
    Times asked 1
    Official solution

    Simplefetch DELETE + Authorization then refresh list. Write fetch delete a subject.

    method DELETE.

    JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.

    Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.

    fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.

    Example

    await fetch('/api/subjects/'+id,{method:'DELETE', headers:{Authorization:'Bearer '+t}})

    Project example: admin table delete btn.

  42. 42
    Implement the fetch() request in a Vue component.
    Times asked 1
    Official solution

    Simplefetch browser ka daakia. res.ok khud throw nahi karta — check karo.

    JSON header, Authorization Bearer. try/catch network. 400 pe message toast.

    Axios interceptors token auto. fetch verbose lekin native.

    JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.

    Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.

    fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.

    Example

    async mounted() {
      const res = await fetch('/api/hello', {
        headers: { Authorization: 'Bearer ' + token }
      })
      if (!res.ok) throw new Error(res.status)
      this.msg = (await res.json()).message
    }

    Project example: api.js wrapper. Har component usse. Error banner.

  43. 43
    Create a new API route to fetch data.
    Times asked 1
    Official solution

    SimpleGET list jsonify. Vue new component display. Create new API route fetch data.

    CORS token.

    JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.

    Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.

    fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.

    Project example: Hello World then real query.

    Project example: Hello World then real query.

  44. 44
    Create a new DELETE route.
    Times asked 1
    Official solution

    Simple

    @app.route DELETE get delete commit 200. Create new DELETE route.

    Auth. 404 if missing.

    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: Postman DELETE.

    Project example: Postman DELETE.

  45. 45
    Create an API to update a user's username and email.
    Times asked 1
    Official solution

    SimplePUT /api/me {username,email} unique check commit 200. Create API update username email.

    Auth current_user.

    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: profile form.

    Project example: profile form.

  46. 46
    Write the API for the export feature.
    Times asked 1
    Official solution

    SimplePOST export.delay 202 task_id. Write API export feature.

    @auth_required.

    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.

    Example

    @auth_required()
    @app.route('/api/export', methods=['POST'])
    def export():
        t = export_csv.delay(current_user.id)
        return jsonify(task_id=t.id), 202

    Project example: export route.

  47. 47
    Write a SQL query to fetch all registered users.
    Times asked 1
    Official solution

    SimpleSELECT id, email FROM user; ORM User.query.all(). Write SQL fetch all registered users.

    Don't SELECT password.

    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: sqlite3 or ORM.

    Project example: sqlite3 or ORM.

  48. 48
    Write the SQLAlchemy relationship for a Many-to-Many relationship.
    Times asked 1
    Official solution

    SimpleTable secondary relationship. Write SQLAlchemy Many-to-Many. User↔Role example.

    association table.

    ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.

    class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.

    SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.

    Bookings source of truth DB, Redis cache copy.

    Project example: roles_users.

  49. 49
    Recreate the Admin Dashboard sidebar.
    Times asked 1
    Official solution

    SimpleLive CSS/Vue: sabse chhota change jo dikhe. Logic/API mat todo unless poochhein.

    Inspect element se class dhoondo. btn-success, navbar bottom fixed, center flex.

    Save, refresh, dikhao. Break mat karo layout poora.

    Example

    <button class="btn btn-success">Login</button>
    nav { position: fixed; bottom: 0; width: 100%; }
    .wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

    Project example: Jo button/navbar poocha usi file (Navbar.vue / App.vue / css).

    Viva tipDevTools se element inspect. Logic/API mat todo unless poochhein.

  50. 50
    Fix a browser console error.
    Times asked 1
    Official solution

    SimpleF12 Console CORS, undefined, 404. Network status. Fix origin/typo.

    Vue warn extra.

    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: Reproduce error, fix, refresh clean console.

    Project example: Reproduce error, fix, refresh clean console.

  51. 51
    Change the application port and run the application.
    Times asked 1
    Official solution

    Simpleflask run -p 8000. Vite server.port. CORS axios baseURL. Run and open new URL.

    Change application port.

    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: Don't forget Vue proxy.

    Project example: Don't forget Vue proxy.

  52. 52
    Relationship implementation in SQLAlchemy (One-to-One, One-to-Many, Many-to-Many).
    Times asked 1
    Official solution

    Simple1-1 uselist=False. 1-M list. M-M association table roles_users.

    back_populates both sides. Draw viva.

    ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.

    class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.

    SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.

    Bookings source of truth DB, Redis cache copy.

    Example

    roles_users = db.Table('roles_users',
        db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
        db.Column('role_id', db.Integer, db.ForeignKey('role.id')),
    )
    class User(db.Model):
        roles = db.relationship('Role', secondary=roles_users, backref='users')

    Project example: User-Booking 1-M. User-Role M-M.

  53. 53
    What is scalability?
    Times asked 1
    Official solution

    SimpleLoad badhe to handle: scale up/out, cache, async, DB tune.

    SQL scale: indexes, pool, replicas, partition, cache hot queries.

    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: If 10k: URI postgres, gunicorn, cache, celery concurrency.

  54. 54
    Difference between Horizontal and Vertical Scaling.
    Times asked 2
    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.

Created for educational purposes only. Questions are based on students' personal experiences and may not reflect actual exam content.