Viva prep · Real questions · Student experiences Enroll in Bootcamp

Proctor workspace

Proctor Level3_24

Share your experience Add your viva experience here
756 Questions
150 Sets
0 Topics
33 Reviews
Tips for this examiner: Actually he was busy in doing something so 40 min I just explained everything, and 10 min he asked , he was in harry. Initially he was a bit rude but if you will be polite and professional, it would be good

Student reviews

Sheet response MAD1

explain your code well(convincing enough that you have idea about what you have done in project), he is very calm and will help you if you aren't able to answer anything

Questions remembered
  1. same as previous questions mentioned in the sheet
Guts MAD1

with ctrl+f find the proctor you been assigned see all the question he/she asked
they mainly ask the same questions
chill proctor.
just take as much time as you can on demo or he will tell you to explain all the code part

Questions remembered
  1. starts with demo(take as much time as you can in demonstrating your project)
  2. ask me to change the background color of my home page
  3. ask me to put navbar in the middle of the page
  4. ask me to create a new user manually in the database
  5. ask me to explain all the code of routes.py
  6. can flask return boolean values
  7. in how many types you can store data on client side
Sheet response MAD1

Practice your demo of the app thoroughly and narrate evrything you do... Also know your code you will be good...best wishes⭐

Questions remembered
  1. Level 2
  2. He was pretty chill like he were sleeping
  3. Asked me to show id card then proceed
  4. 1st demo of whole app...explain clearly what are you doing like all the things...he wont even utter a word and I was speaking all the time....then he told me to explain the code just the database, app, and one of the html files....not even a single question was asked.
Sheet response MAD1

Very chill proctor. He finished my viva in half an hour. Just explain your code in as detail as possible explaining different concepts and functions. No coding questions or changes were asked.

Questions remembered
  1. Can flask pass boolean values?
  2. why did you use bootstrap and not CSS?
  3. what are the ways you can store data?
  4. what happends if you render an empty table?
Ananjay MAD1

He is chill guy, dont care whats going on. Just yapp as much as you can.
Yapp random things (if over, can say same thing in diff words) just dont stop yourself

Questions remembered
  1. Everything was same as in asked by others (flask boolen, client storage....)
  2. No code change
Sheet response MAD1

Yapp as much as u can

Questions remembered
  1. Level3_24 feedback
  2. Level 2
  3. Same questions as the previous feedback
  4. Yapp till he stops you and ask questions
Sheet response MAD1

Explain all the codes line by line.

Questions remembered
  1. Level 2:-
  2. Show id card
  3. Provide checksum/download file live from the portal
  4. Give a demo
  5. Explain all the codes
  6. Can flask endpoints return boolean?
  7. What will happen when we render an empty table?
  8. (Ans:- header part of table will be there with blank body)
Sheet response MAD1

1. Follow this sheet for your particular proctor.
2. Proctor might not speak for the entire duration of your demonstration and code explanation. He will just instruct you.
3. Practice explaining your code and take as much time as you can for that during the viva.

Best of luck!👍

Questions remembered
  1. Questions:
  2. Can flask routes return the boolean values?
  3. What is git and VCS.
  4. How many ways can we store the data on the client side.
  5. What is cell padding and cell spacing. Overall flow:
  6. Download your project from the portal.
  7. Demonstrate the whole application and explain your code.
  8. Q&A
  9. No live code changes for me.
hierax MAD1

go through the previously asked questions of these proctors and its quite enough. you need to know everything about your code.

Questions remembered
  1. viva went on for 40 minutes
  2. Demo app
  3. Explain project
  4. Explain database schema
  5. what is flask?
  6. what is bootstrap? How many ways data can be stored? Explain http methods
Student MAD1

Very good proctor, I give the answer what he asked.

Questions remembered
  1. Show your ID
  2. Download the project and start demo
  3. Explain the whole code
  4. Can flask route return boolean data type?
  5. git and vcs
  6. rate your project
  7. How many ways data can be stored in user site?
Anish Phadke MAD1

he seemed very rude by his tone right from the beginning. After I initially explained my entire project in about 20 mins, I asked him if there was anything I missed out and he didn't even respond. So, I continued with the demonstration. After about 5 minutes, he asked to explain the models.py part (which I had already explained in detail). Overall, he didn't reciprocate much during the entire viva which made me feel like he was not even present or dissatisfied by my answers. At the end, surprisingly, he said that I explained very well and he left the meeting saying 'Thank you'. The entire viva lasted for 30 mins.

Questions remembered
  1. download your project from the portal and explain
  2. explain the database and models.py line by line
  3. elaborate the use of each and every library used by you
  4. demonstrate the core functionalities
Sheet response MAD1

He only wants you to explain each and every line of the code in an interesting manner. I was the one talking continuously for over 30 minutes in the entire viva. He was chill. Just know every line of your code, and speak as much as you can. All the best !

Questions remembered
  1. - Show ID
  2. - Either download from submission or run checksum
  3. - Asked to present my project
  4. - Asked to elaborate my entire code line by line
  5. - asked me if flask can return boolean type ? (i said it will throw error if sent directly, but we can wrap it in str() for example. He said Perfect !)
  6. - asked what's JSON ?
  7. - no code changes.
  8. - Ended in 33 mins
Sheet response MAD1

I just followed this response sheet, it worked good. Just know some basic Frontend Components to make changes and some basics of the web application.

Questions remembered
  1. Show the complete Web application?
  2. Explain the complete Code?
  3. Change the Back Ground color of the web application?
  4. How to send data from client to server?
  5. Can flask end point send the Boolean type?
Sheet response MAD1

He was somewhat rude and uninterested right from the moment he joined the meet. As if someone was forcing him to take the viva.

Cannot predict the behaviour of the examiner from this sheet. They behave differently with different students at different times. Maybe he was annoyed that I had hijacked his lunch hour.

But he was patient. Did not interrupt. Gave time to figure out things when I got stuck once or twice.

He wants detailed explanation. So explain everything about your app in complete details right from the start. Consume as much time as possible. Then he'll not bother to ask further questions.

Practice the code changes that he asks, from this sheet. He always asks to do the same styling changes.

Questions remembered
  1. LEVEL 2 VIVA
  2. Do checksum and paste in the meet chat
  3. Start the intro of the app
  4. Interrupted few minutes later and said 'after you complete the intro, explain all the code line by line. I'll be back from the restroom. Continue, I'll be listening.'
  5. I explained the whole app in detail in a single flow (including the models) and also explained the code (be it backend or frontend) along with the GUI for some important and complex features.
  6. When I had finally reached the API, he stopped me after few seconds and made me change background colour of the login page to red, and that of the input boxes to green.
  7. When I did it successfully, he said okay great that's it from my side and ended the meet immediately. Didn't bother to hear or respond to my 'Tysm Sir.'
  8. That's it. No questions asked about project or theory.
  9. I had consumed 40 minutes of his time with my explaination. So he didn't go for any questions ig.
  10. Lasted for 45 mins.
Sheet response MAD1

Honestly, great proctor! he motivated me for my last answer and kept telling me good after my responses. Just stay calm, be polite and explain your app in detail. If he thinks you know what you're doing, he won't ask you to code most likely

Questions remembered
  1. - asked me to do checksum
  2. - asked me to present my app first
  3. - can flask return a boolean value?
  4. - what did I use to style my app? When I answered Bootstrap, he asked what's better CSS or Bootstrap
  5. - what happens when you try to return a table that has no values
Daksh MAD1

Keep calm , try to look like you know all of it , in viva 2 they try very hard to break your flow or confidence.

Questions remembered
  1. they dont care about checksum in level 2 , he asked me to give complete into to the app , then explain the entire code , first asked me to change the background color of whole app , then color of a specific box , fir sabhi text ka color blue karwaya , fir input ke boxes tha color white se green karwaya , fir pucha ki style kaise kya ha mene , fir mene bola ki csslink kiya ha sabme , ha vaise badhia ha mera camera on nhi ho rha tha tab usne wait kiya , fir questions- can flask endpoint return Boolean values , how does browswer on client store data , some javascript term was also asked i dont remmeber exactly , mene to json file explain kardi
Sheet response MAD1

Prepare from viva sheet, know your code line to line, revise database concepts.

Questions remembered
  1. Git vs vcs?
  2. Show frontend validation and backend validation in code.
  3. Explain models.py in detail.
  4. Can flask routes return boolean values?
  5. In how many ways the data can be stored in client web browser?
  6. Change background colour of student dashboard to red.
  7. Change block color to yellow.
  8. Change text colour to dark blue.
  9. Change navbar position to bottom of page.
Astitva Agarwal MAD1

The procter was very chill and good very calm and polite
Explain your code in very deep way explain each and every line so that he would not have any questions left with him
You should know your code very well all the routes , models table frontend and backend
Be confident for your code and just review this sheet for questions and topics

Best of luck ! : )

Questions remembered
  1. Level 2
  2. First asked me to show id card
  3. Then i downloaded file infornt of so no need of checksum
  4. He said me give detailed and elaborative demo of you app
  5. Then i showed all the functionalities of my application
  6. He said me to explain all the backend and frontend of code including routes and all the models and terminologies
  7. I explained each and every line of code giving all the explanation of code all the terminologies like orm , why it is used each and evey thing i explained the code for like 50 mins
  8. Then he said me to change the background color and text
  9. The procter was very nice he told me that where i could make my app better
  10. He told me that i was very confident about my code because i explain everything with example and all the edge cases
  11. He asked me to leave i asked few questions regarding my application and communication skills and i left
Sheet response MAD1

Shared viva questions from response sheet: Show me your ID Card; Demonstrate Your Project; Change background color

Questions remembered
  1. Show me your ID Card
  2. Demonstrate Your Project
  3. Change background color
  4. which is more important backend or fronted validation
  5. show your frontend & backend part in your directory
Suraj MAD1

I proctor is nice. He said you can disconnect the call now after the question asked rate your project.
Just stay calm and be polite, try to answer the question in detail.

Questions remembered
  1. First asked to show Id card then asked for checksum and paste in the chat box
  2. Explain about your project everything
  3. Can Api return a Boolean value if yes then explain
  4. Explain the database model of your project in detail
  5. Explain frontend and backend validation
  6. Which is more crucial fronted or backend validation
  7. Rate your project. the viva went around 40 mins
Sheet response MAD1

Give a detailed explanation of the models and routes initially itself.

Questions remembered
  1. 1.change the background color,font color,button background color
  2. 2.Bring the navbar to the bottom of the page
  3. 3.Explain models in detail
  4. 4.Add a new row in the database and make it visible in the application
  5. 5.What are the different ways data can be stored
  6. 6.Project demo (first)
- MAD1

Shared viva questions from response sheet: Showcase your app; Explain your DB; Explain the components in your code

Questions remembered
  1. Showcase your app
  2. Explain your DB
  3. Explain the components in your code
  4. Does Flask return a boolean?
  5. Git version control
  6. Explain js frameworks - Change the color of navbar - Change the color of button - Change the color of font Rate your app. Proctor was very rude just be patient (ends within 45mins). Doesn't repeat himself when you don't hear him. He ends up imagining you don't know despite asking him to repeat himself.
Gurdeep MAD1

Just give a detailed explanation of project

Questions remembered
  1. ●Demonstrate the project in full detail so he will ask less questions
  2. ●Explain all models and users one in detail
  3. ●Vcs vs git
  4. ●Javascript frameworks
  5. ●Practice the changes the background color of home page
  6. ●Change the position of navigation bar from top to bottom
  7. ●I used bootstrap so he asked me about bootstrap
  8. ●Rate your project
Sheet response MAD1

Prepare theory well and be well versed with project. You should be able to manipulate css (background-color)

Questions remembered
  1. level3_24 experience
  2. i demonstrated the project in depth and he had joined the meeting 10 minutes before the time. i demonstrated my project in depth for like 35 minutes . he asked me to give description of data model.
  3. he asked me to make changes in css like change background-color of specific objects
  4. then he asked theory questions like name some js frameworks, what is ajax , can flask endpoint return boolean, how is data stored on client side, vcs vs git,
  5. i was only able to answer a few of them . and atlast he asked me to rate my project.
  6. overall good but i lacked in the theory part
Adarsh Pradhan MAD1

Shared viva questions from response sheet: Questions were same as mentioned by others.; Proctor was good.; He just didn't waste any time, and asked point to point questions.

Questions remembered
  1. Questions were same as mentioned by others.
  2. Proctor was good.
  3. He just didn't waste any time, and asked point to point questions.
  4. Was understanding when some genuine issues occurred.
  5. Nothing negative like what some other people have mentioned here.
  6. Just be ready to explain your code, and how to make changes when asked.
Urjaswi Banerjee MAD1

Shared viva questions from response sheet: This proctor was really good.Maybe he was in a good mood lol.He asked me about 30+ questions and all were from this sheet only and at last he praised my work and asked me to rate out of 5.i said 3.But he said have a little more confidence your work should be 4.5/5.Below are some of the questions he asked:; Webhooks; AJAX

Questions remembered
  1. This proctor was really good.Maybe he was in a good mood lol.He asked me about 30+ questions and all were from this sheet only and at last he praised my work and asked me to rate out of 5.i said 3.But he said have a little more confidence your work should be 4.5/5.Below are some of the questions he asked:
  2. Webhooks
  3. AJAX
  4. Router questions that I don’t remember
  5. Celery worker and beat difference
  6. What does celery worker do and how it works
  7. Cybersecurity questions like dos
  8. Priority mail,caching,orm,sql errors
  9. Asked me to code a bunch of things like changing background,colour of form,interchanging top and footer,change font size all of these will be easy if you are familiar with the html and style in your code(if you used vue cli)
  10. Lazy loading,spa,if app was responsive
  11. Bootstrap,css
  12. Frontend vs backed validation and which is more important.Overall all explain your code and project wellto proctor and be confident.and practice all questions from the sheet.Hope this helps.
N MAD1

know your project

Questions remembered
  1. changes to the template using CSS 2.making changes to navbar
  2. changes to color and more
  3. template inheritance
  4. authorisation and authentication 6 .javascript frameworks
  5. validation and more project demo with explaination
Sheet response MAD1

Shared viva questions from response sheet: What is AJAX in Javascript; What is Javascript framework; How will u input data into the client's web browser - cookies and session variables

Questions remembered
  1. What is AJAX in Javascript
  2. What is Javascript framework
  3. How will u input data into the client's web browser - cookies and session variables
  4. Cell spacing and cell padding
  5. Python HTTP vs Flask HTTP methods
  6. Diff between url_for and redirect_for
  7. If u have a bug in ur app and a user reports it to you, how will u help them?
  8. Add image as bg
  9. Add image + gradient as bg
  10. Explain USER model briefly and make some changes in it such that it is reflected
Iqbal MAD1

Shared viva questions from response sheet: Explain the code 2.change something in the code(bg colour card colour etc) 3.java script frame work 4.ORM and explain in the code 5.cookies and session 6.few questions from database (CRUD) 7.Git and Git version

Questions remembered
  1. Explain the code 2.change something in the code(bg colour card colour etc) 3.java script frame work 4.ORM and explain in the code 5.cookies and session 6.few questions from database (CRUD) 7.Git and Git version
Shriraang MAD1

Shared viva questions from response sheet: Introduce yourself; Give me Demo of your Application; Explain me ORM (no theoretical definitions)

Questions remembered
  1. Introduce yourself
  2. Give me Demo of your Application
  3. Explain me ORM (no theoretical definitions)
  4. Task 1- Change the background image and give a colour
  5. Task 2:
  6. Create a category hard drinks and make some alcohol available on your app
  7. Create a adhaar card upload functionality only when user tries to buy an alcohol, the age of the user should be verified (24 and above) then only product should be added to cart.
Riya MAD1

Shared viva questions from response sheet: If anyone use my app and got an error how would I help them 2.ORM; MVC 4.testing types 5.Database related questions ( I forgot) 6.template inheritance 7.change background color 8.move nav bar to the footer; Python HTTP and flash HTTP

Questions remembered
  1. If anyone use my app and got an error how would I help them 2.ORM
  2. MVC 4.testing types 5.Database related questions ( I forgot) 6.template inheritance 7.change background color 8.move nav bar to the footer
  3. Python HTTP and flash HTTP
  4. VCS and git 11.front end and back end validation, which is more important.
  5. Java script framework.
Shubham MAD1

Shared viva questions from response sheet: Show demo; Show models; Explain one query

Questions remembered
  1. Show demo
  2. Show models
  3. Explain one query
  4. What is orm?
  5. Difference between authentication and authorisation?
  6. What is git versions?
  7. Ask to do some changes in css
  8. What is self padding?
Sheet response MAD1

Shared viva questions from response sheet: Template inheritance; What are Javascript framework; ORM and its pros and cons

Questions remembered
  1. Template inheritance
  2. What are Javascript framework
  3. ORM and its pros and cons
  4. Libraries used in project
  5. What is Cell-spacing and Cell-padding
  6. What is version control system, another name for it?
  7. Frontend and backend validation. Which is more important? Show validation done in code
  8. Describe "User" model used and its column
  9. Explain each table in application and its purpose
  10. Diff between structured and unstructured database
  11. Diff types of testing used
  12. Diff between Python http and Flash http
  13. Types of frontend storage
  14. Can API return bool value?
  15. Why sql is so verbose?

Approved viva sets

Download all
  1. 1
    said that its my viva, no need to ask for permission. do what i think best and then he will ask if he wants to.
    Times asked 2
  2. 2
    so i presented the app, explained backend, frontend and database in the order he gave me
    Times asked 2
  3. 3
    took around 40 mins(~12 min setup as there was some problem)
    Times asked 2
  4. 4
    he then said he is satisfied with my work and said i have done a very good job and let me leave
    Times asked 1
Advice: GOAT proctor. very lucky if you get him.
  1. 1
    30 minutes demo with not a single interruption by him
    Times asked 2
  2. 2
    For coding part, he asked me to access a backend route using thunderclient.
    Times asked 1
  3. 3
    Change colours of Login Page.
    Times asked 2
  4. 4
    For theory questions same as told by others in the sheet. No Change.
    Times asked 2
Advice: You are lucky if you are getting him Just know your code and sheet questions.
  1. 1
    Demo: - Explain the complete demo. - Explain the backend. - Explain the model. - Take your time during the demo and explain everything. - Explain everything from the code to the implemented features.
    Times asked 1
  2. 2
    Backend Change: - Make a change in the backend that gets reflected in the frontend.
    Times asked 2
  3. 3
    Theory: - HTTP Status Codes. - Boolean question. - Empty database question. - 2–3 additional theory questions (mostly repeated).
    Times asked 2
Advice: - Take your time during the demo. He is patient and usually waits for you to explain, so make full use of that opportunity instead of rushing. - He generally joins the meeting a few minutes early, so make sure you join early as well. - He tends to ask many repeated questions, so if you're well-prepared with the basics and your own code, you'll be in a good position.
  1. 1
    He first told me to explain app working and the coding part. He will not interupt after our explaination only he unmute.
    Times asked 2
  2. 2
    Later questions asked similar in the sheet.
    Times asked 2
Advice: Be confident. Study the sheet exact similar questions will be asked. Know how code works.
  1. 1
    i guess i was lucky or may be unlucy that he was busy somewhere else and didnt even said that my mic is off while i was demonstarting then after demonstration i myself notice that i was muted then he told me to explain backend and frontend, i complete explaination of backend and went to him for permission of frontend but before i said anything he told very good viva is over now. that it
    Times asked 1
Advice: pata nahi bhai samjh hi nhi aya kya hua mne explain bhi utne ache se nhi kiya phir bhi kis basis pe kitne marks dengey kya pata, mko lgta h wo call pe honge ya toh phir unka laptop scilent hoga. nhi toh atlest demonstration k waqt batate na ki tum mute ho 😭😭😭😭😭
  1. 1
    The best proctor you can ever get. The questions were almost exactly the same as the sheet. Here's the flow:
    Times asked 2
  2. 2
    Complete demo of the application.
    Times asked 2
  3. 3
    Explain the complete codebase (Frontend + Backend). (Very Important) He lets you explain continuously without interrupting.
    Times asked 2
  4. 4
    What is a JSON response?
    Times asked 2
  5. 5
    What are the types of web storage? Briefly explain each.
    Times asked 1
Advice: He's extremely chill and supportive. Don't panic, just keep explaining your project confidently without waiting for him to interrupt. If your code explanation is clear and shows that you understand your project well, he may not even ask coding questions (that's what happened in my case). He appreciated and complimented me on my project demonstration, confident code explanation and theory answers.
  1. 1
    So...my project setup got slightly messed up and I took almost 20 minutes for setup alone...he waiting patiently and didn't utter a word.
    Times asked 2
  2. 2
    Then I took 20 minutes for demo and code explanation
    Times asked 1
  3. 3
    He asked me only question- what is 501 , 401 and 301.
    Times asked 2
  4. 4
    No coding at all. Just one simple question, he didn't interrupt at all while demonstrating
    Times asked 2
  5. 5
    He gave feedback that the project is so good and he liked the way I delivered.
    Times asked 2
Advice: Getting him is like getting a jackpot for level 2 Just practice demonstration and explain him the code clearly. If you take time explaining in detail about each things like why CORS , where jwt authentication is implemented , how and where CSV upload is getting stored where is it's code and everything..he listens patiently and won't say a thing
  1. 1
    Explain all HTTP status/error codes (e.g., 200, 201, 400, 401, 403, 404, 500, etc.).
    Times asked 2
  2. 2
    Explain the different types of storage.
    Times asked 2
  3. 3
    Explain the project code line by line.
    Times asked 2
  4. 4
    Explain the dependencies used in both the backend and frontend.
    Times asked 2
  5. 5
    What applications/tools were used in your project?
    Times asked 2
  6. 6
    Give a complete project demonstration.
    Times asked 2
Advice: Read your code thoroughly (line by line). Know all frontend/backend dependencies. Revise HTTP status codes, Git, VCS, and Flask. Be confident while explaining your project and demo. Join 5 minutes early with a stable internet connection. Mostly theory-based questions; no coding questions were asked.
  1. 1
    2.Explain the codebase backend and frontend(explain it line by line clearly he will ask to stop in middle and proceed with theory questions)
    Times asked 2
  2. 2
    3.types of storages in DB
    Times asked 1
  3. 3
    4.300,401,500 status codes
    Times asked 1
  4. 4
    5.when we query a empty table what will we get
    Times asked 2
  5. 5
    6.Not much code changes
    Times asked 2
Advice: He is very calm…Just explain the demo and the code very clearly and thoroughly….Refer to all questions for this proctor in this sheet…same questions only
  1. 1
    How many libraries have you used in your application?
    Times asked 2
Advice: Prepare to explain your code well, and learn the questions from the sheet.
  1. 1
    Everything from the sheet, he asked exact same questions, and also he asked 15+ theory questions all fromm sheet, coding he asked me to change color of background, change color of nav bar, texts, bring to centre etc. then ask me to change database through backend.
    Times asked 1
Advice: Just memorise the sheet, he is asking 50 theory question but all easy.
  1. 1
    Probably the most patient and most nice proctor i have ever had in all subjects. Minimal implementation that too UI and Colours only. But you have to have good knowledge on your project and know what code does what. That should be enough. if you know what functions are in your files, that is it. Nothing else. Just demo wlakthrough and 10 minutes of simple questions. All the best
    Times asked 1
Advice: Just be confident. Nice and sweet proctor
  1. 1
    Explain vcs and git.
    Times asked 1
  2. 2
    Thats it no coding ques asked, viva ended in 30 mins
    Times asked 2
Advice: She is very good and friendly, know your code in detail and be confident. All the best
  1. 1
    10pm-11pm
    Times asked 2
  2. 2
    i had joined 10 minutes early, but so had the proctor
    Times asked 2
  3. 3
    explained at the start that you are in full control, show all functionalites and explain codebase
    Times asked 2
  4. 4
    stopped midway explaining the codebase for asking theory questions
    Times asked 2
  5. 5
    git vs versional control system
    Times asked 1
  6. 6
    if you query an empty table, what do u get
    Times asked 2
  7. 7
    if an app crashes, what is the first question you will ask the user and admin to identify source of crash (answer is check logs)
    Times asked 2
  8. 8
    said that you have thorough knowledge but suggested to learn more about backend systems like logs for industry standards
    Times asked 2
  9. 9
    ended within 40 minutes
    Times asked 2
Advice: extremely nice proctor, repeats questions from sheet, but more importantly very helpful person.
  1. 1
    Everything which is mentioned earlier in the sheet.
    Times asked 2
  2. 2
    Just follow the sheet he will ask exactly the same questions.
    Times asked 2
Advice: Take a chill pill he is very chill proctor. My app got crashed db was not sending data … celery beat and worker stopped working still he said take time its server and network issues, so no problem. Then it started working and done. Very good proctor. My L2 was easier than L1 tbh.
  1. 1
    Explain code and project everything he don't ask anything in between be ready to keep explaining for 40 45 mins
    Times asked 2
  2. 2
    code 300,401,500
    Times asked 2
  3. 3
    git vs vcs
    Times asked 1
  4. 4
    other name for vcs
    Times asked 2
  5. 5
    nothing outside of sheet
    Times asked 1
Advice: he won't question in between so just know your code enough that you talk about it for 1 hr if need Very lucky if you got him
  1. 1
    Demonstraion of Project
    Times asked 2
  2. 2
    Explanation of Codes files
    Times asked 2
  3. 3
    Coding Questions: changing background color.
    Times asked 2
Advice: In previous responses, many have written that he is rude, but that's quite wrong. His talking tone might come across that way, but in actuality, he is very helpful and calm. The proctor won't interrupt you during your demonstration or explanation of code file.
  1. 1
    • ID verification.
    Times asked 2
  2. 2
    • Explained the viva process and gave permission to start.
    Times asked 2
  3. 3
    • Asked me to demonstrate all the functionalities of the application.
    Times asked 1
  4. 4
    • How many ways can data be stored in a web browser?
    Times asked 1
Advice: Very calm and supportive proctor. He first explains the complete viva process, so don't panic. Keep your project ready because he asks for a complete demo followed by a detailed code explanation. Explain your project confidently without waiting for interruptions, as he mostly listens. Know your backend code well, especially authentication, JWT, Redis, Celery, and your project flow. Revise common theory questions like browser storage, template inheritance, Flask endpoints, and authentication vs authorization. If you explain your project clearly and confidently, the viva goes very smoothly.
  1. 1
    he didn't ask me anything, idk why Asked me to start demonstrating the project - After 20 mins he asked me questions
    Times asked 1
  2. 2
    Diff between cell spacing and cell padding
    Times asked 2
  3. 3
    Status codes mean - 201, 301, 401, 501 That's it - i didn't even complete my presentation, he said you've done well and can leave the call. it only lasted for half an hr.
    Times asked 2
Advice: br confident and explain clearly
  1. 1
    The proctor told me to install all the files and go on with the presentation, so I kept explaining the application demo and the codebase for 20-25 mins after which proctor asked me 3 questions:
    Times asked 1
  2. 2
    Change the background color of homepage to red Then told I've got the answers to all my questions and I'm satisfied and I can leave
    Times asked 1
Advice: Chill proctor, keenly listen to whichever instruction is said and do the presentation. All the best 🙌
  1. 1
    Same as in Documents
    Times asked 2
Advice: His voice may feel like he's strict but he's very calm and supportive person. Just be honest.
  1. 1
    - All the code question are mentioned in the sheet only so practice it thoroughly, like changing colour, moving the nav bar position, etc
    Times asked 2
  2. 2
    - theory questions are also same as mentioned in the sheet like, mvc, celery
    Times asked 1
  3. 3
    - one question he asked but I wasn't able to answer was adding a new entry (like a student) to the db through python script or terminal... (It was mentioned in the sheet but still 😭🥲)
    Times asked 1
Advice: - he will not speak very much ... You just have to go on explaining. He asked for a full demo (explain everything you app can do, demo background jobs like mail if possible), then asked to fully explain the code (both front end and backend, just detailed overview) - he's very chill, even though I wasn't able to answer the final question, he told me my approach was correct and then told me I did a good job 🙃🫪.
  1. 1
    One important thing in this project to know ..answer me when you fetch a empty database what will it return?? That its he said : Very well , you explained every thing .. Have a good day
    Times asked 2
Advice: Just know ur code well..anf few theory questions previously told by people
  1. 1
    Joined 10 min Earlier
    Times asked 2
  2. 2
    Told To demonstrate the project and from that onwards move to your code base and explain each file ( which are model , views , controllers and how do they interact )
    Times asked 2
  3. 3
    same as this sheet nothing out of that
    Times asked 2
Advice: BE PROFESSIONAL ( THAT"S THE ONLY KEY)
  1. 1
    L2 viva
    Times asked 2
  2. 2
    Explain entire backend code
    Times asked 1
  3. 3
    What are types of storages in client side
    Times asked 2
  4. 4
    If a table has nothing what will it return
    Times asked 1
Advice: Nice proctor tum explain karte raho woh sunte rahenge
  1. 1
    Well, you're lucky if you get him. Basically you won the lottery of Proctors. ✨
    Times asked 2
  2. 2
    Join sharply at the hour mark. At the start, he'll explain how the viva will go: Demonstrate your app functionality completely, explain the code and he'll just sit back and listen to your podcast. 😎
    Times asked 2
  3. 3
    He's pretty chill in letting you setup things (no pressure) but try to be as quick as you can.
    Times asked 2
  4. 4
    Demonstrate every nook and corner of your app.
    Times asked 2
  5. 5
    Go through every part of your code, one by one.
    Times asked 2
  6. 6
    At one point, he'll stop you and ask some theory questions. Luckily, it's always repeated. All will already be in the sheet above.
    Times asked 2
  7. 7
    * Can Flask API respond with a boolean value?
    Times asked 1
  8. 8
    * What will happen when you run the app when a table has no values?
    Times asked 2
  9. 9
    Other questions are already in the sheet! 🥰
    Times asked 1
  10. 10
    Hope this helps somewhat! Prepare and celebrate! 🎉
    Times asked 2
Advice: He's very chill but you get plus points if you're fast and smooth. Just go with the flow and don't stumble over anything. OPPE Setup! (Very Important) Be ready to run all batch jobs (Celery worker, Celery beat, Both Backend and Frontend) as soon as possible. You can copy paste `venv` and `node_modules`. You'll do great! Good luck! 🤞🏼
  1. 1
    Demonstration of all functionalities
    Times asked 2
  2. 2
    Move on to code demonstration
    Times asked 2
  3. 3
    Explained all the API code line by line
    Times asked 1
  4. 4
    Showed the edge cases being handled.
    Times asked 2
  5. 5
    Asked Types of browser Storage
    Times asked 2
Advice: Know your code thoroughly. Refer the sheet. Be confident. Chill proctor.
  1. 1
    Level3_24(1 50 to 2 30)
    Times asked 2
  2. 2
    Id check
    Times asked 2
  3. 3
    I started with models explain all things
    Times asked 1
  4. 4
    Then admin routes
    Times asked 2
  5. 5
    Doctor routes
    Times asked 2
  6. 6
    When I was explaining patient routes he stoped and said you have done good job
    Times asked 2
  7. 7
    Then can flask return bool val
    Times asked 1
  8. 8
    Than I answer
    Times asked 2
  9. 9
    He said this will be last ques if you answer correctly
    Times asked 2
  10. 10
    If there table and there is nothing in it what it will show
    Times asked 2
  11. 11
    These 2 ques you can find in sheet
    Times asked 2
  12. 12
    Ans
    Times asked 2
  13. 13
    Feedback you have done good job you can leave
    Times asked 2
  14. 14
    No distrubance in viva
    Times asked 2
  15. 15
    He come told rule this is your viva you have todo things your own way than I have given all permission and explain all functionality elaborative way these are rules he will tell before viva
    Times asked 2
  16. 16
    Viva goes 40 mins
    Times asked 2
Advice: He was chill you can go with his sheet ques
  1. 1
    Demo and setup and code explanation
    Times asked 2
  2. 2
    What are ways you can store data in browser
    Times asked 1
  3. 3
    Can you return boolean data type in flask
    Times asked 1
  4. 4
    What have you learned in MAD2 in one line
    Times asked 2
  5. 5
    I had some issue is setting up so I got very late it took me 20 mins to setup and give demo so he stopped me in between and started asking theory questions , I gave all the answers so he was satisfied and didn't ask anything further
    Times asked 2
Advice: He is very chill and supporting very patient
  1. 1
    Put the nav bar to the middle of the page
    Times asked 2
  2. 2
    Write a code that in the database you see changes
    Times asked 2
  3. 3
    Will a route return boolean value? And what error ?
    Times asked 2
Advice: He was chill i messed up in the backend code part so he said he already checked the code i wrote so he told complete it as homework. Just revise the previous questions properly and playground with the css
  1. 1
    The working of application most of the time..
    Times asked 2
  2. 2
    Then some css changes.
    Times asked 2
  3. 3
    Change text color to blue.
    Times asked 1
  4. 4
    Theory questions like Git and version control, client side storage, another name for version control
    Times asked 1
Advice: He is chill. Nothing to worry. Did not ask much for a level2 viva
  1. 1
    All css questions asked from the sheet by same proctor
    Times asked 2
Advice: Prepare Sheet well and try to experiment with your code
  1. 1
    All the questions were same as mentioned in the previous responses, practice changing the alignment of navbar, buttons etc
    Times asked 1
Advice: He will ask for ur demo,and will ask to explain every part of ur code,there is no need of setting up the project infront of him,u can have the project running before viva starts and u can show it
  1. 1
    level2
    Times asked 4
  2. 2
    download project from portal
    Times asked 1
  3. 3
    take your time and run it
    Times asked 2
  4. 4
    first, he says to showcase your application in browser
    Times asked 1
  5. 5
    second, he says to go through code and explain it,
    Times asked 2
  6. 6
    after 40 minutes, he asks some 3-4 questions
    Times asked 2
  7. 7
    whats the another name of version control system
    Times asked 1
  8. 8
    thats it, these are the questions
    Times asked 2
Advice: Proctor is very chill and he gives the answer for those, which i didn't answer. and make sure go through this sheet. This sheet helps me a lot.
  1. 1
    same as previous, refer sheet
    Times asked 2
Advice: didn't talk much, straight demo,code explain, same questions, 2 css color change, easy win
  1. 1
    Change any one thing in ur code and it should reflect in the app (i changed the background colour and he was fine with it)
    Times asked 2
  2. 2
    Bring the navbar to the middle of the screen
    Times asked 1
  3. 3
    Change all the text in the screen to blue colour (i tried with internal css but it didn't work for me, then I changed it for individual elements and he didn't mind)
    Times asked 2
  4. 4
    If he executes a database what will be the return value (I was confused and daid it won't really return anything, he said it'll return null)
    Times asked 2
Advice: Like others in this sheet mentioned, if you are confident and explain your code in the beginning well, and are able to do the css changes that he asks, you should be good to go. Keep all the venvs running and everything ready, so you can get right into the viva. He was straight to the point. Overall nice proctor (since he didn't ask any major changes in code : D )
  1. 1
    Showing the id card
    Times asked 2
  2. 2
    Showcasing the app entirely, all the core functionalities that you can remember.
    Times asked 2
  3. 3
    Q3:what are the ways in which we can store data in the client side.
    Times asked 2
  4. 4
    Q4:If i get stuck into a problem and the app crashes, what will be your next step and how would you help me in that. (answered that it will depend on the type of error if its 404 not found or mismatch in the credentials or any other that can occur that I can debug from the Logs)
    Times asked 1
  5. 5
    And maybe I was lucky he didnt ask to make changes in the code just regular ones like changing order and frontend coloring of background or text.
    Times asked 2
  6. 6
    Rating your MAD2 Project out of 5
    Times asked 2
Advice: The proctor is very Professional, even if you dont know answer just say I'm not able to recall it right now, He is a very calm and chill but some might consider him rude by his tone but If you are fluent with your words, he will be nice to you. Just answer everything honestly.
  1. 1
    Checked id card
    Times asked 2
  2. 2
    Asked to explain the full code
    Times asked 1
  3. 3
    Nothing asked😅 (may be I'm lucky)
    Times asked 2
  4. 4
    And then proctor said - you've done a very good job 👍🏻.
    Times asked 2
  5. 5
    And it was completed
    Times asked 2
  6. 6
    Completed in 40 min
    Times asked 2
Advice: Very good proctor, very calm and just be confident in front of the proctor.
  1. 1
    3.webhook explain
    Times asked 2
  2. 2
    4.vue router explain
    Times asked 2
  3. 3
    No code change
    Times asked 2
  4. 4
    He was very chill proctor.
    Times asked 2
Advice: Explain demo and code with all the knowledge you have .
  1. 1
    *Level 2 Viva: Proctor @level3_24* (From 10:54 to 11:37) *Best Proctor ✅✅* Venv got corrupted twice, so I copied it from my Level 1 Viva folder. (20-25 minutes wasted) *Flow:* - App demo - Code walkthrough (backend: api, models, tasks, main; frontend: Vue files) - Database structure explanation *Questions:*
    Times asked 1
Advice: Follow the sheet
  1. 1
    MAD II level 2 Viva ID : - Level3 24
    Times asked 2
  2. 2
    Asked me to show the id card then download the code
    Times asked 1
  3. 3
    then told me to give the demonstration and he muted his mic
    Times asked 2
  4. 4
    Then i explained in detailed with referring to the code and the application it took around 40 mins
    Times asked 2
  5. 5
    ask 2- 3 Theoretical questions
    Times asked 2
  6. 6
    At last he asked me tell what i learnt from MAD I and MAD II
    Times asked 2
Advice: very chill proctor . Just explain the code in very detail manner this Procter is the best , he was the same in mad 1 level 2 for me and asked same questions there also if you got this Procter try to spend as much time as you can in explaining the code with all the terminologies , he would not be left with any questions he would just tell you to change the color of background and text and 2-3 basic questions . Best of Luck
  1. 1
    Explain frontend and backend validation using your code
    Times asked 1
Advice: This is probably the most chill examiner. Just read the questions provided in this sheet and you'll be fine
  1. 1
    demo of project and database
    Times asked 1
  2. 2
    Only 1 theory question
    Times asked 1
  3. 3
    fontend and backend validation
    Times asked 1
  4. 4
    Practical Question all in login page:
    Times asked 2
  5. 5
    change color of all text in purple.
    Times asked 1
  6. 6
    change color of box in black and text in white.
    Times asked 1
Advice: he is straight forward. Nice to me.
  1. 1
    Asked to give a detailed explanation of the app, database, and code
    Times asked 1
  2. 2
    Change the background color to white and the text color to purple
    Times asked 2
Advice: Validate the checksum and know your app and code very well.
  1. 1
    Flask give Boolean
    Times asked 1
  2. 2
    Frontend and backend component in your code and explain
    Times asked 2
Advice: talk with good behaviour
  1. 1
    Full demo of project
    Times asked 2
  2. 2
    Explain database i.e. models used
    Times asked 1
  3. 3
    Explain flow of a functionality programmatically(like how booking a service works in frontend and how it's processed in backend)
    Times asked 2
  4. 4
    Bring navbar to bottom
    Times asked 2
  5. 5
    Change bgcolor of body to red
    Times asked 2
  6. 6
    Change all font color to yellow
    Times asked 2
Advice: He is not rude as others said. He is professional. Just be confident with your project and while presenting it. Also be polite and don't show over confidence/attitude/any fear if you have. Just be cool, polite and confident. Explain your project thoroughly. Practice the css things which are mentioned, like changing colours,position. You will be fine. All the best!
  1. 1
    Firstly checksum validation and project demonstration.
    Times asked 2
  2. 2
    Change colors of buttons, background.
    Times asked 2
  3. 3
    What is Database with example.
    Times asked 2
  4. 4
    SMTP 8)Explain your databases
    Times asked 1
  5. 5
    Vue and Vue Routers.
    Times asked 1
  6. 6
    Rate your project and how can you improve.
    Times asked 2
Advice: For me he was a to the point person and no rudeness was there, Just follow the sheet and be patient.
  1. 1
    Showcase your app
    Times asked 2
  2. 2
    Explain your DB
    Times asked 1
  3. 3
    Explain the components in your code
    Times asked 2
  4. 4
    Does Flask return a boolean?
    Times asked 1
  1. 1
    Questions were same as mentioned by others.
    Times asked 2
  2. 2
    Proctor was good.
    Times asked 2
  3. 3
    He just didn't waste any time, and asked point to point questions.
    Times asked 1
  4. 4
    Was understanding when some genuine issues occurred.
    Times asked 2
  5. 5
    Nothing negative like what some other people have mentioned here.
    Times asked 2
  6. 6
    Just be ready to explain your code, and how to make changes when asked.
    Times asked 2
  1. 1
    level3_24 feedback:
    Times asked 2
  2. 2
    Change font to blue in home page
    Times asked 2
  3. 3
    How many ways we can store the data into client browser
    Times asked 2
  4. 4
    Js frameworks - react vue, angular
    Times asked 1
  5. 5
    Just be ready with css, he will ask 1-2 questions from css
    Times asked 2
Advice: Actually he was busy in doing something so 40 min I just explained everything, and 10 min he asked , he was in harry. Initially he was a bit rude but if you will be polite and professional, it would be good
  1. 1
    Router questions that I don’t remember
    Times asked 2
  2. 2
    Celery worker and beat difference
    Times asked 1
  3. 3
    What does celery worker do and how it works
    Times asked 1
  4. 4
    Cybersecurity questions like dos
    Times asked 2
  5. 5
    Priority mail,caching,orm,sql errors
    Times asked 1
  6. 6
    Asked me to code a bunch of things like changing background,colour of form,interchanging top and footer,change font size all of these will be easy if you are familiar with the html and style in your code(if you used vue cli)
    Times asked 1
  7. 7
    Lazy loading,spa,if app was responsive
    Times asked 2
  8. 8
    Bootstrap,css
    Times asked 2
  9. 9
    Frontend vs backed validation and which is more important.Overall all explain your code and project wellto proctor and be confident.and practice all questions from the sheet.Hope this helps.
    Times asked 1
  1. 1
    First he will ask for checksum (for me he asked me to paste in Gmeet chat)
    Times asked 1
  2. 2
    Give Demo of your app - he didnt ask me anything while i was doing demo i got an unexpected error but he didnt responded (so maybe he was not watching at all)
    Times asked 1
  3. 3
    webhooks, sever sent event
    Times asked 1
  4. 4
    Then he asked me to explain all models and every library used init
    Times asked 1
  1. 1
    Viva went well. Based on feedback from other students, I had already:
    Times asked 2
  2. 2
    Kept student id open for review
    Times asked 2
  3. 3
    Kept viva-workflow portal open for downloading my code Viva was for 35-40 minutes and covered the following:
    Times asked 2
  4. 4
    15 minutes for running the demo
    Times asked 2
  5. 5
    Show all the database tables and explain each one in detail
    Times asked 1
  6. 6
    Move the search bar to the bottom
    Times asked 2
  7. 7
    Server Side Event
    Times asked 1
  8. 8
    SMTP protocol
    Times asked 1
  9. 9
    What is a frontend? What is a backend?
    Times asked 1
  10. 10
    Rate your app
    Times asked 1
  11. 11
    All questions were from this sheet itself, so revise thoroughly before the viva and you will do well Overall the viva went well. Seems like the proctor wants people to be honest and straightforward with him. If one does that, he is flexible with everything. For e.g., I downloaded the MAD-1 project from the portal instead of MAD-2. The project didn't run and I was shitting bricks, but he was quite calm and gave me enough time to figure out that I have downloaded MAD-1 and not MAD-2. I corrected this error and he continued like nothing had happened.
    Times asked 2
  1. 1
    - remove bg image and add white colour instead
    Times asked 2
  2. 2
    - change button colour
    Times asked 2
  3. 3
    - make any change in db
    Times asked 2
  4. 4
    - explain entire back+front code
    Times asked 2
  5. 5
    - rate app and justify
    Times asked 2
  6. 6
    - buh-bye
    Times asked 2
  7. 7
    - good luck!
    Times asked 2
  1. 1
    Ask me to change the background Colour of Home page!
    Times asked 2
  2. 2
    Ask me to add background image in user dashboard!
    Times asked 2
  3. 3
    The Navbar you have on the top, put it in the footer section ( i am getting some error while doing this so he give me enough time to do, also ask me to take help from internet )
    Times asked 2
  1. 1
    template inheritance
    Times asked 4
  2. 2
    lifecycle hooks
    Times asked 2
  3. 3
    csrf & cors
    Times asked 2
  4. 4
    explain models in details
    Times asked 2
  5. 5
    Inline CSS vs external CSS
    Times asked 2
  6. 6
    few new question which were not in the sheet but im not able to recall it but related to vue only like router and token
    Times asked 1
  7. 7
    Why vue and JS is used.
    Times asked 1
  1. 1
    Project Demonstration for first 7-8 mins.
    Times asked 2
  2. 2
    Explain Javascript frameworks you have used(vue). (I also took the name of Node and React, just the names, no explanation).
    Times asked 1
  3. 3
    Make any changes to your database.
    Times asked 2
  4. 4
    Rate your application out of 5. Reason for rating your application x.
    Times asked 2
  5. 5
    Frontend and Back-end difference. Which is more important? 2-3 more questions that I cannot recall. But read the sheets properly for this proctor. All the questions were from there only. Also, don't get panicked seeing the above response about him as RUDE, he is cool. You'll enjoy answering questions. He might roast you sometimes (like why you don't know this, but that you'll enjoy).So no need to worry. Just prepare the questions from sheets. (This is the 8th Response for this proctor). Do check all the 7 previous responses and you are good to go!! Viva lasted for 35 mins. All the best 😇
    Times asked 2
  1. 1
    Packages used in project and why ?
    Times asked 2
  2. 2
    Backend Front end validation
    Times asked 2
  3. 3
    Rate App out of 5 and why ?
    Times asked 2
  4. 4
    asked to do :
    Times asked 2
  5. 5
    change db column and change app accordingly
    Times asked 2
  1. 1
    Demo of the app
    Times asked 8
  2. 2
    Javascript framework used
    Times asked 2
  3. 3
    Change background from white to red
    Times asked 2
  4. 4
    All Questions asked were from the sheet only
    Times asked 2
  1. 1
    Csrf and xss
    Times asked 2
  2. 2
    What is privacy and security
    Times asked 2
  3. 3
    Mutation and action
    Times asked 1
  4. 4
    Display background image
    Times asked 1
  5. 5
    For all questions if you can answer him with confidence then you are good to go else you may be in deep trouble.
    Times asked 2
  1. 1
    javascript frameworks used (repeated thrice ig 🥲)
    Times asked 2
  1. 1
    1 - introduce me to you app.
    Times asked 3
  2. 2
    2 - after about 25% of explanation, told some changes:
    Times asked 2
  3. 3
    change bg color of app
    Times asked 3
  4. 4
    push nav bar to bottom
    Times asked 3
  5. 5
    change appearance of page
    Times asked 3
  6. 6
    server sent event
    Times asked 3
  7. 7
    plub/sub vs point to point
    Times asked 3
  8. 8
    if you are trying to enter a string data to int field, what error will be thrown
    Times asked 3
  9. 9
    if you are trying to do a same in empty table will it throw error or not
    Times asked 3
  10. 10
    if throws, now what error
    Times asked 3
  11. 11
    Can you create tracker in JS(IDK what this Q means)
    Times asked 2
  12. 12
    What is a tracker?
    Times asked 1
  13. 13
    Change background to any random image
    Times asked 2
  14. 14
    then said, that's all you can exit and disconnected the call. Lasted 1/2 hr.
    Times asked 2
  15. 15
    The proctor was so rude....if you get this proctor just show your project ,practice changing backgrounds, and prepare the Question about.
    Times asked 2
  1. 1
    a lot of questions on database
    Times asked 2
  2. 2
    what type of error and such
    Times asked 2
  3. 3
    Very rude proctor overall
    Times asked 2
  1. 1
    full demo of your app
    Times asked 2
  2. 2
    certain changes in the code, like background colour, alignments
    Times asked 2
  3. 3
    authentication
    Times asked 3
  4. 4
    authorization
    Times asked 2
  5. 5
    libraries used in the app - here you will mostly cover:
    Times asked 2
  6. 6
    -jinja2
    Times asked 2
  7. 7
    -sqlalchemy
    Times asked 2
  8. 8
    api used in the app and specify where and explain
    Times asked 1
  1. 1
    starts with demo(take as much time as you can in demonstrating your 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.

  2. 2
    ask me to put navbar in the middle of the page
    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
    in how many types you can store data on client side
    Times asked 1
    Official solution

    SimpleClient storage: cookies, localStorage, sessionStorage, IndexedDB. Tokens often localStorage; sessions often cookie.

Advice: with ctrl+f find the proctor you been assigned see all the question he/she asked they mainly ask the same questions chill proctor. just take as much time as you can on demo or he will tell you to explain all the code part
  1. 1
    He was pretty chill like he were sleeping
    Times asked 1
    Official solution

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

Advice: Practice your demo of the app thoroughly and narrate evrything you do... Also know your code you will be good...best wishes⭐
  1. 1
    what happends if you render an empty table?
    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 chill proctor. He finished my viva in half an hour. Just explain your code in as detail as possible explaining different concepts and functions. No coding questions or changes were asked.
  1. 1
    Provide checksum/download file live from the portal
    Times asked 1
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  2. 2
    Explain all the codes
    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
    What will happen when we render an empty table?
    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: Explain all the codes line by line.
  1. 1
    Q&A
    Times asked 1
    Official solution

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

  2. 2
    No live code changes for me.
    Times asked 1
    Official solution

    Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:

    Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.

    Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.

    Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
    Live change maange to: related model → route → template, phir browser refresh karke dikhao.

    Example (generic create):
    obj = Model(name=request.form.get('name'))

    db.session.add(obj); db.session.commit()
    return redirect(url_for('list_view'))
Advice: 1. Follow this sheet for your particular proctor. 2. Proctor might not speak for the entire duration of your demonstration and code explanation. He will just instruct you. 3. Practice explaining your code and take as much time as you can for that during the viva. Best of luck!👍
  1. 1
    viva went on for 40 minutes
    Times asked 1
    Official solution

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

Advice: go through the previously asked questions of these proctors and its quite enough. you need to know everything about your code.
  1. 1
    Download the project and start demo
    Times asked 1
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  2. 2
    Explain the whole code
    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.

  3. 3
    How many ways data can be stored in user site?
    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.

Advice: Very good proctor, I give the answer what he asked.
  1. 1
    download your project from the portal and explain
    Times asked 1
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  2. 2
    elaborate the use of each and every library used by you
    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.

  3. 3
    demonstrate the core functionalities
    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 seemed very rude by his tone right from the beginning. After I initially explained my entire project in about 20 mins, I asked him if there was anything I missed out and he didn't even respond. So, I continued with the demonstration. After about 5 minutes, he asked to explain the models.py part (which I had already explained in detail). Overall, he didn't reciprocate much during the entire viva which made me feel like he was not even present or dissatisfied by my answers. At the end, surprisingly, he said that I explained very well and he left the meeting saying 'Thank you'. The entire viva lasted for 30 mins.
  1. 1
    - Either download from submission or run checksum
    Times asked 1
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  2. 2
    - Asked to present 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.

  3. 3
    - Asked to elaborate my entire code line by line
    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'
  4. 4
    - asked what's JSON ?
    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
    - Ended in 33 mins
    Times asked 1
    Official solution

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

Advice: He only wants you to explain each and every line of the code in an interesting manner. I was the one talking continuously for over 30 minutes in the entire viva. He was chill. Just know every line of your code, and speak as much as you can. All the best !
  1. 1
    Show the complete Web application?
    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.

  2. 2
    Change the Back Ground color of the web application?
    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.

Advice: I just followed this response sheet, it worked good. Just know some basic Frontend Components to make changes and some basics of the web application.
  1. 1
    Do checksum and paste in the meet chat
    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
    Start the intro of the app
    Times asked 1
    Official solution

    Simple30 second: naam, degree, project kya hai, stack (Flask + Jinja + SQLAlchemy + SQLite).

    Example

    Main Priya, IITM BS. MAD1 mein parking/ticket app — Flask backend, Jinja templates, session login, SQLite.
  3. 3
    I explained the whole app in detail in a single flow (including the models) and also explained the code (be it backend or frontend) along with the GUI for some important and complex features.
    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)
  4. 4
    When I did it successfully, he said okay great that's it from my side and ended the meet immediately. Didn't bother to hear or respond to my 'Tysm Sir.'
    Times asked 1
    Official solution

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

Advice: He was somewhat rude and uninterested right from the moment he joined the meet. As if someone was forcing him to take the viva. Cannot predict the behaviour of the examiner from this sheet. They behave differently with different students at different times. Maybe he was annoyed that I had hijacked his lunch hour. But he was patient. Did not interrupt. Gave time to figure out things when I got stuck once or twice. He wants detailed explanation. So explain everything about your app in complete details right from the start. Consume as much time as possible. Then he'll not bother to ask further questions. Practice the code changes that he asks, from this sheet. He always asks to do the same styling changes.
  1. 1
    - asked me to present my app first
    Times asked 1
    Official solution

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

  2. 2
    - what happens when you try to return a table that has no values
    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: Honestly, great proctor! he motivated me for my last answer and kept telling me good after my responses. Just stay calm, be polite and explain your app in detail. If he thinks you know what you're doing, he won't ask you to code most likely
  1. 1
    Change background colour of student dashboard to red.
    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.

  2. 2
    Change block color to yellow.
    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
    Change navbar position to bottom of page.
    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.

Advice: Prepare from viva sheet, know your code line to line, revise database concepts.
  1. 1
    Then i downloaded file infornt of so no need of checksum
    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
    He said me give detailed and elaborative demo of you app
    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.

  3. 3
    Then i showed all the functionalities of my application
    Times asked 1
    Official solution

    SimpleDemo script pehle se practice karo, 5-7 minute, saari roles.

    Suggested flow

    1) Register/login user 2) Admin login — CRUD 3) Approval/blacklist 4) Booking/apply 5) Search 6) Validation edge (slots 0, duplicate) 7) Logout
    Bolte-bolte dikhao: 'Yahan overbooking rokta hoon'. Code tab kholna jab poochhein.
    Crash ho to debug calmly: terminal error, typo, DB path.
    Mandatory features skip mat karna — examiner list tick karta hai.

  4. 4
    The procter was very nice he told me that where i could make my app better
    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 told me that i was very confident about my code because i explain everything with example and all the edge cases
    Times asked 1
    Official solution

    SimpleEdge cases: duplicate booking, full capacity, wrong role URL, empty search, invalid id.

    Example

    if Spot.query.get_or_404(spot_id).status != 'available':
        flash('Already taken')
        return redirect(...)
Advice: The procter was very chill and good very calm and polite Explain your code in very deep way explain each and every line so that he would not have any questions left with him You should know your code very well all the routes , models table frontend and backend Be confident for your code and just review this sheet for questions and topics Best of luck ! : )
  1. 1
    show your frontend & backend part in your directory
    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.

  1. 1
    Explain about your project everything
    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
    Which is more crucial fronted or backend validation
    Times asked 1
    Official solution

    SimpleValidation = input rules: required, email format, length, unique. Frontend UX, backend security — dono.

    Example

    if not email or '@' not in email:
        flash('Invalid email')
        return redirect(request.url)
    if User.query.filter_by(email=email).first():
        flash('Email taken')
Advice: I proctor is nice. He said you can disconnect the call now after the question asked rate your project. Just stay calm and be polite, try to answer the question in detail.
  1. 1
    5.What are the different ways data can be stored
    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.

  2. 2
    6.Project demo (first)
    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: Give a detailed explanation of the models and routes initially itself.
  1. 1
    ●Practice the changes the background color of home page
    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.

  2. 2
    ●Change the position of navigation bar from top to bottom
    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.

Advice: Just give a detailed explanation of project
  1. 1
    level3_24 experience
    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
    overall good but i lacked in the theory part
    Times asked 1
    Official solution

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

Advice: Prepare theory well and be well versed with project. You should be able to manipulate css (background-color)
  1. 1
    Proctor was good.
    Times asked 2
    Official solution

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

  2. 2
    Just be ready to explain your code, and how to make changes when asked.
    Times asked 2
    Official solution

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

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

  1. 1
    changes to the template using CSS 2.making changes to navbar
    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.

  2. 2
    changes to color and more
    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
    validation and more project demo with explaination
    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: know your project
  1. 1
    How will u input data into the client's web browser - cookies and session variables
    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
    If u have a bug in ur app and a user reports it to you, how will u help them?
    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.

  3. 3
    Add image as bg
    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.

  1. 1
    Give me Demo of your Application
    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.

  2. 2
    Task 2:
    Times asked 1
    Official solution

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

  3. 3
    Create a category hard drinks and make some alcohol available on your app
    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.

  4. 4
    Create a adhaar card upload functionality only when user tries to buy an alcohol, the age of the user should be verified (24 and above) then only product should be added to cart.
    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.

  1. 1
    Show models
    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)
  2. 2
    Explain one query
    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
    Ask to do some changes in css
    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.

  4. 4
    What is self 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.

  1. 1
    What is Cell-spacing and Cell-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.

  2. 2
    Describe "User" model used and its column
    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)
  3. 3
    Explain each table in application and its purpose
    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.

  4. 4
    Diff between structured and unstructured database
    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
    Diff types of testing used
    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
    Diff between Python http and Flash http
    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.

  1. 1
    said that its my viva, no need to ask for permission. do what i think best and then he will ask if he wants to.
    Times asked 2
    Official solution

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

  2. 2
    so i presented the app, explained backend, frontend and database in the order he gave me
    Times asked 2
    Official solution

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

  3. 3
    took around 40 mins(~12 min setup as there was some problem)
    Times asked 2
    Official solution

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

Advice: GOAT proctor. very lucky if you get him.
  1. 1
    30 minutes demo with not a single interruption by him
    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.

  2. 2
    Change colours of Login Page.
    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.

  3. 3
    For theory questions same as told by others in the sheet. No Change.
    Times asked 2
    Official solution

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

Advice: You are lucky if you are getting him Just know your code and sheet questions.
  1. 1
    Backend Change: - Make a change in the backend that gets reflected in the frontend.
    Times asked 2
    Official solution

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

  2. 2
    Theory: - HTTP Status Codes. - Boolean question. - Empty database question. - 2–3 additional theory questions (mostly repeated).
    Times asked 2
    Official solution

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

Advice: - Take your time during the demo. He is patient and usually waits for you to explain, so make full use of that opportunity instead of rushing. - He generally joins the meeting a few minutes early, so make sure you join early as well. - He tends to ask many repeated questions, so if you're well-prepared with the basics and your own code, you'll be in a good position.
  1. 1
    He first told me to explain app working and the coding part. He will not interupt after our explaination only he unmute.
    Times asked 2
    Official solution

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

  2. 2
    Later questions asked similar in the sheet.
    Times asked 2
    Official solution

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

Advice: Be confident. Study the sheet exact similar questions will be asked. Know how code works.
  1. 1
    The best proctor you can ever get. The questions were almost exactly the same as the sheet. Here's the flow:
    Times asked 2
    Official solution

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

  2. 2
    Complete demo of the application.
    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
    Explain the complete codebase (Frontend + Backend). (Very Important) He lets you explain continuously without interrupting.
    Times asked 2
    Official solution

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

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

  4. 4
    What is a JSON response?
    Times asked 2
    Official solution

    SimpleJSON response = jsonify(...) se application/json. APIs SPA ko data deti hain, HTML nahi.

    Example

    return jsonify({'id': 1, 'name': 'Lot A'}), 200
Advice: He's extremely chill and supportive. Don't panic, just keep explaining your project confidently without waiting for him to interrupt. If your code explanation is clear and shows that you understand your project well, he may not even ask coding questions (that's what happened in my case). He appreciated and complimented me on my project demonstration, confident code explanation and theory answers.
  1. 1
    So...my project setup got slightly messed up and I took almost 20 minutes for setup alone...he waiting patiently and didn't utter a word.
    Times asked 2
    Official solution

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

    Viva tip1 minute elevator pitch ready rakho, phir demo.

  2. 2
    He asked me only question- what is 501 , 401 and 301.
    Times asked 2
    Official solution

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

  3. 3
    No coding at all. Just one simple question, he didn't interrupt at all while demonstrating
    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.

  4. 4
    He gave feedback that the project is so good and he liked the way I delivered.
    Times asked 2
    Official solution

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

Advice: Getting him is like getting a jackpot for level 2 Just practice demonstration and explain him the code clearly. If you take time explaining in detail about each things like why CORS , where jwt authentication is implemented , how and where CSV upload is getting stored where is it's code and everything..he listens patiently and won't say a thing
  1. 1
    Explain all HTTP status/error codes (e.g., 200, 201, 400, 401, 403, 404, 500, etc.).
    Times asked 2
    Official solution

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

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

  2. 2
    Explain the different types of storage.
    Times asked 2
    Official solution

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

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

  3. 3
    Explain the project code line by line.
    Times asked 2
    Official solution

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

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

  4. 4
    Explain the dependencies used in both the backend and frontend.
    Times asked 2
    Official solution

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

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

  5. 5
    What applications/tools were used in your project?
    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.

  6. 6
    Give a complete project demonstration.
    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.

Advice: Read your code thoroughly (line by line). Know all frontend/backend dependencies. Revise HTTP status codes, Git, VCS, and Flask. Be confident while explaining your project and demo. Join 5 minutes early with a stable internet connection. Mostly theory-based questions; no coding questions were asked.
  1. 1
    2.Explain the codebase backend and frontend(explain it line by line clearly he will ask to stop in middle and proceed with theory questions)
    Times asked 2
    Official solution

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

  2. 2
    5.when we query a empty table what will we get
    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.

  3. 3
    6.Not much code changes
    Times asked 2
    Official solution

    Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:

    Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.

    Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.

    Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
    Live change maange to: related model → route → template, phir browser refresh karke dikhao.

    Example (generic create):
    obj = Model(name=request.form.get('name'))

    db.session.add(obj); db.session.commit()
    return redirect(url_for('list_view'))
Advice: He is very calm…Just explain the demo and the code very clearly and thoroughly….Refer to all questions for this proctor in this sheet…same questions only
  1. 1
    How many libraries have you used in your application?
    Times asked 2
    Official solution

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

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

Advice: Prepare to explain your code well, and learn the questions from the sheet.
  1. 1
    Thats it no coding ques asked, viva ended in 30 mins
    Times asked 2
    Official solution

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

Advice: She is very good and friendly, know your code in detail and be confident. All the best
  1. 1
    10pm-11pm
    Times asked 2
    Official solution

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

  2. 2
    i had joined 10 minutes early, but so had the proctor
    Times asked 2
    Official solution

    SimpleJOIN related tables ek result mein. Inner = match only; left = left side sab + match.

    Example

    db.session.query(Booking, User).join(User).filter(User.id == uid).all()
  3. 3
    explained at the start that you are in full control, show all functionalites and explain codebase
    Times asked 2
    Official solution

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

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

  4. 4
    stopped midway explaining the codebase for asking theory questions
    Times asked 2
    Official solution

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

  5. 5
    if you query an empty table, what do u get
    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.

  6. 6
    if an app crashes, what is the first question you will ask the user and admin to identify source of crash (answer is check logs)
    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.

  7. 7
    said that you have thorough knowledge but suggested to learn more about backend systems like logs for industry standards
    Times asked 2
    Official solution

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

  8. 8
    ended within 40 minutes
    Times asked 2
    Official solution

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

Advice: extremely nice proctor, repeats questions from sheet, but more importantly very helpful person.
  1. 1
    Everything which is mentioned earlier in the sheet.
    Times asked 2
    Official solution

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

  2. 2
    Just follow the sheet he will ask exactly the same questions.
    Times asked 2
    Official solution

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

Advice: Take a chill pill he is very chill proctor. My app got crashed db was not sending data … celery beat and worker stopped working still he said take time its server and network issues, so no problem. Then it started working and done. Very good proctor. My L2 was easier than L1 tbh.
  1. 1
    Explain code and project everything he don't ask anything in between be ready to keep explaining for 40 45 mins
    Times asked 2
    Official solution

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

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

  2. 2
    code 300,401,500
    Times asked 2
    Official solution

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

  3. 3
    other name for vcs
    Times asked 2
    Official solution

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

Advice: he won't question in between so just know your code enough that you talk about it for 1 hr if need Very lucky if you got him
  1. 1
    Demonstraion of Project
    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.

  2. 2
    Explanation of Codes files
    Times asked 2
    Official solution

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

  3. 3
    Coding Questions: changing background color.
    Times asked 2
    Official solution

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

Advice: In previous responses, many have written that he is rude, but that's quite wrong. His talking tone might come across that way, but in actuality, he is very helpful and calm. The proctor won't interrupt you during your demonstration or explanation of code file.
  1. 1
    • ID verification.
    Times asked 2
    Official solution

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

    Pehle se ID haath mein rakho. Glare mat aane do. Examiner screenshot/verify karta hai. Iske baad GitHub + project run.

  2. 2
    • Explained the viva process and gave permission to start.
    Times asked 2
    Official solution

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

  3. 3
    • What is template inheritance?
    Times asked 1
    Official solution

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

    Example

    {# base.html #}
    {% block content %}{% endblock %}
    
    {# home.html #}
    {% extends 'base.html' %}
    {% block content %}
      <h1>Home</h1>
    {% endblock %}
Advice: Very calm and supportive proctor. He first explains the complete viva process, so don't panic. Keep your project ready because he asks for a complete demo followed by a detailed code explanation. Explain your project confidently without waiting for interruptions, as he mostly listens. Know your backend code well, especially authentication, JWT, Redis, Celery, and your project flow. Revise common theory questions like browser storage, template inheritance, Flask endpoints, and authentication vs authorization. If you explain your project clearly and confidently, the viva goes very smoothly.
  1. 1
    Diff between cell spacing and cell padding
    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
    Status codes mean - 201, 301, 401, 501 That's it - i didn't even complete my presentation, he said you've done well and can leave the call. it only lasted for half an hr.
    Times asked 2
    Official solution

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

Advice: br confident and explain clearly
  1. 1
    Same as in Documents
    Times asked 2
    Official solution

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

Advice: His voice may feel like he's strict but he's very calm and supportive person. Just be honest.
  1. 1
    - All the code question are mentioned in the sheet only so practice it thoroughly, like changing colour, moving the nav bar position, etc
    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: - he will not speak very much ... You just have to go on explaining. He asked for a full demo (explain everything you app can do, demo background jobs like mail if possible), then asked to fully explain the code (both front end and backend, just detailed overview) - he's very chill, even though I wasn't able to answer the final question, he told me my approach was correct and then told me I did a good job 🙃🫪.
  1. 1
    One important thing in this project to know ..answer me when you fetch a empty database what will it return?? That its he said : Very well , you explained every thing .. Have a good day
    Times asked 2
    Official solution

    SimpleEmpty table pe .all() → [] empty list. .first() → None. Error nahi (unless get_or_404).

Advice: Just know ur code well..anf few theory questions previously told by people
  1. 1
    Joined 10 min Earlier
    Times asked 2
    Official solution

    SimpleJOIN related tables ek result mein. Inner = match only; left = left side sab + match.

    Example

    db.session.query(Booking, User).join(User).filter(User.id == uid).all()
  2. 2
    Told To demonstrate the project and from that onwards move to your code base and explain each file ( which are model , views , controllers and how do they interact )
    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
    same as this sheet nothing out of that
    Times asked 2
    Official solution

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

Advice: BE PROFESSIONAL ( THAT"S THE ONLY KEY)
  1. 1
    L2 viva
    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
    What are types of storages in client side
    Times asked 2
    Official solution

    SimpleClient storage: cookies, localStorage, sessionStorage, IndexedDB. Tokens often localStorage; sessions often cookie.

Advice: Nice proctor tum explain karte raho woh sunte rahenge
  1. 1
    Well, you're lucky if you get him. Basically you won the lottery of Proctors. ✨
    Times asked 2
    Official solution

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

  2. 2
    Join sharply at the hour mark. At the start, he'll explain how the viva will go: Demonstrate your app functionality completely, explain the code and he'll just sit back and listen to your podcast. 😎
    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
    He's pretty chill in letting you setup things (no pressure) but try to be as quick as you can.
    Times asked 2
    Official solution

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

  4. 4
    Demonstrate every nook and corner of your app.
    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.

  5. 5
    Go through every part of your code, one by one.
    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.

  6. 6
    At one point, he'll stop you and ask some theory questions. Luckily, it's always repeated. All will already be in the sheet above.
    Times asked 2
    Official solution

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

  7. 7
    * What will happen when you run the app when a table has no values?
    Times asked 2
    Official solution

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

    Example

    python -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    flask run
  8. 8
    Hope this helps somewhat! Prepare and celebrate! 🎉
    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.

Advice: He's very chill but you get plus points if you're fast and smooth. Just go with the flow and don't stumble over anything. OPPE Setup! (Very Important) Be ready to run all batch jobs (Celery worker, Celery beat, Both Backend and Frontend) as soon as possible. You can copy paste `venv` and `node_modules`. You'll do great! Good luck! 🤞🏼
  1. 1
    Demonstration of all functionalities
    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.

  2. 2
    Move on to code demonstration
    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
    Showed the edge cases being handled.
    Times asked 2
    Official solution

    SimpleEdge cases: duplicate booking, full capacity, wrong role URL, empty search, invalid id.

    Example

    if Spot.query.get_or_404(spot_id).status != 'available':
        flash('Already taken')
        return redirect(...)
  4. 4
    Asked Types of browser Storage
    Times asked 2
    Official solution

    SimplelocalStorage sessionStorage cookies IndexedDB memory Cache API. Types browser storage. Client-side storage.

    What types available. Other than LS.

    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: We used LS for JWT. Cookies empty.

Advice: Know your code thoroughly. Refer the sheet. Be confident. Chill proctor.
  1. 1
    Level 2 viva first told me dont be panic then asked to show the id and told me this is your proj show tell me all about it i demo the app and then asked about the backend explain all the code then asked if the data is distributed in db how to take it thats all
    Times asked 1
    Official solution

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

Advice: He is straight to point ,nice proctor ,just do what he asked,be confident thats all
  1. 1
    Level3_24(1 50 to 2 30)
    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
    Id check
    Times asked 2
    Official solution

    SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.

    Example

    Settings → Collaborators
    Commits: regular messages, last-day dump nahi.

    Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.

  3. 3
    Then admin routes
    Times asked 2
    Official solution

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

  4. 4
    Doctor routes
    Times asked 2
    Official solution

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

  5. 5
    When I was explaining patient routes he stoped and said you have done good job
    Times asked 2
    Official solution

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

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

  6. 6
    Than I answer
    Times asked 2
    Official solution

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

  7. 7
    He said this will be last ques if you answer correctly
    Times asked 2
    Official solution

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

  8. 8
    If there table and there is nothing in it what it will show
    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
    These 2 ques you can find in sheet
    Times asked 2
    Official solution

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

  10. 10
    Ans
    Times asked 2
    Official solution

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

  11. 11
    Feedback you have done good job you can leave
    Times asked 2
    Official solution

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

  12. 12
    No distrubance in viva
    Times asked 2
    Official solution

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

  13. 13
    He come told rule this is your viva you have todo things your own way than I have given all permission and explain all functionality elaborative way these are rules he will tell before viva
    Times asked 2
    Official solution

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

  14. 14
    Viva goes 40 mins
    Times asked 2
    Official solution

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

Advice: He was chill you can go with his sheet ques
  1. 1
    Demo and setup and code explanation
    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.

  2. 2
    What will you rate your app
    Times asked 1
    Official solution

    SimpleApp rate 1–5 honestly + reason: completeness, UI, edge cases. Weak points improve plan ke saath bolo.

  3. 3
    What have you learned in MAD2 in one line
    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.

  4. 4
    I had some issue is setting up so I got very late it took me 20 mins to setup and give demo so he stopped me in between and started asking theory questions , I gave all the answers so he was satisfied and didn't ask anything further
    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.

Advice: He is very chill and supporting very patient
  1. 1
    Put the nav bar to the middle of the page
    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
    Write a code that in the database you see changes
    Times asked 2
    Official solution

    SimpleNaya Flask route: URL, method, auth if needed, query, jsonify. Postman pehle.

    Examiner number/filter change easy rakhna. CORS. Frontend tabhi jab bole.

    Status codes sahi. Password JSON mein nahi.

    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

    @app.route('/api/sum', methods=['POST'])
    def sum_num():
        d = request.get_json()
        return jsonify(result=d['a'] + d['b'])

    Project example: resources.py new Resource. Test Thunder. Optional Vue fetch.

  3. 3
    What are the different ways to store data in the browser
    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.

  4. 4
    Will a route return boolean value? And what error ?
    Times asked 2
    Official solution

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

    Example

    @app.route('/ping')
    def ping():
        return jsonify(ok=True)
    
    @app.route('/even/<int:n>')
    def even(n):
        return 'even' if n % 2 == 0 else 'odd'
Advice: He was chill i messed up in the backend code part so he said he already checked the code i wrote so he told complete it as homework. Just revise the previous questions properly and playground with the css
  1. 1
    The working of application most of the time..
    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.

  2. 2
    Then some css changes.
    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: He is chill. Nothing to worry. Did not ask much for a level2 viva
  1. 1
    level2
    Times asked 4
    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
    take your time and run it
    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.

  3. 3
    second, he says to go through code and explain it,
    Times asked 2
    Official solution

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

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

  4. 4
    after 40 minutes, he asks some 3-4 questions
    Times asked 2
    Official solution

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

  5. 5
    thats it, these are the questions
    Times asked 2
    Official solution

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

Advice: Proctor is very chill and he gives the answer for those, which i didn't answer. and make sure go through this sheet. This sheet helps me a lot.
  1. 1
    same as previous, refer sheet
    Times asked 2
    Official solution

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

Advice: didn't talk much, straight demo,code explain, same questions, 2 css color change, easy win
  1. 1
    Change any one thing in ur code and it should reflect in the app (i changed the background colour and he was fine with it)
    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
    Change all the text in the screen to blue colour (i tried with internal css but it didn't work for me, then I changed it for individual elements and he didn't mind)
    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.

  3. 3
    If he executes a database what will be the return value (I was confused and daid it won't really return anything, he said it'll return null)
    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.

Advice: Like others in this sheet mentioned, if you are confident and explain your code in the beginning well, and are able to do the css changes that he asks, you should be good to go. Keep all the venvs running and everything ready, so you can get right into the viva. He was straight to the point. Overall nice proctor (since he didn't ask any major changes in code : D )
  1. 1
    Showing the 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
    Showcasing the app entirely, all the core functionalities that you can remember.
    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
    Q3:what are the ways in which we can store data in the client side.
    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.

  4. 4
    And maybe I was lucky he didnt ask to make changes in the code just regular ones like changing order and frontend coloring of background or text.
    Times asked 2
    Official solution

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

  5. 5
    Rating your MAD2 Project out of 5
    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.

Advice: The proctor is very Professional, even if you dont know answer just say I'm not able to recall it right now, He is a very calm and chill but some might consider him rude by his tone but If you are fluent with your words, he will be nice to you. Just answer everything honestly.
  1. 1
    Checked 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
    Nothing asked😅 (may be I'm lucky)
    Times asked 2
    Official solution

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

  3. 3
    And then proctor said - you've done a very good job 👍🏻.
    Times asked 2
    Official solution

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

  4. 4
    And it was completed
    Times asked 2
    Official solution

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

  5. 5
    Completed in 40 min
    Times asked 2
    Official solution

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

Advice: Very good proctor, very calm and just be confident in front of the proctor.
  1. 1
    Level 2
    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:
    Times asked 1
    Official solution

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

  3. 3
    1.demo
    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.

  4. 4
    2.explanation of code
    Times asked 1
    Official solution

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

  5. 5
    3.webhook explain
    Times asked 2
    Official solution

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

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

  6. 6
    4.vue router explain
    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.

  7. 7
    No code change
    Times asked 2
    Official solution

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

  8. 8
    He was very chill proctor.
    Times asked 2
    Official solution

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

Advice: Explain demo and code with all the knowledge you have .
  1. 1
    Learnings & challenges from MAD1 and MAD2
    Times asked 1
    Official solution

    SimpleChallenges honestly: relationships/cascade, session bugs, overbooking race, CSS layout, deploy. Seekha kya — woh bold karo.

Advice: Follow the sheet
  1. 1
    MAD II level 2 Viva ID : - Level3 24
    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
    then told me to give the demonstration and he muted his mic
    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
    Then i explained in detailed with referring to the code and the application it took around 40 mins
    Times asked 2
    Official solution

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

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

  4. 4
    ask 2- 3 Theoretical 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
    - what is Frameworks
    Times asked 1
    Official solution

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

  6. 6
    At last he asked me tell what i learnt from MAD I and MAD II
    Times asked 2
    Official solution

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

Advice: very chill proctor . Just explain the code in very detail manner this Procter is the best , he was the same in mad 1 level 2 for me and asked same questions there also if you got this Procter try to spend as much time as you can in explaining the code with all the terminologies , he would not be left with any questions he would just tell you to change the color of background and text and 2-3 basic questions . Best of Luck
  1. 1
    Practical Question all in login page:
    Times asked 2
    Official solution

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

Advice: he is straight forward. Nice to me.
  1. 1
    Change the background color to white and the text color to purple
    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
    Move the header to the center of the page
    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.

Advice: Validate the checksum and know your app and code very well.
  1. 1
    Frontend and backend component in your code and explain
    Times asked 2
    Official solution

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

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

Advice: talk with good behaviour
  1. 1
    Full demo of project
    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.

  2. 2
    Explain flow of a functionality programmatically(like how booking a service works in frontend and how it's processed in backend)
    Times asked 2
    Official solution

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

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

  3. 3
    Bring navbar to bottom
    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.

  4. 4
    Change bgcolor of body to red
    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.

  5. 5
    Change all font color to yellow
    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: He is not rude as others said. He is professional. Just be confident with your project and while presenting it. Also be polite and don't show over confidence/attitude/any fear if you have. Just be cool, polite and confident. Explain your project thoroughly. Practice the css things which are mentioned, like changing colours,position. You will be fine. All the best!
  1. 1
    Firstly checksum validation and project demonstration.
    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.

  2. 2
    Change colors of buttons, background.
    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.

  3. 3
    Difference between frontend and backend.
    Times asked 1
    Official solution

    SimpleFrontend user jo dekhta/click karta hai, Backend server logic + database.

    Frontend: HTML, CSS, Bootstrap, Jinja templates, thoda JS. Browser pe chalta hai.
    Backend: Flask routes, SQLAlchemy, session, validation. Python server pe.
    Data flow: form POST → Flask request.form → DB save → render_template/redirect → HTML dikha.
    MAD1 typical stack: Flask + Jinja + SQLAlchemy + SQLite + Bootstrap.

  4. 4
    What is Database with example.
    Times asked 2
    Official solution

    SimpleDatabase = organized data store. Example: SQLite file app.db with users, lots, bookings tables.

  5. 5
    SSE
    Times asked 1
    Official solution

    SimpleServer-Sent Events: server → browser one-way stream (text/event-stream). WebSocket full duplex hai; SSE simpler notifications ke liye.

    Example

    # client
    const es = new EventSource('/stream');
    es.onmessage = (e) => console.log(e.data);
  6. 6
    Rate your project and how can you improve.
    Times asked 2
    Official solution

    SimpleImprove ideas: caching, better validation, tests, pagination, email reminders, accessibility, mobile UI, logging.

    Viva tip1-2 concrete features bolo jo time milne pe add karte — vague 'AI' mat.

Advice: For me he was a to the point person and no rudeness was there, Just follow the sheet and be patient.
  1. 1
    Showcase your app
    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.

  2. 2
    Explain the components in your code
    Times asked 2
    Official solution

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

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

  1. 1
    Questions were same as mentioned by others.
    Times asked 2
    Official solution

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

  2. 2
    Was understanding when some genuine issues occurred.
    Times asked 2
    Official solution

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

  3. 3
    Nothing negative like what some other people have mentioned here.
    Times asked 2
    Official solution

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

  1. 1
    level3_24 feedback:
    Times asked 2
    Official solution

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

  2. 2
    Change font to blue in home page
    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.

  3. 3
    How many ways we can store the data into client browser
    Times asked 2
    Official solution

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

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

  4. 4
    Just be ready with css, he will ask 1-2 questions from css
    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.

Advice: Actually he was busy in doing something so 40 min I just explained everything, and 10 min he asked , he was in harry. Initially he was a bit rude but if you will be polite and professional, it would be good
  1. 1
    Router questions that I don’t remember
    Times asked 2
    Official solution

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

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

  2. 2
    Cybersecurity questions like dos
    Times asked 2
    Official solution

    SimpleDoS = Denial of Service — server ko overwhelm karke down. Rate limit, auth, validation, timeouts se mitigate.

  3. 3
    Lazy loading,spa,if app was responsive
    Times asked 2
    Official solution

    Simplelazy loading: related objects kab load hon. lazy=True default (access pe query). joined/eager pehle se join.

  4. 4
    Bootstrap,css
    Times asked 2
    Official solution

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

  1. 1
    Rate your app on the basis of how your viva went and justify it. some more theories ques which all were from this sheet only (it seems like he also have a sheet from which he is asking questions 🤡) As some others said above he is very rude; and HE IS. He tried to roast me twice during the viva lol. As the viva started he said " show me your ID card" in a very rude manner. He was impolite from the start. The trick is to pretend like you are very innocent and a good listener. Let him complete his entire question and wait for 1-2 sec and then respond also have a very serious face all the time like you are thinking about how to answer or solve his question I did this and in the end, he praised me for my good behaviour 🤡.
    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.

  1. 1
    Viva went well. Based on feedback from other students, I had already:
    Times asked 2
    Official solution

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

  2. 2
    Kept student id open for review
    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.

  3. 3
    Kept viva-workflow portal open for downloading my code Viva was for 35-40 minutes and covered the following:
    Times asked 2
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  4. 4
    15 minutes for running the demo
    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.

  5. 5
    Move the search bar to the bottom
    Times asked 2
    Official solution

    SimpleSearch: form/query param → ilike filter → results template.

    Example

    q = request.args.get('q', '').strip()
    lots = Lot.query.filter(Lot.name.ilike(f'%{q}%')).all()
  6. 6
    What is caching?
    Times asked 23
    Official solution

    SimpleCache baar-baar DB/compute na karne ke liye result yaad rakhta hai.

    Browser cache, Flask cache, Redis. Example: dashboard counts 30 sec Redis mein.
    Cookies alag (client data). HTTP 304 Not Modified bhi cache related.
    MAD1 mein optional. Scale poochhe to pehle indexes + cache, phir extra servers.

  7. 7
    What is AJAX?
    Times asked 4
    Official solution

    SimpleAJAX page reload ke bina server se data laata hai. Aaj kal fetch() + Promises.

    fetch('/api/users').then(r => r.json()).then(data => { ... })
    Promise: future value (pending/fulfilled/rejected). fetch Promise return karta hai.
    SPA (Vue): ek HTML, baaki routes JS se, partial update. MAD1 generally full page render (Jinja) — submit pe poora refresh.
    async/await Promise ka clean syntax.

  8. 8
    All questions were from this sheet itself, so revise thoroughly before the viva and you will do well Overall the viva went well. Seems like the proctor wants people to be honest and straightforward with him. If one does that, he is flexible with everything. For e.g., I downloaded the MAD-1 project from the portal instead of MAD-2. The project didn't run and I was shitting bricks, but he was quite calm and gave me enough time to figure out that I have downloaded MAD-1 and not MAD-2. I corrected this error and he continued like nothing had happened.
    Times asked 2
    Official solution

    SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.

    Suggested flow1) Portal ZIP download
    2) Extract
    3) venv + pip install -r requirements.txt
    4) flask run / python app.py

  1. 1
    - demonstration
    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.

  2. 2
    - remove bg image and add white colour instead
    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.

  3. 3
    - change button colour
    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.

  4. 4
    - move navbar to bottom
    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
    - explain models
    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
    - make any change in db
    Times asked 2
    Official solution

    SimpleDB dikhao: SQLite browser / flask shell se tables. Users, roles, sample rows.

    Example

    flask shell
    >>> from models import User
    >>> User.query.count()
  7. 7
    - explain entire back+front code
    Times asked 2
    Official solution

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

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

  8. 8
    - inline vs internal css
    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.

  9. 9
    - rate app and justify
    Times asked 2
    Official solution

    SimpleApp rate 1–5 honestly + reason: completeness, UI, edge cases. Weak points improve plan ke saath bolo.

  10. 10
    - buh-bye
    Times asked 2
    Official solution

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

  11. 11
    - good luck!
    Times asked 2
    Official solution

    SimpleEnd of viva note — kuch extra nahi. Agar time bache to ek unique feature highlight karo.

  1. 1
    Ask me to change the background Colour of Home page!
    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
    Ask me to add background image in user dashboard!
    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.

  3. 3
    The Navbar you have on the top, put it in the footer section ( i am getting some error while doing this so he give me enough time to do, also ask me to take help from internet )
    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.

  4. 4
    What is JavaScript?
    Times asked 1
    Official solution

    SimpleJavaScript browser/Node pe chalta hai — DOM, events, fetch/axios. MAD1 mein thoda JS; MAD2 mein Vue JS pe.

  1. 1
    1 - introduce me to you app.
    Times asked 3
    Official solution

    Simple30 second: naam, degree, project kya hai, stack (Flask + Jinja + SQLAlchemy + SQLite).

    Example

    Main Priya, IITM BS. MAD1 mein parking/ticket app — Flask backend, Jinja templates, session login, SQLite.
  2. 2
    2 -: change button color to red
    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
    change bg color of app
    Times asked 3
    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.

  4. 4
    push nav bar to bottom
    Times asked 3
    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
    change appearance of page
    Times asked 3
    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.

  6. 6
    3 - questions:
    Times asked 1
    Official solution

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

  7. 7
    vue
    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.

  8. 8
    javascript frameworks
    Times asked 1
    Official solution

    SimpleVue React Angular UI frameworks. Vue course choice.

    What are JavaScript frameworks.

    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: Vue.

    Project example: Vue.

  9. 9
    libraries used in app
    Times asked 2
    Official solution

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

  10. 10
    server sent event
    Times asked 3
    Official solution

    SimpleServer-Sent Events: server → browser one-way stream (text/event-stream). WebSocket full duplex hai; SSE simpler notifications ke liye.

    Example

    # client
    const es = new EventSource('/stream');
    es.onmessage = (e) => console.log(e.data);
  11. 11
    smtp
    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.

  12. 12
    template inheritance
    Times asked 4
    Official solution

    Simpleextends poora layout inherit karta hai, include chhota piece insert karta hai.

    extends: child page base.html ka structure use karti hai, blocks override karti hai. Ek hi parent.
    include: navbar.html / footer.html jahan chaho insert. Kai baar use ho sakta hai.

    base.html:

    {% block content %}{% endblock %}
    
    home.html:
    {% extends 'base.html' %}
    {% block content %}<h1>Home</h1>{% endblock %}
    
    {% include 'navbar.html' %}  → navbar har page pe

    Fayda: header/footer ek jagah, change once — saari pages update. MAD1 mein almost har project use karta hai.

  13. 13
    lifecycle hooks
    Times asked 2
    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.

  14. 14
    csrf & cors
    Times asked 2
    Official solution

    SimpleCSRF: attacker tumhari logged-in browser se unwanted POST. CSRF token form mein proof hai request genuine hai.

    Viva tipFlask-WTF CSRF protect karta hai. Token bina POST reject.

  15. 15
    mutations and actions
    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.

  16. 16
    task queue and message queue
    Times asked 2
    Official solution

    SimpleMessage queue generic. Task queue (Celery) specifically 'yeh function chalao'.

    Redis list FIFO. Priority extra queues.

    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: Celery is task queue on Redis broker.

  17. 17
    what is dos -
    Times asked 2
    Official solution

    SimpleDenial of Service flood/expensive queries se down. Rate limit, captcha, scale.

    Course: validation, indexes, cache. Not full WAF.

    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: Don't allow unbounded export without auth.

  18. 18
    opaque request
    Times asked 2
    Official solution

    SimpleOpaque request/token: andar ka structure client ko meaningful nahi — bas string id. Server pe map hota hai. JWT transparent claims dikhata hai.

    Viva tipSession id opaque hota hai; JWT payload base64 se padh sakte ho (sign alag).

  19. 19
    Backend & Frontend validation
    Times asked 2
    Official solution

    SimpleValidation = input rules: required, email format, length, unique. Frontend UX, backend security — dono.

    Example

    if not email or '@' not in email:
        flash('Invalid email')
        return redirect(request.url)
    if User.query.filter_by(email=email).first():
        flash('Email taken')
  20. 20
    plub/sub vs point to point
    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.

  21. 21
    explain models in details
    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)
  22. 22
    if you are trying to enter a string data to int field, what error will be thrown
    Times asked 3
    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
  23. 23
    if you are trying to do a same in empty table will it throw error or not
    Times asked 3
    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
  24. 24
    if throws, now what error
    Times asked 3
    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
  25. 25
    Inline CSS vs external CSS
    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.

  26. 26
    Rate out of 10 and why?
    Times asked 1
    Official solution

    SimpleApp rate 1–5 honestly + reason: completeness, UI, edge cases. Weak points improve plan ke saath bolo.

  1. 1
    Project Demonstration for first 7-8 mins.
    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.

  2. 2
    Explain your database.
    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
    Make any changes to your database.
    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.

  4. 4
    Rate your application out of 5. Reason for rating your application x.
    Times asked 2
    Official solution

    Simple3.5–4/5 + why: core done, tests/UI missing. 5/5 overclaim.

    Justify. Enjoy frontend vs backend honest.

    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: Weak: celery demo flaky / UI.

    Project example: Weak: celery demo flaky / UI.

  5. 5
    Frontend and Back-end difference. Which is more important? 2-3 more questions that I cannot recall. But read the sheets properly for this proctor. All the questions were from there only. Also, don't get panicked seeing the above response about him as RUDE, he is cool. You'll enjoy answering questions. He might roast you sometimes (like why you don't know this, but that you'll enjoy).So no need to worry. Just prepare the questions from sheets. (This is the 8th Response for this proctor). Do check all the 7 previous responses and you are good to go!! Viva lasted for 35 mins. All the best 😇
    Times asked 2
    Official solution

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

  1. 1
    ORM
    Times asked 11
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  2. 2
    Packages used in project and why ?
    Times asked 2
    Official solution

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

  3. 3
    Backend Front end validation
    Times asked 2
    Official solution

    SimpleValidation = input rules: required, email format, length, unique. Frontend UX, backend security — dono.

    Example

    if not email or '@' not in email:
        flash('Invalid email')
        return redirect(request.url)
    if User.query.filter_by(email=email).first():
        flash('Email taken')
  4. 4
    Rate App out of 5 and why ?
    Times asked 2
    Official solution

    SimpleApp rate 1–5 honestly + reason: completeness, UI, edge cases. Weak points improve plan ke saath bolo.

  5. 5
    asked to do :
    Times asked 2
    Official solution

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

  6. 6
    change db column and change app accordingly
    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.

  1. 1
    Demo of the app
    Times asked 8
    Official solution

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

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

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

  2. 2
    Explain Database
    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
    ORM
    Times asked 11
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  4. 4
    Backend & Frontend validation
    Times asked 2
    Official solution

    SimpleValidation = input rules: required, email format, length, unique. Frontend UX, backend security — dono.

    Example

    if not email or '@' not in email:
        flash('Invalid email')
        return redirect(request.url)
    if User.query.filter_by(email=email).first():
        flash('Email taken')
  5. 5
    Point to point messaging
    Times asked 1
    Official solution

    SimplePoint-to-point messaging: ek producer → ek queue → ek consumer. Celery task usually yahi. Pub/Sub = broadcast many subscribers.

  6. 6
    Javascript framework used
    Times asked 2
    Official solution

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

  7. 7
    Change background from white to red
    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.

  8. 8
    Rate your application out of 5 & why ?
    Times asked 1
    Official solution

    Simple3.5–4/5 + why: core done, tests/UI missing. 5/5 overclaim.

    Justify. Enjoy frontend vs backend honest.

    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: Weak: celery demo flaky / UI.

    Project example: Weak: celery demo flaky / UI.

  9. 9
    All Questions asked were from the sheet only
    Times asked 2
    Official solution

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

  1. 1
    javascript frameworks used
    Times asked 1
    Official solution

    SimpleVue React Angular UI frameworks. Vue course choice.

    What are JavaScript frameworks.

    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: Vue.

    Project example: Vue.

  2. 2
    what is point to point messaging
    Times asked 1
    Official solution

    SimplePoint-to-point messaging: ek producer → ek queue → ek consumer. Celery task usually yahi. Pub/Sub = broadcast many subscribers.

  3. 3
    frontend validation or backend validation - which is more important
    Times asked 1
    Official solution

    SimpleValidation = input rules: required, email format, length, unique. Frontend UX, backend security — dono.

    Example

    if not email or '@' not in email:
        flash('Invalid email')
        return redirect(request.url)
    if User.query.filter_by(email=email).first():
        flash('Email taken')
  1. 1
    Csrf and xss
    Times asked 2
    Official solution

    SimpleCSRF: attacker tumhari logged-in browser se unwanted POST. CSRF token form mein proof hai request genuine hai.

    Viva tipFlask-WTF CSRF protect karta hai. Token bina POST reject.

  2. 2
    What is privacy and security
    Times asked 2
    Official solution

    SimplePrivacy personal data minimize. Security attacks rokna CIA. Overlap not same.

    GDPR vs firewall example.

    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: Don't return other users' emails to normal user API.

  3. 3
    For all questions if you can answer him with confidence then you are good to go else you may be in deep trouble.
    Times asked 2
    Official solution

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

  1. 1
    javascript frameworks used (repeated thrice ig 🥲)
    Times asked 2
    Official solution

    SimpleVue React Angular UI frameworks. Vue course choice.

    What are JavaScript frameworks.

    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: Vue.

    Project example: Vue.

  2. 2
    libraries used in app
    Times asked 2
    Official solution

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

  3. 3
    what is smtp
    Times asked 1
    Official solution

    SimpleSMTP = email bhejne ka protocol, jaise HTTP web ka.

    Ports: 587 STARTTLS, 465 SMTPS, 25 server-server. Dev: MailHog 1025.

    Flask-Mail wrap. Sync send slow — Celery task se bhejo.

    Fayda: universal. Nuksaan: spam, deliverability (SPF/DKIM), no guarantee like API.

    Example

    app.config['MAIL_SERVER'] = 'localhost'
    app.config['MAIL_PORT'] = 1025
    mail.send(Message('Hi', recipients=['a@b.com'], body='Hello'))

    Project example: MAIL_SERVER=localhost MAIL_PORT=1025. Production later SendGrid/SES.

    Viva tipFayda: universal. Nuksaan: deliverability, spam, sync send slow — isliye Celery + MailHog in dev.

  4. 4
    change background of a div to an image
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  5. 5
    what is orm
    Times asked 1
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  6. 6
    what is point to point messaging
    Times asked 1
    Official solution

    SimplePoint-to-point messaging: ek producer → ek queue → ek consumer. Celery task usually yahi. Pub/Sub = broadcast many subscribers.

  1. 1
    1 - introduce me to you app.
    Times asked 3
    Official solution

    Simple30 second: naam, degree, project kya hai, stack (Flask + Jinja + SQLAlchemy + SQLite).

    Example

    Main Priya, IITM BS. MAD1 mein parking/ticket app — Flask backend, Jinja templates, session login, SQLite.
  2. 2
    2 - after about 25% of explanation, told some changes:
    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.

  3. 3
    change button color to red
    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.

  4. 4
    change bg color of app
    Times asked 3
    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
    push nav bar to bottom
    Times asked 3
    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.

  6. 6
    change appearance of page
    Times asked 3
    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
    vue
    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.

  8. 8
    server sent event
    Times asked 3
    Official solution

    SimpleServer-Sent Events: server → browser one-way stream (text/event-stream). WebSocket full duplex hai; SSE simpler notifications ke liye.

    Example

    # client
    const es = new EventSource('/stream');
    es.onmessage = (e) => console.log(e.data);
  9. 9
    task queue and message queue
    Times asked 2
    Official solution

    SimpleMessage queue generic. Task queue (Celery) specifically 'yeh function chalao'.

    Redis list FIFO. Priority extra queues.

    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: Celery is task queue on Redis broker.

  10. 10
    what is dos -
    Times asked 2
    Official solution

    SimpleDenial of Service flood/expensive queries se down. Rate limit, captcha, scale.

    Course: validation, indexes, cache. Not full WAF.

    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: Don't allow unbounded export without auth.

  11. 11
    plub/sub vs point to point
    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.

  12. 12
    explain models
    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)
  13. 13
    if you are trying to enter a string data to int field, what error will be thrown
    Times asked 3
    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
  14. 14
    if you are trying to do a same in empty table will it throw error or not
    Times asked 3
    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
  15. 15
    if throws, now what error
    Times asked 3
    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
  16. 16
    Can you create tracker in JS(IDK what this Q means)
    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.

  17. 17
    Change background to any random image
    Times asked 2
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  18. 18
    then said, that's all you can exit and disconnected the call. Lasted 1/2 hr.
    Times asked 2
    Official solution

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

  19. 19
    The proctor was so rude....if you get this proctor just show your project ,practice changing backgrounds, and prepare the Question about.
    Times asked 2
    Official solution

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

  1. 1
    webhooks
    Times asked 2
    Official solution

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

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

  2. 2
    smtp
    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.

  3. 3
    mutations and actions
    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
    inline css
    Times asked 1
    Official solution

    Simplestyle="color:red" ek element. Hard reuse high specificity. What is Inline CSS.

    vs internal <style> vs external file.

    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.

    Project example: Avoid inline except live tiny.

    Project example: Avoid inline except live tiny.

  5. 5
    opaque request
    Times asked 2
    Official solution

    SimpleOpaque request/token: andar ka structure client ko meaningful nahi — bas string id. Server pe map hota hai. JWT transparent claims dikhata hai.

    Viva tipSession id opaque hota hai; JWT payload base64 se padh sakte ho (sign alag).

  6. 6
    a lot of questions on database
    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.

  7. 7
    what type of error and such
    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
  8. 8
    Very rude proctor overall
    Times asked 2
    Official solution

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

  1. 1
    full demo of your app
    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.

  2. 2
    certain changes in the code, like background colour, alignments
    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.

  3. 3
    git
    Times asked 1
    Official solution

    SimpleGit VCS tool. VCS concept. GitHub hosting. SCM another name.

    commit branch merge. Examiner history. Git ≠ GitHub.

    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: git log. collaborators. README.

  4. 4
    version control
    Times asked 1
    Official solution

    SimpleGit version control: commit history dikhao. VCS = Version Control System.

  5. 5
    authentication
    Times asked 3
    Official solution

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

    Example

    # auth
    if check_password_hash(user.password, pwd):
        session['user_id'] = user.id
    
    # authz
    if user.role != 'admin':
        abort(403)
  6. 6
    authorization
    Times asked 2
    Official solution

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

    Example

    # auth
    if check_password_hash(user.password, pwd):
        session['user_id'] = user.id
    
    # authz
    if user.role != 'admin':
        abort(403)
  7. 7
    libraries used in the app - here you will mostly cover:
    Times asked 2
    Official solution

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

  8. 8
    -redis
    Times asked 1
    Official solution

    SimpleRedis fridge pe sticky note hai — poori kitchen (database) kholne ki zarurat nahi.

    Redis in-memory key-value store hai. Data RAM mein rehta hai, isliye disk wale SQLite/Postgres se kai guna tez.

    MAD2 mein Redis do kaam karta hai:
    1) Cache — same venue/show/dashboard JSON baar-baar DB se mat nikaalo.
    2) Celery message broker — Flask task queue mein daalta hai, worker uthata hai.

    Source of truth database hi hai. Redis band ho to cache miss ho jaata hai aur Celery queue ruk sakti hai. Crash pe cache gayab ho sakta hai — isliye important data sirf Redis mein mat rakho.

    Example

    import redis
    r = redis.Redis(host='localhost', port=6379, db=0)
    r.set('venues', json.dumps(data), ex=30)
    print(r.get('venues'))

    Project example: GET /api/venues pehle Redis dekho. Miss pe SQLAlchemy query, phir SET with timeout. Celery worker Redis list se daily reminder uthata hai.

    Viva tipCache ke liye db=1, broker ke liye db=0 rakhna smart hai taaki keys mix na hon. Viva mein redis-cli ping → PONG dikhana strong hai.

  9. 9
    -celery
    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.

  10. 10
    -flask
    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.

  11. 11
    -jinja2
    Times asked 2
    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 %}
  12. 12
    -api
    Times asked 1
    Official solution

    SimpleAPI = interface jisse systems baat karein. Web API usually JSON return karti hai.

    Example

    @app.route('/api/lots')
    def api_lots():
        return jsonify([{'id': l.id, 'name': l.name} for l in Lot.query.all()])
  13. 13
    -sqlalchemy
    Times asked 2
    Official solution

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

    Example

    user = User(email='a@b.com')
    db.session.add(user)
    db.session.commit()
    users = User.query.filter_by(role='admin').all()
  1. 1
    Demonstrate your complete application.
    Times asked 7
    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.

  2. 2
    Explain your entire codebase (backend and frontend).
    Times asked 1
    Official solution

    SimpleTree + 6 file roles. Not every line.

    Same walk_code. Stay structured.

    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: Start models end Vue.

    Project example: Start models end Vue.

  3. 3
    Explain your database/models in detail.
    Times asked 1
    Official solution

    SimpleTables + lines (FK) + 1-M / M-M. Draw mentally, phir models.py.

    Har class: PK, important columns, relationships. Why normalized (no duplicate venue name in every show as only string without FK).

    Indexes search columns. Unique email. Cascade policy bookings pe.

    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: User-Role M-M. User-Booking 1-M. Venue-Show 1-M. Show-Booking 1-M.

  4. 4
    Explain the flow of a feature from frontend to backend (e.g., booking/service flow).
    Times asked 1
    Official solution

    SimpleButton to DB and back 6 steps. Explain flow of a feature frontend to backend.

    Pick booking/service.

    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: Sequence aloud.

    Project example: Sequence aloud.

  5. 5
    Explain every library/package used in your project and why it is needed.
    Times asked 1
    Official solution

    SimpleHar lib ek line why — list 40 mat.

    Flask, SQLAlchemy, JWT/Security, CORS, Caching+Redis, Celery, Vue+Router, Vuex/Pinia, Axios/fetch, Chart.js, Bootstrap.

    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: requirements.txt + package.json top 6 open karke bolo.

    Viva tipHar lib ek line why: CORS alag origin, Redis tez, Celery async, Chart.js dashboard.

  6. 6
    Explain every API used in your application.
    Times asked 1
    Official solution

    Simple3–4 routes deep: auth, validation, status, cache? Method body response error.

    Login, list, create. Why each.

    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: Open resources, pick examiner's choice.

  7. 7
    Explain the challenges and learnings from MAD1 and MAD2.
    Times asked 1
    Official solution

    SimpleTypical: CORS, JWT expiry, Celery Windows, cache stale, Vue reactivity. Personal 30s story.

    How solved docs+logs. Difficulties honest.

    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: Pick one real bug.

  8. 8
    Add a new database entry using a Python script or the terminal.
    Times asked 1
    Official solution

    Simpleflask shell obj=Model(); add; commit. Add new database entry Python script or terminal.

    app context.

    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.

    Project example: flask shell.

  9. 9
    Change the background color of the page/body.
    Times asked 1
    Official solution

    Simplebody { background: #f5f5f5 } or wrapper class.

    Specific div vs whole page — suno examiner.

    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: App.vue style or bootstrap bg-light.

    Project example: App.vue style or bootstrap bg-light.

  10. 10
    Change the background color of a specific div/login box.
    Times asked 1
    Official solution

    Simplebody { background: #f5f5f5 } or wrapper class.

    Specific div vs whole page — suno examiner.

    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: App.vue style or bootstrap bg-light.

    Project example: App.vue style or bootstrap bg-light.

  11. 11
    Set a background image.
    Times asked 1
    Official solution

    Simplebody { background-image: url(...); background-size: cover; }. Set a background image.

    static/bg.jpg.

    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: css.

    Project example: css.

  12. 12
    Change the font/text color.
    Times asked 1
    Official solution

    Simplebody { color } or navbar color. Change font/text color.

    Specific element if said.

    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: css.

    Project example: css.

  13. 13
    Change the button color.
    Times asked 3
    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.

  14. 14
    Change the navbar color.
    Times asked 1
    Official solution

    Simplenav.navbar background or navbar-dark bg-primary / custom CSS.

    Don't change unrelated buttons unless asked.

    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: Inspect nav class.

    Project example: Inspect nav class.

  15. 15
    Move the navbar (center/bottom/footer).
    Times asked 1
    Official solution

    Simpleposition:fixed bottom / flex order / swap footer in App.vue.

    Confirm UX. Save refresh.

    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

    nav { position: fixed; bottom: 0; width: 100%; }

    Project example: Navbar.vue or App.vue css.

  16. 16
    Move the header to the center of the page.
    Times asked 1
    Official solution

    Simpletext-align:center or mx-auto header. Move header center of page.

    css.

    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: h1 class.

    Project example: h1 class.

  17. 17
    Modify a database column and update the application accordingly.
    Times asked 1
    Official solution

    SimpleChange Column type/length SQLite ALTER limited. New column easier. Modify database column update app.

    serialize + form + create_all/migrate.

    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 drop casually.

  18. 18
    What is Vue?
    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.

  19. 19
    What are JavaScript frameworks?
    Times asked 1
    Official solution

    SimpleVue React Angular UI frameworks. Vue course choice.

    What are JavaScript frameworks.

    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: Vue.

    Project example: Vue.

  20. 20
    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.

  21. 21
    What are Vue Routes?
    Times asked 1
    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.

  22. 22
    What are Vuex Mutations and Actions?
    Times asked 1
    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.

  23. 23
    What is AJAX?
    Times asked 4
    Official solution

    SimpleAJAX = page reload ke bina server se baat. Technique ka naam, library nahi.

    Purana XMLHttpRequest. Aaj fetch() / Axios. Vue SPA poori AJAX pe chalti hai — JSON aata, v-for render.

    AJAX ≠ jQuery. Fetch native API. Axios library interceptors ke saath.

    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

    const res = await fetch('/api/venues')
    const data = await res.json()

    Project example: mounted() mein fetch('/api/venues') — yeh AJAX hai.

    Viva tipAJAX technique hai, Fetch modern API hai. Axios library hai uske upar.

  24. 24
    What is Server-Sent Events (SSE)?
    Times asked 1
    Official solution

    SimpleSSE ek tarah ka radio: server bolta rehta, client sunta. Client us pipe pe command nahi bhejta.

    text/event-stream. EventSource browser. Notifications ke liye WebSocket se simple.

    MAD2 optional. Celery complete hone pe poll bhi kaafi.

    HTTP postcard (request-response). WebSocket phone call (dono taraf live). SSE radio (server→client stream). Webhook unka server tumhe POST karta hai (payment).

    MAD2 mostly REST. Live dashboard = poll + Redis cache kaafi. Agar implement nahi kiya to design bolo, jhoot mat.

    Project example: Export status poll GET task_id. SSE nahi kiya to bolo alternative.

  25. 25
    What is an Opaque Request?
    Times asked 1
    Official solution

    SimpleOpaque no-cors fetch, body JS se nahi. Not for JSON APIs. cors mode default.

    What is an Opaque Request.

    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: We don't use no-cors for APIs.

    Project example: We don't use no-cors for APIs.

  26. 26
    What is Flask?
    Times asked 6
    Official solution

    SimpleFlask halka Python web framework. MAD2 REST API. Open source BSD.

    Large apps possible blueprints+gunicorn. Flask(__name__) paths. Dev server not prod.

    create_app factory tests/celery.

    Flask Python micro web framework. Route decorator URL → function. MAD2 mein JSON API: request.get_json(), jsonify, JWT.

    WSGI: server (Werkzeug) app ko call. if __name__ == '__main__' sirf direct run. Factory create_app() test/celery ke liye.

    Blueprint/resources folders. @app.route vs MethodView. Debug=True viva local, prod nahi. CORS alag port Vue ke liye.

    Example

    app = Flask(__name__)
    @app.route('/api/hello')
    def hello():
        return jsonify(message='Hello World')

    Project example: create_app register db cache cors jwt celery.

    Viva tipOpen source haan. Flask(__name__) root path/templates locate karta hai — hataoge to config confuse.

  27. 27
    Can a Flask endpoint/API return a Boolean value?
    Times asked 1
    Official solution

    SimpleJSON true/false possible. Better {ok:true}. jsonify(True) works.

    Can Flask endpoint return Boolean? Yes.

    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: We return objects.

    Project example: We return objects.

  28. 28
    What happens if a database table is empty? What does the query return?
    Times asked 1
    Official solution

    Simple[] / None. Templates v-if. No error if handled.

    What happens empty table.

    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: Fresh DB demo.

    Project example: Fresh DB demo.

  29. 29
    What is ORM?
    Times asked 49
    Official solution

    SimpleORM = translator. Python object bolo, woh SQL mein baat kare.

    Object Relational Mapper. Class User ↔ table user. Raw SQL kam.

    SQLAlchemy MAD1/MAD2. Fayde: portable SQLite→Postgres, relationships, parameterized queries (injection kam).
    Nuksaan: N+1, hidden SQL, complex reports pe raw better.

    Direct sqlite3 se SQLAlchemy isliye: models, switch DB, safer queries.

    Example

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(128), unique=True)
    User.query.filter_by(email='a@b.com').first()

    Project example: models.py db.Model. resources User.query.filter_by. Koi f-string SQL nahi.

    Viva tipFayde: safe-ish, portable (SQLite→Postgres). Nuksaan: complex queries, N+1, leaky abstractions. Direct SQLite se SQLAlchemy isliye: models + injection protection + switch DB.

  30. 30
    Explain your database schema/models.
    Times asked 1
    Official solution

    SimpleTables + lines (FK) + 1-M / M-M. Draw mentally, phir models.py.

    Har class: PK, important columns, relationships. Why normalized (no duplicate venue name in every show as only string without FK).

    Indexes search columns. Unique email. Cascade policy bookings pe.

    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: User-Role M-M. User-Booking 1-M. Venue-Show 1-M. Show-Booking 1-M.

  31. 31
    What type of database errors can occur? (e.g., inserting a string into an integer column)
    Times asked 1
    Official solution

    SimpleIntegrityError duplicate/FK. DataError type. OperationalError lock. Catch 400 not 500.

    Type of database errors.

    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: try commit except IntegrityError rollback.

  32. 32
    What happens if invalid data is inserted into an empty table?
    Times asked 1
    Official solution

    SimpleType/constraint DataError IntegrityError. Validate JSON types before add. Catch 400.

    Invalid data empty table still errors on type.

    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: Post string in integer column.

  33. 33
    How many models have you used?
    Times asked 1
    Official solution

    SimpleCount honestly models.py.

    How many models.

    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: Open file count class db.Model.

  34. 34
    Difference between frontend validation and backend validation.
    Times asked 2
    Official solution

    SimpleFrontend UX turant error. Backend security mandatory. Dono. Backend zyada important.

    Which more important: backend. Client bypass DevTools.

    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

    if len(password) < 8 or not re.search(r'[A-Z]', password):
        return jsonify(msg='weak password'), 400

    Project example: Password regex both. Seats check backend.

  35. 35
    Which validation is more important, frontend or backend?
    Times asked 1
    Official solution

    SimpleBackend more important. Frontend UX. Attacker UI skip karta.

    Never frontend-only overbooking.

    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 bypass Vue still 400.

    Project example: Postman bypass Vue still 400.

  36. 36
    What is Git?
    Times asked 3
    Official solution

    SimpleGit VCS tool. VCS concept. GitHub hosting. SCM another name.

    commit branch merge. Examiner history. Git ≠ GitHub.

    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: git log. collaborators. README.

  37. 37
    What is Version Control?
    Times asked 2
    Official solution

    SimpleGit VCS tool. VCS concept. GitHub hosting. SCM another name.

    commit branch merge. Examiner history. Git ≠ GitHub.

    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: git log. collaborators. README.

  38. 38
    Difference between Git and a Version Control System (VCS).
    Times asked 1
    Official solution

    SimpleVCS category, Git implementation, GitHub remote+PR.

    Difference Git vs VCS vs GitHub three words.

    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: Local git, origin GitHub.

    Project example: Local git, origin GitHub.

  39. 39
    What is another name for a Version Control System?
    Times asked 1
    Official solution

    SimpleGit VCS tool. VCS concept. GitHub hosting. SCM another name.

    commit branch merge. Examiner history. Git ≠ GitHub.

    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: git log. collaborators. README.

  40. 40
    What are Webhooks?
    Times asked 7
    Official solution

    SimpleWebhook = woh tumhe call karta hai. API = tum unhe call karte ho.

    Payment success pe Stripe tumhare /webhooks/payment pe POST. Tum poll nahi karte.

    API pull, webhook push. WebSocket dono taraf live connection. SSE server→client stream.

    MAD2 mostly REST APIs. Webhook theory + example kaafi. Verify signature production mein.

    Example

    @app.route('/webhooks/payment', methods=['POST'])
    def hook():
        event = request.json
        ...

    Project example: Agar implement nahi: 'course REST. Webhook design: POST /webhooks/booking-paid'.

    Viva tipAPI pull, webhook push. WebSocket dono taraf live. SSE server → client stream.

  41. 41
    What is CSRF?
    Times asked 5
    Official solution

    SimpleCSRF = dusri site tumhare cookie se request chalwa de jab tum logged in ho.

    Session+cookie auto-send → CSRF token chahiye.
    JWT Authorization header browser automatically dusri site se nahi lagata — kam risk (unless cookie JWT).

    SameSite cookies help.

    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: Token header APIs. Cookie session nahi to CSRF kam. Phir bhi CORS tight.

  42. 42
    What is XSS?
    Times asked 1
    Official solution

    SimpleXSS untrusted HTML/JS inject. Escape, CSP, mat v-html user content.

    JWT LS steal via XSS. Why v-html movie desc careful.

    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: {{ }} auto escape. v-html only sanitized.

  43. 43
    What is DoS (Denial of Service)?
    Times asked 1
    Official solution

    SimpleDenial of Service flood/expensive queries se down. Rate limit, captcha, scale.

    Course: validation, indexes, cache. Not full WAF.

    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: Don't allow unbounded export without auth.

  44. 44
    Difference between Privacy and Security.
    Times asked 1
    Official solution

    SimplePrivacy personal data minimize. Security attacks rokna CIA. Overlap not same.

    GDPR vs firewall example.

    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: Don't return other users' emails to normal user API.

  45. 45
    What is Redis?
    Times asked 21
    Official solution

    SimpleRedis fridge pe sticky note hai — poori kitchen (database) kholne ki zarurat nahi.

    Redis in-memory key-value store hai. Data RAM mein rehta hai, isliye disk wale SQLite/Postgres se kai guna tez.

    MAD2 mein Redis do kaam karta hai:
    1) Cache — same venue/show/dashboard JSON baar-baar DB se mat nikaalo.
    2) Celery message broker — Flask task queue mein daalta hai, worker uthata hai.

    Source of truth database hi hai. Redis band ho to cache miss ho jaata hai aur Celery queue ruk sakti hai. Crash pe cache gayab ho sakta hai — isliye important data sirf Redis mein mat rakho.

    Example

    import redis
    r = redis.Redis(host='localhost', port=6379, db=0)
    r.set('venues', json.dumps(data), ex=30)
    print(r.get('venues'))

    Project example: GET /api/venues pehle Redis dekho. Miss pe SQLAlchemy query, phir SET with timeout. Celery worker Redis list se daily reminder uthata hai.

    Viva tipCache ke liye db=1, broker ke liye db=0 rakhna smart hai taaki keys mix na hon. Viva mein redis-cli ping → PONG dikhana strong hai.

  46. 46
    What is Celery?
    Times asked 19
    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.

  47. 47
    What is Caching?
    Times asked 2
    Official solution

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

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

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

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

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

    Example

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

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

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

  48. 48
    What is Point-to-Point Messaging?
    Times asked 1
    Official solution

    SimpleEk producer ek consumer. Celery task typically p2p. Pub/sub broadcast.

    Redis acts as broker between Flask and worker.

    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: delay() one worker executes once.

  49. 49
    Difference between Task Queue and Message Queue.
    Times asked 1
    Official solution

    SimpleMessage queue generic. Task queue (Celery) specifically 'yeh function chalao'.

    Redis list FIFO. Priority extra queues.

    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: Celery is task queue on Redis broker.

  50. 50
    What is CSS?
    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.

  51. 51
    What is Inline CSS?
    Times asked 1
    Official solution

    Simplestyle="color:red" ek element. Hard reuse high specificity. What is Inline CSS.

    vs internal <style> vs external file.

    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.

    Project example: Avoid inline except live tiny.

    Project example: Avoid inline except live tiny.

  52. 52
    Difference between Inline CSS and Internal CSS.
    Times asked 2
    Official solution

    SimpleInline attr. Internal <style> page. External .css reuse. Specificity inline highest.

    Difference Inline and Internal CSS.

    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: SFC style ≈ internal scoped.

  53. 53
    What are the different ways to store data in the browser/client?
    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.

  54. 54
    Difference between Local Storage, Session Storage, and Cookies.
    Times asked 2
    Official solution

    SimpleLS persist 5MB XSS-readable. SS tab-scoped. Cookies chhote auto-send httpOnly possible.

    JWT LS common student MAD2 — v-html untrusted mat. Logout removeItem.

    Vuex RAM refresh gayab unless rehydrate LS.

    Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"

    Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
    Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).

    MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.

    Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.

    Project example: Application tab localStorage token key. Cookies empty if JWT LS.

    Viva tipJWT ko localStorage common hai MAD2 student projects mein — XSS se bacho (v-html untrusted mat).

  55. 55
    What is SMTP?
    Times asked 3
    Official solution

    SimpleSMTP = email bhejne ka protocol, jaise HTTP web ka.

    Ports: 587 STARTTLS, 465 SMTPS, 25 server-server. Dev: MailHog 1025.

    Flask-Mail wrap. Sync send slow — Celery task se bhejo.

    Fayda: universal. Nuksaan: spam, deliverability (SPF/DKIM), no guarantee like API.

    Example

    app.config['MAIL_SERVER'] = 'localhost'
    app.config['MAIL_PORT'] = 1025
    mail.send(Message('Hi', recipients=['a@b.com'], body='Hello'))

    Project example: MAIL_SERVER=localhost MAIL_PORT=1025. Production later SendGrid/SES.

    Viva tipFayda: universal. Nuksaan: deliverability, spam, sync send slow — isliye Celery + MailHog in dev.

  56. 56
    What are the advantages and disadvantages of SMTP?
    Times asked 1
    Official solution

    Simple

    Faydestandard, har jagah. Nuksaan: spam, auth complex, sync slow.

    Course SMTP + MailHog. Real product: SES/SendGrid + bounce handling.

    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: Celery + Flask-Mail + MailHog. Inbox nahi, UI :8025.

  57. 57
    Rate your application out of 5 and justify your rating.
    Times asked 1
    Official solution

    Simple3.5–4/5 + why: core done, tests/UI missing. 5/5 overclaim.

    Justify. Enjoy frontend vs backend honest.

    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: Weak: celery demo flaky / UI.

    Project example: Weak: celery demo flaky / UI.

  58. 58
    If your application crashes in production, how would you debug and resolve the issue?
    Times asked 1
    Official solution

    SimpleLogs gunicorn/journal, reproduce, hotfix, postmortem. Don't debug only prod.

    If application crashes production.

    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: Flask debug off prod.

    Project example: Flask debug off prod.

  1. 1
    Introduce yourself.
    Times asked 7
    Official solution

    Simple20-30 second intro, phir ID nikaal ke rakhna.

    Example'Namaste, main <Name> hoon, IITM BS degree, MAD-1 project <ProjectName> — Flask, SQLAlchemy, Jinja. Roles: Admin, Staff, User. CRUD, auth, search implement kiye.'

    Interest poochhe to ek genuine cheez (ML, web, cricket) + 1 line. Fake buzzwords mat maaro.
    End mein feedback maangna theek hai: 'Koi improvement suggest karenge?'

  2. 2
    Show ID card.
    Times asked 6
    Official solution

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

    Pehle se ID haath mein rakho. Glare mat aane do. Examiner screenshot/verify karta hai. Iske baad GitHub + project run.

  3. 3
    Checksum / Download project from portal.
    Times asked 1
    Official solution

    SimpleChecksum file ka hash (jaise SHA256) — file change hui ya nahi verify.

    Portal pe submitted ZIP ka checksum diya hota hai. Local file ka hash nikaalo, match hona chahiye.
    Linux: sha256sum project.zip
    Mismatch = galat file / corrupt download. Examiner integrity check karta hai ki tumhari submitted copy hi run ho rahi hai.

  4. 4
    Give a complete project demo.
    Times asked 2
    Official solution

    SimpleDemo script pehle se practice karo, 5-7 minute, saari roles.

    Suggested flow

    1) Register/login user 2) Admin login — CRUD 3) Approval/blacklist 4) Booking/apply 5) Search 6) Validation edge (slots 0, duplicate) 7) Logout
    Bolte-bolte dikhao: 'Yahan overbooking rokta hoon'. Code tab kholna jab poochhein.
    Crash ho to debug calmly: terminal error, typo, DB path.
    Mandatory features skip mat karna — examiner list tick karta hai.

  5. 5
    Explain your project in detail
    Times asked 1
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  6. 6
    Rate your project.
    Times asked 1
    Official solution

    Simple2-3 honest improvements + 1 security + 1 UX.

    Example

    password hashing/CSRF tighter, Redis cache, tests, pagination, email verify, rate limit login, better mobile CSS.

    Challenges: relationships/cascade, concurrent booking, Jinja inheritance.
    Rate: 7-8/10 with reason — 10/10 arrogant, 3/10 confidence khatam.
    Security extra: HTTPS, hashed passwords, CSRF, SQL injection (ORM), login attempts, file type check.

  7. 7
    If a user reports a bug, how would you debug and solve it?
    Times asked 1
    Official solution

    SimpleFlask default port 5000. Change: app.run(port=8000) ya env PORT, ya flask run --port 8000.

    if __name__ == '__main__':
        app.run(debug=True, host='0.0.0.0', port=8000)

    Do apps ek saath: alag ports. Occupied port: error, doosra number try.

  8. 8
    Explain the complete code line by line.
    Times asked 1
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  9. 9
    Explain frontend and backend code separately.
    Times asked 1
    Official solution

    SimpleFrontend user jo dekhta/click karta hai, Backend server logic + database.

    Frontend: HTML, CSS, Bootstrap, Jinja templates, thoda JS. Browser pe chalta hai.
    Backend: Flask routes, SQLAlchemy, session, validation. Python server pe.
    Data flow: form POST → Flask request.form → DB save → render_template/redirect → HTML dikha.
    MAD1 typical stack: Flask + Jinja + SQLAlchemy + SQLite + Bootstrap.

  10. 10
    Explain routes.py.
    Times asked 3
    Official solution

    SimpleRoutes/controllers URLs handle karte hain. app.py app banata hai, models.py data, templates/ views, static/ CSS-JS.

    Typical structure:
    app.py / __init__.py → Flask app, db.init, register blueprints
    models.py → tables
    routes.py / views → @app.route functions
    templates/ → Jinja HTML
    static/ → css, images
    instance/*.db → SQLite

    Ek route explain karne ka template:
    1) URL + methods 2) Auth/role check 3) Form/query se data 4) Business rule (duplicate, slots) 5) db.session 6) render ya redirect

    Example GET+POST same route: GET form, POST save.
    Data HTML se: form name= → request.form. Data HTML ko: render_template(..., items=query).
    Nayi .py file: import karke use karo, warna Flask ko pata nahi. Folder rename: imports/paths/templates check.

  11. 11
    Explain project components/modules.
    Times asked 1
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  12. 12
    Explain all libraries/packages used in the project.
    Times asked 1
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  13. 13
    Show frontend and backend folders in your project.
    Times asked 1
    Official solution

    SimpleFrontend user jo dekhta/click karta hai, Backend server logic + database.

    Frontend: HTML, CSS, Bootstrap, Jinja templates, thoda JS. Browser pe chalta hai.
    Backend: Flask routes, SQLAlchemy, session, validation. Python server pe.
    Data flow: form POST → Flask request.form → DB save → render_template/redirect → HTML dikha.
    MAD1 typical stack: Flask + Jinja + SQLAlchemy + SQLite + Bootstrap.

  14. 14
    Explain User model.
    Times asked 1
    Official solution

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

    Viva mein file khol ke bolo:
    1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
    2) Har table ka kaam 1 line
    3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
    4) Constraints: unique email, nullable, default status

    Example skeleton

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True, nullable=False)
        role = db.Column(db.String(20), default='user')
        bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')

    ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
    Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.

  15. 15
    Explain all models/tables.
    Times asked 1
    Official solution

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

    Viva mein file khol ke bolo:
    1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
    2) Har table ka kaam 1 line
    3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
    4) Constraints: unique email, nullable, default status

    Example skeleton

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True, nullable=False)
        role = db.Column(db.String(20), default='user')
        bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')

    ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
    Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.

  16. 16
    Explain the complete application.
    Times asked 1
    Official solution

    SimpleDemo script pehle se practice karo, 5-7 minute, saari roles.

    Suggested flow

    1) Register/login user 2) Admin login — CRUD 3) Approval/blacklist 4) Booking/apply 5) Search 6) Validation edge (slots 0, duplicate) 7) Logout
    Bolte-bolte dikhao: 'Yahan overbooking rokta hoon'. Code tab kholna jab poochhein.
    Crash ho to debug calmly: terminal error, typo, DB path.
    Mandatory features skip mat karna — examiner list tick karta hai.

  17. 17
    Explain database schema.
    Times asked 2
    Official solution

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

    Viva mein file khol ke bolo:
    1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
    2) Har table ka kaam 1 line
    3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
    4) Constraints: unique email, nullable, default status

    Example skeleton

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True, nullable=False)
        role = db.Column(db.String(20), default='user')
        bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')

    ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
    Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.

  18. 18
    Explain the purpose of every table.
    Times asked 1
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  19. 19
    Explain database relationships.
    Times asked 4
    Official solution

    Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.

    1) Yeh file/line kya role hai (model / route / template / config)?
    2) Input kahan se aata hai (form, URL <id>, session, JSON)?
    3) DB pe kya query/write?
    4) Output kya (render_template / redirect / jsonify)?

    Example

    @app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.

    Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.

  20. 20
    Add a new row in the database and show it in the application.
    Times asked 1
    Official solution

    Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.

    1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
    2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
    3) Template: input name=... Jinja se {{ obj.field }} display.
    4) Rule: duplicate, range, role check backend pe.

    Example naya field 'city':

    user.city = db.Column(db.String(50))
    user.city = request.form.get('city')
    <input name='city'>  ...  {{ user.city }}
  21. 21
    What happens if an empty table is rendered?
    Times asked 1
    Official solution

    Definition style question: 1 line simple Hinglish + project example + mini code.

    Template'X ka kaam Y hai. Mere project mein Z jagah use hua.'

    Example'Session login state rakhta hai. session[user_id]=u.id login pe, logout pe session.clear().'

    Agar topic Vue/Celery/Redis ho aur project mein nahi hai to sach bolo, theory example do.

  22. 22
    Explain ORM (practical explanation, not definition).
    Times asked 1
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  23. 23
    Advantages of ORM.
    Times asked 5
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  24. 24
    Disadvantages of ORM.
    Times asked 2
    Official solution

    SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.

    Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
    ORM se: User.query.get(5) ya db.session.get(User, 5)

    Example model

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True)

    FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.

    Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.

    MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.

  25. 25
    Explain frontend validation.
    Times asked 1
    Official solution

    SimpleValidation galat data rok ti hai — frontend turant, backend must.

    Frontend: required, min='18', maxlength='8', pattern='(?=.*[A-Z]).{8,}'
    Backend example:

    pwd = request.form.get('password','')
    if len(pwd) < 8 or not re.search(r'[A-Z]', pwd) or not re.search(r'[0-9]', pwd):
        flash('Weak password')

    Haan, regex se password rules ho sakte hain.
    Age 18-99, date >= today, slots <= 30 and > 0, confirm password == password, email '@' .
    Duplicate username: User.query.filter_by(email=email).first() or unique=True catch IntegrityError.
    Past date: if date < date.today(): reject. Negative slots: if slots < 0: reject; book pe available > 0 check.

  26. 26
    Explain backend validation.
    Times asked 1
    Official solution

    SimpleValidation galat data rok ti hai — frontend turant, backend must.

    Frontend: required, min='18', maxlength='8', pattern='(?=.*[A-Z]).{8,}'
    Backend example:

    pwd = request.form.get('password','')
    if len(pwd) < 8 or not re.search(r'[A-Z]', pwd) or not re.search(r'[0-9]', pwd):
        flash('Weak password')

    Haan, regex se password rules ho sakte hain.
    Age 18-99, date >= today, slots <= 30 and > 0, confirm password == password, email '@' .
    Duplicate username: User.query.filter_by(email=email).first() or unique=True catch IntegrityError.
    Past date: if date < date.today(): reject. Negative slots: if slots < 0: reject; book pe available > 0 check.

  27. 27
    Which validation is more important?
    Times asked 1
    Official solution

    SimpleFrontend validation UX ke liye, Backend validation security ke liye. Dono chahiye, backend zyada important hai.

    Frontend: HTML required, minlength, JS/regex. User ko turant error dikhta hai. Bypass easy (DevTools / Postman).
    Backend: Flask route mein checks. Asli security yahi hai. Hacker frontend skip karke POST bhej sakta hai.

    Example frontend

    <input type='number' min='18' max='99' required>

    Example backend

    age = int(request.form.get('age') or 0)
    if age < 18 or age >= 100:
        flash('Invalid age')
        return redirect(url_for('register'))

    Viva line'Frontend convenience hai, backend source of truth hai.'

  28. 28
    Show validation implementation in your code.
    Times asked 1
    Official solution

    SimpleValidation galat data rok ti hai — frontend turant, backend must.

    Frontend: required, min='18', maxlength='8', pattern='(?=.*[A-Z]).{8,}'
    Backend example:

    pwd = request.form.get('password','')
    if len(pwd) < 8 or not re.search(r'[A-Z]', pwd) or not re.search(r'[0-9]', pwd):
        flash('Weak password')

    Haan, regex se password rules ho sakte hain.
    Age 18-99, date >= today, slots <= 30 and > 0, confirm password == password, email '@' .
    Duplicate username: User.query.filter_by(email=email).first() or unique=True catch IntegrityError.
    Past date: if date < date.today(): reject. Negative slots: if slots < 0: reject; book pe available > 0 check.

  29. 29
    Can a Flask route/endpoint return a Boolean value?
    Times asked 1
    Official solution

    Definition style question: 1 line simple Hinglish + project example + mini code.

    Template'X ka kaam Y hai. Mere project mein Z jagah use hua.'

    Example'Session login state rakhta hai. session[user_id]=u.id login pe, logout pe session.clear().'

    Agar topic Vue/Celery/Redis ho aur project mein nahi hai to sach bolo, theory example do.

  30. 30
    What is Flask?
    Times asked 6
    Official solution

    SimpleFlask Python ka micro web framework hai — routes, templates, request/response handle karta hai.

    from flask import Flask
    app = Flask(__name__)
    @app.route('/')
    def home():
        return 'Hello'
    app.run(debug=True)  # default port 5000

    __name__ se Flask ko pata chalta hai templates/static kahan se load karni hai. Hataoge to resource paths toot sakte hain.

    Faydesimple, flexible, MAD1 syllabus. Nuksaan: bade features (admin, auth) khud jodne padte hain.

    app.run() development server start karta hai. Production mein gunicorn/waitress.
  31. 31
    Difference between Python HTTP and Flask HTTP methods.
    Times asked 1
    Official solution

    SimpleHTTP methods batate hain request kya karna chahti hai. Common: GET POST PUT PATCH DELETE.

    GETread/fetch. Safe, URL se. Page kholna, search.

    POSTcreate/submit. Form, login.

    PUTpoora replace/update. Idempotent.

    PATCHpartial update.

    DELETEhataana.

    HEAD: sirf headers. OPTIONS: CORS preflight.

    Flask: @app.route('/x', methods=['GET','POST'])
    Agar methods na likho to default sirf GET.
    HTML form native sirf GET/POST. PUT/DELETE JS/fetch ya hidden _method se.
    GET se data fetch ho sakta hai, create nahi karna chahiye. POST se theoretically fetch ho sakta hai lekin cache/semantics galat.
    DELETE fetch ke liye nahi. GET POST ka kaam officially nahi karta — side effects GET pe mat rakho.

  32. 32
    How is data sent from client to server?
    Times asked 1
    Official solution

    Simple flow: Browser → Route (controller) → Model/DB → phir template (view) → Browser.

    Submit example:
    1) HTML form POST /register, name='email'
    2) register() request.form.get('email')
    3) User(email=...) ; db.session.add; commit
    4) redirect dashboard
    5) dashboard query + render_template
    6) Jinja {{ user.email }} / {% for %}

    GET search: /search?q=flask → request.args.get('q') → filter ilike → template list.
    JSON API: jsonify, frontend fetch().

  33. 33
    What is AJAX?
    Times asked 4
    Official solution

    SimpleAJAX page reload ke bina server se data laata hai. Aaj kal fetch() + Promises.

    fetch('/api/users').then(r => r.json()).then(data => { ... })
    Promise: future value (pending/fulfilled/rejected). fetch Promise return karta hai.
    SPA (Vue): ek HTML, baaki routes JS se, partial update. MAD1 generally full page render (Jinja) — submit pe poora refresh.
    async/await Promise ka clean syntax.

  34. 34
    Name some JavaScript frameworks.
    Times asked 1
    Official solution

    SimpleJavaScript browser pe chalta hai — click, validation, Chart.js, Bootstrap modal.

    Frameworks: Vue, React, Angular. MAD1 mein vanilla JS / Bootstrap JS kaafi.
    Modal: popup overlay. Bootstrap: data-bs-toggle='modal' data-bs-target='#id'.
    Flash hide: setTimeout se alert remove. Form submit confirm: onsubmit='return confirm(...)'.
    Agar project mein JS kam hai to sach bolo, theory example do.

  35. 35
    Types of frontend/client-side storage.
    Times asked 1
    Official solution

    Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:

    Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.

    Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.

    Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
    Live change maange to: related model → route → template, phir browser refresh karke dikhao.

    Example (generic create):
    obj = Model(name=request.form.get('name'))

    db.session.add(obj); db.session.commit()
    return redirect(url_for('list_view'))
  36. 36
    How many ways can data be stored in the browser?
    Times asked 1
    Official solution

    Definition style question: 1 line simple Hinglish + project example + mini code.

    Template'X ka kaam Y hai. Mere project mein Z jagah use hua.'

    Example'Session login state rakhta hai. session[user_id]=u.id login pe, logout pe session.clear().'

    Agar topic Vue/Celery/Redis ho aur project mein nahi hai to sach bolo, theory example do.

  37. 37
    What is Version Control System (VCS)?
    Times asked 2
    Official solution

    SimpleVCS history track karta hai, Git ek distributed VCS hai.

    VCS: kaun kab kya change kiya, rollback, branches. Example: Git, SVN.
    Git distributed: har developer ke paas poori copy (commits) hoti hai. Central GitHub sirf remote hosting hai, lekin Git ka model distributed hai.
    SVN centralized: bina server ke history nahi.

    Commands: git status (kya dirty hai), git branch / git checkout -b feature (nayi branch), git rm --cached file (track band, file rahe).
    Fayda: collaboration, backup, experiment branches, viva GitHub collaborator check.
    Git ke bina bhi files rakh sakte ho, lekin history/merge nahi.

  38. 38
    Another name for Version Control System.
    Times asked 1
    Official solution

    SimpleVCS history track karta hai, Git ek distributed VCS hai.

    VCS: kaun kab kya change kiya, rollback, branches. Example: Git, SVN.
    Git distributed: har developer ke paas poori copy (commits) hoti hai. Central GitHub sirf remote hosting hai, lekin Git ka model distributed hai.
    SVN centralized: bina server ke history nahi.

    Commands: git status (kya dirty hai), git branch / git checkout -b feature (nayi branch), git rm --cached file (track band, file rahe).
    Fayda: collaboration, backup, experiment branches, viva GitHub collaborator check.
    Git ke bina bhi files rakh sakte ho, lekin history/merge nahi.

  39. 39
    Difference between Git and VCS.
    Times asked 1
    Official solution

    SimpleVCS history track karta hai, Git ek distributed VCS hai.

    VCS: kaun kab kya change kiya, rollback, branches. Example: Git, SVN.
    Git distributed: har developer ke paas poori copy (commits) hoti hai. Central GitHub sirf remote hosting hai, lekin Git ka model distributed hai.
    SVN centralized: bina server ke history nahi.

    Commands: git status (kya dirty hai), git branch / git checkout -b feature (nayi branch), git rm --cached file (track band, file rahe).
    Fayda: collaboration, backup, experiment branches, viva GitHub collaborator check.
    Git ke bina bhi files rakh sakte ho, lekin history/merge nahi.

  40. 40
    Difference between Cell Padding and Cell Spacing.
    Times asked 3
    Official solution

    Simplecellpadding cell ke andar gap, cellspacing cells ke beech gap.

    cellpadding: text aur cell border ke beech khali jagah (andar).
    cellspacing: do cells ke beech khali jagah (bahar).

    Old HTML: <table cellpadding='10' cellspacing='5'>
    Modern CSS:
    td { padding: 10px; } /* padding */
    table { border-spacing: 5px; } /* spacing */

    border-collapse: collapse spacing hata deta hai, borders mil jaate hain.

  41. 41
    Difference between url_for() and redirect().
    Times asked 2
    Official solution

    Simpleurl_for sirf URL string banata hai, redirect us URL pe browser ko bhejta hai.

    url_for('home') → '/home' (function name se URL nikalta hai)
    redirect(url_for('home')) → browser ko /home pe le jaata hai

    Example

    return redirect(url_for('dashboard'))  # sahi
    return redirect('/dashboard')         # hardcode, route change pe toot jaayega
    
    Agar redirect se url_for hata do to khud path string dena padega: redirect('/dashboard').
    Agar url_for('home') ko url_for('home_page') kar do aur home_page naam ka function nahi hai to BuildError aayega.

    url_for ko function ka naam chahiye, URL path nahi.

  42. 42
    What is Bootstrap?
    Times asked 5
    Official solution

    SimpleBootstrap CSS/JS framework — ready classes se responsive UI.

    <button class='btn btn-primary'>Save</button>

    Red button: btn btn-danger. Navbar, cards, grid (row/col).
    CDN: <link href='https://cdn.jsdelivr.net/npm/bootstrap@5...'> — internet na ho to style toot sakti hai. Local copy safer viva ke liye.
    CSS vs Bootstrap: Bootstrap faster consistent UI, custom CSS fine-control. Dono saath use ho sakte hain.
    aria-current='page' accessibility — current nav item screen readers ko.
    CDN fayda: cache, quick setup. Nuksaan: offline, privacy, version lock.

  43. 43
    Why did you use Bootstrap instead of CSS?
    Times asked 1
    Official solution

    SimpleBootstrap CSS/JS framework — ready classes se responsive UI.

    <button class='btn btn-primary'>Save</button>

    Red button: btn btn-danger. Navbar, cards, grid (row/col).
    CDN: <link href='https://cdn.jsdelivr.net/npm/bootstrap@5...'> — internet na ho to style toot sakti hai. Local copy safer viva ke liye.
    CSS vs Bootstrap: Bootstrap faster consistent UI, custom CSS fine-control. Dono saath use ho sakte hain.
    aria-current='page' accessibility — current nav item screen readers ko.
    CDN fayda: cache, quick setup. Nuksaan: offline, privacy, version lock.

  44. 44
    What is JSON?
    Times asked 1
    Official solution

    SimpleJSON = JavaScript Object Notation — data exchange ka text format.

    {"name": "Ram", "age": 20}
    APIs, localStorage, Chart.js data. Python dict ↔ JSON.
    Structured data: tables, fixed schema (SQL). Unstructured: images, logs, free text. JSON semi-structured.
    SQL structured relational. Mongo unstructured/document.

  45. 45
    Can an API return a Boolean value?
    Times asked 1
    Official solution

    SimpleAPI = Application Programming Interface — do systems predefined rules se baat karti hain. REST API HTTP + JSON use karti hai.

    Controller/route HTML bhi return kar sakta hai. REST API generally JSON return karti hai, frontend alag ho (Vue/Postman).

    Example

    @app.route('/api/users/<int:id>')
    def get_user(id):
        u = User.query.get_or_404(id)
        return jsonify(id=u.id, name=u.name)

    MAD1 HTML apps mein 'API' kabhi-kabhi routes ko hi keh dete hain. Agar Vue nahi to bolo: server-rendered Flask, JSON APIs optional.
    Boolean return: technically jsonify(True) ho sakta hai, lekin meaningful JSON object better. Flask view None return kare to error.
    Test: Postman se GET/POST.
    Parsing: request.get_json() body se, request.args query se.

  46. 46
    Why is SQL verbose?
    Times asked 1
    Official solution

    Definition style question: 1 line simple Hinglish + project example + mini code.

    Template'X ka kaam Y hai. Mere project mein Z jagah use hua.'

    Example'Session login state rakhta hai. session[user_id]=u.id login pe, logout pe session.clear().'

    Agar topic Vue/Celery/Redis ho aur project mein nahi hai to sach bolo, theory example do.

  47. 47
    Change background color.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  48. 48
    Change background image.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  49. 49
    Add background image with gradient.
    Times asked 1
    Official solution

    Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.

    Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
    Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.

    Example

    <button class='btn btn-success' style='background:#16a34a'>Book</button>

    Pehle browser inspect karke class dhundo, phir template mein change karke refresh.

  50. 50
    Change navbar color.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  51. 51
    Change button color.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  52. 52
    Change font/text color.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  53. 53
    Change specific object colors.
    Times asked 1
    Official solution

    Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.

    Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
    Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.

    Example

    <button class='btn btn-success' style='background:#16a34a'>Book</button>

    Pehle browser inspect karke class dhundo, phir template mein change karke refresh.

  54. 54
    Move navbar from top to bottom.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  55. 55
    Move navbar to the middle/bottom of the page.
    Times asked 1
    Official solution

    Simpleexaminer UI tweak maangta hai — CSS class ya inline, instantly dikhao.

    Button color: <button class='btn btn-success'> ya style='background:#22c55e;color:#fff'
    Navbar: navbar-dark bg-success / style='background:yellow' / fixed-bottom se neeche.
    Center: .wrap { display:flex; justify-content:center; align-items:center; min-height:100vh; }
    text-align:center heading ke liye. Bootstrap: d-flex justify-content-center, mx-auto, text-center.
    Hover: .btn:hover { opacity:0.8; transform:scale(1.02); }
    Half width: class='col-6' ya width:50%. Row→column: flex-direction:column / col-12 stack.
    Login card: card shadow p-4 mx-auto (max-width:400px).
    Table header green: th { background:green; color:white; } Bold column: td:nth-child(2){font-weight:bold}
    Box shadow: box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    Background image: body { background: url('/static/bg.jpg') center/cover; }
    Reset button: <button type='reset'>Clear</button>
    Move button: ms-auto / position / flex order.
    Jinja dashboard heading: <h1>{{ user.name }}'s Dashboard</h1>

  56. 56
    Change dashboard colors (background, blocks, text).
    Times asked 1
    Official solution

    Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.

    Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
    Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.

    Example

    <button class='btn btn-success' style='background:#16a34a'>Book</button>

    Pehle browser inspect karke class dhundo, phir template mein change karke refresh.

  57. 57
    Change login page background.
    Times asked 1
    Official solution

    Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.

    Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
    Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.

    Example

    <button class='btn btn-success' style='background:#16a34a'>Book</button>

    Pehle browser inspect karke class dhundo, phir template mein change karke refresh.

  58. 58
    Change input box colors.
    Times asked 1
    Official solution

    Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.

    Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
    Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.

    Example

    <button class='btn btn-success' style='background:#16a34a'>Book</button>

    Pehle browser inspect karke class dhundo, phir template mein change karke refresh.

  59. 59
    Modify the User model and reflect the changes.
    Times asked 1
    Official solution

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

    Viva mein file khol ke bolo:
    1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
    2) Har table ka kaam 1 line
    3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
    4) Constraints: unique email, nullable, default status

    Example skeleton

    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        email = db.Column(db.String(120), unique=True, nullable=False)
        role = db.Column(db.String(20), default='user')
        bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')

    ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
    Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.

  60. 60
    Add a new database row and display it.
    Times asked 1
    Official solution

    Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.

    1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
    2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
    3) Template: input name=... Jinja se {{ obj.field }} display.
    4) Rule: duplicate, range, role check backend pe.

    Example naya field 'city':

    user.city = db.Column(db.String(50))
    user.city = request.form.get('city')
    <input name='city'>  ...  {{ user.city }}
  61. 61
    Manually create a new user in the database.
    Times asked 1
    Official solution

    Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.

    1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
    2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
    3) Template: input name=... Jinja se {{ obj.field }} display.
    4) Rule: duplicate, range, role check backend pe.

    Example naya field 'city':

    user.city = db.Column(db.String(50))
    user.city = request.form.get('city')
    <input name='city'>  ...  {{ user.city }}
  62. 62
    Add alcohol category/products.
    Times asked 1
    Official solution

    Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.

    1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
    2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
    3) Template: input name=... Jinja se {{ obj.field }} display.
    4) Rule: duplicate, range, role check backend pe.

    Example naya field 'city':

    user.city = db.Column(db.String(50))
    user.city = request.form.get('city')
    <input name='city'>  ...  {{ user.city }}
  63. 63
    Aadhaar upload for alcohol purchase.
    Times asked 1
    Official solution

    Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:

    Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.

    Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.

    Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
    Live change maange to: related model → route → template, phir browser refresh karke dikhao.

    Example (generic create):
    obj = Model(name=request.form.get('name'))

    db.session.add(obj); db.session.commit()
    return redirect(url_for('list_view'))
  64. 64
    Verify user age (24+) before adding alcohol to cart.
    Times asked 1
    Official solution

    Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:

    Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.

    Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.

    Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
    Live change maange to: related model → route → template, phir browser refresh karke dikhao.

    Example (generic create):
    obj = Model(name=request.form.get('name'))

    db.session.add(obj); db.session.commit()
    return redirect(url_for('list_view'))
Maintaine By Lazy IITians Team + IITM BS students Regualr for More data you have