Generally calm and student-friendly. Described as nice/helpful by students
Questioning style
Often probes theory concepts. Expects you to know and possibly modify your project code. May dig into database/models
Preparation tips
• be relaxed ... know your app and why you have done things in a particular way
• If you know about your code and the things used from bootstrap or somewhere else then you are good to go.
• See the previous questions sheet, GPT the answers, modify them for youself and use them.
• Be ready with the theory and some core concepts like security features
• Bs ye gform question sb pdh lo aur apne code ke bare mai pta hona chahiye
• Explain your database and make your demo in an efficient manner. if you take more time for any code change demo that he asks you to do, u can reduce the theory questions ;)
• He is super cool😎. Prepare all the questions in this response sheet.
• All proctors are amazing, just go through your project and database properly and why u are using them, what unique things that they are possesing and all the best!
• The proctor is very patient, and cool. He didn't ask to complete the code modification in certain timeframe. Take your time. He kept asking, and I kept answering. He was impressed. At last, he stopped, and praised me.
So, the moral of the story is:
1. You should know each and every part of your code, like your child.
2. The proctor will definitely ask for modifications in your code.
3. Theory - REST APIs, Models, Relationships are must.
• just cool prepare theory questions in detail the proctor asking what else if we give one line ans.
• Proctor was chill just practice these sheet questions
• Be Relaxed . Proctor is cool. . Know what you have done in your project. Good Luck ❤️
• Although viva was good and proctor was great 👍🏻
• Prepare all questions or ur proctor because they ask many repeated questions.But if ur luck is not good then proctor may change 🥲. But still focus first on ur proctor.
• He is very patient. No time limit for code changes
• the code changes were really difficult for me my mind was blank
but the proctor was very kind and humble he tried to helpe me
just chill
and practice on your own code
implenent all the changes that is asked in this sheet on your code for practice
• please refer to whatever I have written in Questions asked by the Viva examiner portion.
• while giving your demo, try to explain some parts of your code too and prepare the questions from the sheet, and while explaining your demo give answers to these common questions by yourself like I explained MVC while giving my demo itself which creates a good impression
• Maintain your calm, he will test your knowledge in depth and why you've done whatever you've done, the sheet helps, know your code REALLY WELL
• Seemed to be interested in frontend. Even though I had not used some frontend features, still asked me about them.
• This feedback form is the best resource
relax and go though the que asked in the past
initially I though this would be pretty difficult,
but the proctors are awesome and there are alot of repeated ques for this form
All the best!
also please contribute to this form once your done
• He was friendly and patient, be clear with the concepts.
• Great proctor , actually tested on things which i think matter and alternative approached were also discussed( like regex which i knew about but didnt know how to implement in code) he gives you the time to do your thing
• If you get this proctor, your viva will be very easy.
• Very patient and will give you time to think. Just know your code well.
• sir is giving a very good time to think while code changes like he gave almost 20-25 min for code change . for theory questions - he is repeating the same questions from the sheet,
he is very patient and my viva has completed before 45 minutes
• Sir is amazing. Remain calm and just thoroughly explain everything. He listens well and lets you speak. The questions were all from the sheet. He said I did well except the one coding question (messed up CSS alignment to center cuz I forgot).
• He was a chill proctor and asked easier question none of it was out of the box
Tips for this examiner: 70 percent theory based so just revise all concepts and communicate well as he gives you time to explain everything you know in detail and then ask next question from your explanation so be mindful about the terms you use, don't act smart by using heavy terms you don't know. If you can't able to give any answer just tell directly he will change question but don't stretch any topic unneccesary, just take your time and be confident
Student reviews
HarshMAD1
He was a chill proctor and asked easier question none of it was out of the box
Questions remembered
First asked to demonstrate all the features
Then told me register and give permission and all that went on for 25 minutes then he asked me make changes in code which was to not allow the negative number and no. Starting from 0 and limit the contact length to 10
Asked me to explain first 35 line of app.py since there were not enough lines he asked me to explain routed for admin
Then he asked some theory questions
Explain the db tables and er diagram
Primary and foreign key
Null and not null concept
What did I learn in this project
My viva ended in 50 minutes
AMAD1
Sir is amazing. Remain calm and just thoroughly explain everything. He listens well and lets you speak. The questions were all from the sheet. He said I did well except the one coding question (messed up CSS alignment to center cuz I forgot).
Questions remembered
Asked to show ID and introduce myself
Do the demo and go through the application
Go through models.py and explain the models
Change the background image
Align the text/form to the center
Add password validation (min 8 and max 8 characters, needs uppercase and digit)
What is bootstrap
What is REST API and why do we use it
What is MVC
What is primary key and unique key
What is CSS
What is null and non-null values
dreamerMAD1
sir is giving a very good time to think while code changes like he gave almost 20-25 min for code change . for theory questions - he is repeating the same questions from the sheet, he is very patient and my viva has completed before 45 minutes
Questions remembered
level2 viva :-
- full demo
- explain your database models
- explain the first 30 lines of app.py with imports
coding :
- delete an specific entry
- delete all entries by single button (delete all) - delete all students by admin
theory :
- what is session (also how did you ensure session with rbac)and secret key
- http requests types
- what is bootstrap
- diff between tuple and dictionary
- diff between unique key and primary key
- what is restAPI
Pablo EscobarMAD1
Shared viva questions from response sheet: Level3 13....nice proctor but very less attentive....after starting demo he may leave meeting and join after 10 minutes...then you perform whatever you want...can ask you for basic routes...some basic questions(see in gsheet it's repeated)....
Questions remembered
Level3 13....nice proctor but very less attentive....after starting demo he may leave meeting and join after 10 minutes...then you perform whatever you want...can ask you for basic routes...some basic questions(see in gsheet it's repeated)....
AnonymousMAD1
Very patient and will give you time to think. Just know your code well.
Questions remembered
to show student Id
demo of the app
explain all models / er diagram
have done password validation? I didn't do asked to code for both frontend and backend password validation and show it's working
ask some theory questions - primary vs unique key , queue and stack , MVC and some more theory questions I didn't remember.
explain all imports
Sheet responseMAD1
If you get this proctor, your viva will be very easy.
Questions remembered
Level2
Asked me to introduce myself?
Explain problem statement of the project.
Download the project and explain each functionality (I explained for about 20 minutes and he didn't interrupt.
he asked to add criterion in password, should be atleast 12 characters, one uppercase, one lowercase, one digit and atleast one special character.
Then asked theory questions like. 5.1 GET vs PUT 5.2 List vs Tuple 5.3 Cookies vs Session. 5.4 what are RestAPI's.
Then asked me to explain all the import statements, why have I imported that, what it is and where I have used it in my project.
Ended the viva saying, if you have any question to ask. My viva lasted for about 45 minutes.
Harnoor SinghMAD1
Great proctor , actually tested on things which i think matter and alternative approached were also discussed( like regex which i knew about but didnt know how to implement in code) he gives you the time to do your thing
Questions remembered
er diagram explain kro apne proj ka. 2. password validation implement kro 3. explain all packages and funcyions imported at start of app.py and there uses 4. 5 disadvantages of sqlAlchemy (orm) 6. explain company templates 7. explain models.py 8. what is session 9 . what are crud 10. uses of sqlalchemy (also) 11. had to run the aplication also and explain everything 12. explain the password validation logic (and whether i can use regex or not) 13. what i learnt from the project 14. introduction (at start) 15 . dont remember else
Sheet responseMAD1
He was friendly and patient, be clear with the concepts.
Questions remembered
Asked to show id, do checksum or download from dashboard
Then asked to execute all the functionality of the web application (just explain in detail without missing any points)
Then asked to set certain restrictions for password like len>8, a special char,uppercase, lowercase, digit if only has these should be able to login or register and also explain the methodology used.
Asked to explain the models used, with db diagram
Theory questions:
What is bootstrap
Diff btw list and tuple
Diff btw http and https
Diff btw primary and unique key,etc
e7MAD1
This feedback form is the best resource relax and go though the que asked in the past initially I though this would be pretty difficult, but the proctors are awesome and there are alot of repeated ques for this form All the best! also please contribute to this form once your done
Questions remembered
MAD1 viva 2 (Double-click if full note not viewable) first the examiner asked me to show my Id card then he asked to give INTRO about me and the project to which I asked permission to download and open the submission which had project report, then I gave my intro along the project report then explain er diagram which I had in my project report then I gave the app demo, during which I was talking about for ~20min, he didn't ask que while demo, but after demo, he noticed and asked me, does the password has any validation? Then he made me to code it, CODE: Validate the password so that it has minimum 10 letter/char (used minlength [html bootstrap]) and at least one upper, lower, digit and special character.(used backend validation) THEORY : then he asked few theory ques one after another , like rapid-fire(it was fun) (these are not in order)
what is bootstrap (I've used bootstrap, he may ask this even if you don't)
PUT vs GET
list vs tuple
MVC (Model-View-Control)
finally what are the things I've learned after all that the examiner asked, if I have any ques, to which I asked for feedback, which I felt was amazing, he ask if my app had any thing that no other app in world has, (I said no) , so next time I have to make something that sets me apart from other in market. total viva time ~45-50 mins all the best!
Rakesh VajrapuMAD1
Shared viva questions from response sheet: Just now completed MAD-I Level-2 VIVA Proctor ID: Level 3_13 Feedback of Proctor: He's a very patient and nice proctor ever seen and doesn't over-complicate the students. He asked only normal most repeated questions for all VIVA's. Asked easy code change implementation. God has given me this proctor, because I got MAD-II Level-I Proctor very strict and he almost failed me even I answered all th...
Questions remembered
Just now completed MAD-I Level-2 VIVA Proctor ID: Level 3_13 Feedback of Proctor: He's a very patient and nice proctor ever seen and doesn't over-complicate the students. He asked only normal most repeated questions for all VIVA's. Asked easy code change implementation. God has given me this proctor, because I got MAD-II Level-I Proctor very strict and he almost failed me even I answered all the questions asked. What happened during Viva: Initially, I joined 5 mins late and he patiently waited. Asked Self-Introduction Asked Problem Statement and What was implemented in project? Asked for Demo -> I given demo for 18 minutes and displayed working of each functionality and explored each role. Code Change Question: My Admin Dashboard displays the count of Total Students, Total companies, total applications, total drives, total placed students displayed as cards. He asked me to create a table, consisting of same names as Category and another column as their values. Made a Table using HTML, connected Backend route, and copied-pasted same query retreival code 😅😂. I don't know he even seen it or not. Then, he asked me to make the data and the table center of the Webpage. Unable to make it into center as I am weak in remembering the CSS Properties and syntax. Theory questions asked:
What is Cookie?
What is difference between GET and PUT
What is ORM?
What is Database and how it is implemented?
What you learned from this project? Total Viva Time Taken: 48 minutes
Sheet responseMAD1
Seemed to be interested in frontend. Even though I had not used some frontend features, still asked me about them.
Questions remembered
Show ID card
Give introduction to yourself and your app
Explain all functionalities of your app
Run the app and give demo of all functionalities.
Show all models and explain them (columns, constraints, etc.)
What is MVC?
Asked what is bootstrap and it's use even though I had not used any bootstrap in my app.
Change background color on login page to background image.
HaklaMAD1
Shared viva questions from response sheet: He is chill; First he told to introduce myself; And asked to demonstrate
Questions remembered
He is chill
First he told to introduce myself
And asked to demonstrate
And tell to add an image in the background in login page.
And told to explain the app.py line by line in detail.
Then, ask a few theoretical questions like mvc, difference between list and tuples and where have u used, and differ get and put
Nahi bataungaMAD1
Shared viva questions from response sheet: Intro about you; Your learning from problem statement; Demo of project
Questions remembered
Intro about you
Your learning from problem statement
Demo of project
Explain code in app.py file
combine admin and user page sign in option
Create a button which can delete all lots together and show its working
Truncate vs drop in sql
Restapi meaning and use
Explain models file Will give you proper time, for coding, explanation etc.
Padhai me dhyan do...naam jan ke kya karogeMAD1
Shared viva questions from response sheet: He is a good proctor.; As long as you know your project, you can do well.; Asked for the demo initially.
Questions remembered
He is a good proctor.
As long as you know your project, you can do well.
Asked for the demo initially.
Code changes were to check if the password is more than 8 characters, had at least 1 upper and lower, and special case character.
Asked theory questions that are normally asked, such as mvc, tuple vs list, get vs put, Asked me to explain my models.py which I did in detail, also asked about the app.py few details.
IshitaMAD1
Maintain your calm, he will test your knowledge in depth and why you've done whatever you've done, the sheet helps, know your code REALLY WELL
Questions remembered
ID Verification
Introduction
Checksum
Explain the problem statement
App demo
Theory Questions (Not in Order):
Explain the database
What modules have you used? Explain in detail.
How can email validation be done?
What is MVC? Where is MVC in your code?
What is the difference between packages and modules?
while giving your demo, try to explain some parts of your code too and prepare the questions from the sheet, and while explaining your demo give answers to these common questions by yourself like I explained MVC while giving my demo itself which creates a good impression
Questions remembered
- he first asked me to give me the demo of the project
- then he asked me er diagram, but I didn't had er diagram of my project so I explained my models.py file
- the he asked me to bring the email label email box password label and password box all in the same line
- and then he asked me about bootstrap and its uses (since I was using bootstrap)
- then he asked me about primary key vs foreign key
- then he asked me about what is rest api
- then he asked me about HTTP vs HTTPS
Muhammad BilalMAD1
please refer to whatever I have written in Questions asked by the Viva examiner portion.
Questions remembered
Proctor was very calm and nice , he gave me much time to think about the question.He asked the following questions:
1.He asked me to add one more input field "city" in customer register page, which I did by adding attribute city in user table and changed customer register page and login route.
2.static vs dynammic web pages.
3.He asked me to add a background image behind my admin dashboard.
4.What is restful api?
5.What is bootstrap and its uses.
6.He asked me to create a table inside a table.
Matt MurdockMAD1
the code changes were really difficult for me my mind was blank but the proctor was very kind and humble he tried to helpe me just chill and practice on your own code implenent all the changes that is asked in this sheet on your code for practice
Questions remembered
Asked me to change the login function code in such a way that if an Users tries to login with incorrect password more than 3 times then the user's account should get locked for 24 hrs
asked me to add a delete function so that the admin can select the services and he should be able to delete the selected services
asked me to change the background image in theory he asked me primary key VS foreign Key http Vs https list and tuple and dictionary
Sheet responseMAD1
He is very patient. No time limit for code changes
Questions remembered
For Level2 :
1.Introduce yourself
2.demo
3.er diagram
Changes in code: do password validation where password should be min 12 length and should consist of a uppercase,lowercase,digit and special character
Viva:
1.list vs tuple
2.dictionary
3.rest api
Optimus primeMAD1
Prepare all questions or ur proctor because they ask many repeated questions.But if ur luck is not good then proctor may change 🥲. But still focus first on ur proctor.
Questions remembered
What is bootstrap
What is MVC ?show it in ur code
What is difference b/w foreign key and primary key
What is difference b/w primary key and unique key
What is difference in list and tuple
Make a reset button on login page which helps to update email and password
Change background
Change bar graph to pie chart
Piyush GuptaMAD1
Although viva was good and proctor was great 👍🏻
Questions remembered
Tell me about yourself
Demo of project
Change the button to link
Change admin page background image
What is http and https
What is protocol
What is get and post
Some 2-3 More question of these topic only
RishabhMAD1
Be Relaxed . Proctor is cool. . Know what you have done in your project. Good Luck ❤️
Questions remembered
Introduction
Demo
MVC
DIFFERENCE. Verification Validation
Authentication Authorization
Get Put
RESTApi
Flask
Explain your models
ORM
ORDER BY ,GROUP BY with eg
Code Changes. Frontend verification in username and password and some display related things.
Jaswanth Prasanna VMAD1
Proctor was chill just practice these sheet questions
Questions remembered
Explanation
Demo
About models.py
About app.py
About Er diagram
Viva question
Primary key
Css
Bootstrap
What is dictionary
Difference between list and tuple
MVC
Coding questions
Change your chart to pie chart
Change the color of your chart
Add a button called approve all professionals to approve all of them at once
Didn't ask me about api because he had network issues
KeerthiMAD1
just cool prepare theory questions in detail the proctor asking what else if we give one line ans.
Questions remembered
project demo
show your models
create a button called clear it will clear the form data username and password
what is dictionary
difference btw list and tuple
what is primary key and unique key
why we use bootstrap
Gayathri SrinivasanMAD1
Shared viva questions from response sheet: 1.Small intro abt me; 2.Quick demo of project; 3.Asked to implement few changes:
Questions remembered
1.Small intro abt me
2.Quick demo of project
3.Asked to implement few changes:
- Admin can only accept/reject professionals. He asked to add "Delete" button to delete professionals from the table.
- Asked for "Accept All", "Delete All" button in admin dashboard to accept/reject all professionals at once
To implement these changes it took 35-40 mins.
4.Questions about:
- Lists vs Tuple
- Dictionary
- Lambda function
- Get and Post requests
- What database tables I have used and relationship among them
Completed viva in 45-50 mins.
Dev GuptaMAD1
The proctor is very patient, and cool. He didn't ask to complete the code modification in certain timeframe. Take your time. He kept asking, and I kept answering. He was impressed. At last, he stopped, and praised me.
So, the moral of the story is: 1. You should know each and every part of your code, like your child. 2. The proctor will definitely ask for modifications in your code. 3. Theory - REST APIs, Models, Relationships are must.
Questions remembered
Go through your application.
Create a single login route for all types of users (admin, customers, and professionals).
Add a button on Admin dashboard that will redirect the admin to customer login page.
A brief about the relationships between Models.
Explain different python modules you created in your project (routes.py, models.py, utility.py, etc)
What is REST API.
Difference between Frontend and Backend. Which is more important?
What all tools/frameworks you used in developing your application.
What was the most difficult part for you when you were creating your application.
How dictionaries store data in memory.
How can you read key-value in a dictionary. (like dict.items(), or enumerate())
What is namespace. Are you using namespace in your code.
VaibhavMAD1
All proctors are amazing, just go through your project and database properly and why u are using them, what unique things that they are possesing and all the best!
Questions remembered
“Level 2 viva”
- College Id
- Checksum
- Self Intro
- Demonstration of your project
- Show me login page, login as admin
- Set a background image(my logo) particularly in a login box(which i have made)
- Bootstrap (i have not used bootstrap in project)
- Why you have not use bootstrap?
- Why you use css?, How you added?
- Explain your database? (+ER diagram)
- Why you have use sqllite?
- Why you have use Flask? (i have also said structure is bit easy)
- Show me your Structure and Explain?
- What you have learn from this project?
Lokabhiram ChintadaMAD1
He is super cool😎. Prepare all the questions in this response sheet.
Questions remembered
Into and Demo
Code changes ( change password constraint such that password should be in between 8 and 16, atleast one uppercase, one lowercase and one special character)
About model and ERD Diagram
What is MVC
What is RESTful API
Difference between list and tuple
Difference between GET and PUT
What is primary key
Difference between unique key and primary key
What did you learn from this project
Sheet responseMAD1
Explain your database and make your demo in an efficient manner. if you take more time for any code change demo that he asks you to do, u can reduce the theory questions ;)
Questions remembered
Restful API
List vs Tuple
What is Dictionary
Code change to implement user login from single page
Explain Database and relations
Primary key, Unique Key
http vs https
session vs cookies
authentication vs authorisation
Ripunjay KumarMAD1
Bs ye gform question sb pdh lo aur apne code ke bare mai pta hona chahiye
Questions remembered
REST Api
Get Vs Put
Asked me to implement search functionality(So I should be able to search edu1 edu2 edu3 pr edu1234 but not sectionedu when I search for edu )
Explain database (Aisa explain Kiya ki unhe question krne ka mauka hi nhi mila)
Bhavya PatelMAD1
Be ready with the theory and some core concepts like security features
Questions remembered
Intro, demo
explain your model and constraint on it Code change
what if hacker hacks your database? Implement password security feature
add delete button to remove a particular search result
change port to 8000
what change do you need to make if you want want to run your app on linux/mac
add constraints so that user makes strong password Theory
get/put/post
MVC
restful API
what are session and cookies
authentication vs authorisation. How have you implemented authorisation ?
HarshMAD1
See the previous questions sheet, GPT the answers, modify them for youself and use them.
Questions remembered
Intro Detailed demo of proj
Tuple vs Dictionary
What is index
Database explanation
Why use Bootstrap
How have I implemented Security in the site
What is try and catch
Code - how to deal if user searches for * after initial text like - 'hap*'
VaradMAD1
If you know about your code and the things used from bootstrap or somewhere else then you are good to go.
Questions remembered
Checksum
Demo
Change Rating from radio button to the stars, (that of Amazon like)
Explain Models
Explain Controllers
List and Tuple difference
What and Why primary keys
What and Why Bootstrap
AKMAD1
be relaxed ... know your app and why you have done things in a particular way
Questions remembered
intro yourself and show checksum
demo the app
demonstrate specific functionality Questions
make some changes (in admin page .. make a button to log into user. When i said cannot be done due to security .. he said make a button to route to user login. I demonstrated that
what challenges did you face in making the app?
why flask - benefits
difference between 2 tier / 3 tier apps (i spoke about client-server and MVC models)
explain MVC
show your database and what constraints are there in that. explain
REST APIs .. why used and advantages
static vs dynamic pages
What all types of testing you did and why? what apart from unit testing? PLEASE NOTE - questions are not provided in the order he asked.
DhairyMAD1
Shared viva questions from response sheet: tell me about yourself; Demo; Create a discount redeem form in or before checkout
Questions remembered
tell me about yourself
Demo
Create a discount redeem form in or before checkout
Explain Model
Explain code in route.py
What is bootstrap, and use
Rest api
What is class in bootstrap
Primary key vs foreign key this is all I can recall,
Rituparno SenMAD1
Shared viva questions from response sheet: My viva was around 45 min; The mentor first asked to give a short intro; Then asked what was my understanding of the problem statement
Questions remembered
My viva was around 45 min
The mentor first asked to give a short intro
Then asked what was my understanding of the problem statement
Went on to see demo
Checked every functionality thouroughly
Asked to make changes in my code so that one can apply a promo code or get a special discount if purchased items are above a certain threshold
Asked question regarding apis ? What is rest ?
Some questions related to response codes
Some questions related to database
Why we use sqlite?
What are some differences between sqlite and MySQL etc.
Overall the proctor is very patient and cool
Sheet responseMAD1
Shared viva questions from response sheet: Short introduction; what you understand from the problem statement; What Libraries used
Questions remembered
Short introduction
what you understand from the problem statement
What Libraries used
What is bootstrap and how did you used it
implement a Bootstrap Page
What are restful api
difference between authentication and authorization
what did you use for security and how
What is mvc and show in your code
what is CRUD
explain your application and demo
add delete functionality to delete orders
Rushabh ShahMAD1
Shared viva questions from response sheet: Difference between list and tuple,; Difference between primary key and foreign key
Questions remembered
Difference between list and tuple,
Difference between primary key and foreign key
Rithik AgarwalMAD1
Shared viva questions from response sheet: Detailed walkthrough of the app, then asked if I had any additional features.; Asked me to create a delete button where I can select multiple products to delete from a particular section.; Truncate user table through db browser
Questions remembered
Detailed walkthrough of the app, then asked if I had any additional features.
Asked me to create a delete button where I can select multiple products to delete from a particular section.
Truncate user table through db browser
Create a clear button in the login page upon click which the username and password will reset.
Explain why I have used certain codes and why was it necessary to the app.
What is bootstrap.
HTTP methods
Why Flask was used for the app (Advantages of using Flask)
Difference between lists and tuples.
What is mutable and immutable.
What is view in SQL. Chill proctor, was over in about 35 mins
Akhilesh SinghMAD1
Shared viva questions from response sheet: Viva finished in around 35 minutes.; Proctor asked about myself.; Asked what I understood from project statement.
Questions remembered
Viva finished in around 35 minutes.
Proctor asked about myself.
Asked what I understood from project statement.
Then go through demo.
I did not include search for admin. So he asked to add it.
All Http requests?
Response code 501?
Asked to change port of flask app.
Why Bootstrap?
SukaniyaMAD1
Shared viva questions from response sheet: Nice proctor gave time and space to think and answer; Bootstrap and its uses; Delete all user from sqlite database - DELETE FROM USER shows error as i have foreign key constraint on it.
Questions remembered
Nice proctor gave time and space to think and answer
Bootstrap and its uses
Delete all user from sqlite database - DELETE FROM USER shows error as i have foreign key constraint on it.
I have constraint not to have 2 users with the the same name in my code but forgot to handle it... He told me to handle then and there itself... It took some time but worked. He told me to think simple way for that. I don't know what that simple way is.
restful api - why you haven't used api in your application??
types of constraints in sql
what is null and not null?
exception handling and it types (totally blank about arithmetic exceptions as i haven't expect these questions)
what is flask advantages and disadvantages
i have used bar chart for summary. He told me to change it pie chart. He allow me to see the documentation. It worked 😀
jinja template and show that in your code
Griss Harris DennisMAD1
Shared viva questions from response sheet: About Project; Bootstrap; Difference between list and tuple
Questions remembered
About Project
Bootstrap
Difference between list and tuple
Session
what is restful api
Proctor asked me to create a button called reset on login page.on clicking the button after entering username and password, it deletes the username and password in the User table.
Invalid user_id insert nahi hoga. FK unique nahi hona zaroori — One-to-Many mein same user_id kai rows.
FK + PK same column: 1-1 sharing, jaise AdminProfile.id = FK to user.id.
Should FK always unique? Nahi. Tab One-to-One chahiye ho tab unique.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
10
Handle duplicate usernames using database constraints/validation.
Times asked1
Official solution
SimpleConstraints rules hain jo galat data rok te hain. Referential integrity FK valid parent ko point kare.
PK, FK, UNIQUE, NOT NULL, CHECK (age >= 18). ORM Column flags yahi map karte hain.
SQL = language tables se baat. Database organized data store.
SQL View: saved query, table jaisi dikhti hai, data copy nahi.
Cluster: kai DB servers together (HA/scale) — MAD1 SQLite single file.
Entity mapping: class User → table user, attributes → columns.
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
16
Delete a specific searched record.
Times asked1
Official solution
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
17
Add a discount/promo code feature during checkout.
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.
Add a button to redirect Admin to the User/Login page.
Times asked1
Official solution
Simpleredirect browser ko naya URL pe GET karne ko kehta hai (generally 302).
return redirect(url_for('dashboard'))
Login/register/delete ke baad use karo taaki refresh duplicate POST na kare.
Doosra page dikhana hai with new request — redirect. Same request pe HTML — render_template.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
20
Create a single login page for multiple user roles.
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.
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.
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.
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.
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'))
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.
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.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
36
Explain models.py.
Times asked21
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.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
38
Explain utility/helper modules.
Times asked1
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.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
40
Explain your database schema.
Times asked3
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
41
Explain the ER diagram.
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
42
Explain relationships between models.
Times asked3
Official solution
SimpleRelationships tables ko jodti hain taaki related data object se mil jaaye.
One-to-Many: User → kai Posts. posts = relationship('Post', backref='author'). FK post.user_id.
One-to-One: User → Profile. uselist=False + unique FK. Profile.user_id unique.
Many-to-Many: Student ↔ Drive. Junction/secondary table (student_id, drive_id).
Example 1-1:
class Profile(db.Model):
user_id = db.Column(db.Integer, db.ForeignKey('user.id'), unique=True)
user = db.relationship('User', back_populates='profile', uselist=False)
1-M ko 1-1: child FK pe unique=True + uselist=False.
Parent-child: parent PK, child FK. Junction table extra columns bhi rakh sakti hai (applied_on).
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
43
Explain database constraints.
Times asked1
Official solution
SimpleConstraints rules hain jo galat data rok te hain. Referential integrity FK valid parent ko point kare.
PK, FK, UNIQUE, NOT NULL, CHECK (age >= 18). ORM Column flags yahi map karte hain.
SQL = language tables se baat. Database organized data store.
SQL View: saved query, table jaisi dikhti hai, data copy nahi.
Cluster: kai DB servers together (HA/scale) — MAD1 SQLite single file.
Entity mapping: class User → table user, attributes → columns.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
44
Why SQLite?
Times asked1
Official solution
SimpleSQLite file-based chhota DB, MySQL/Postgres server-based production DB.
SQLite fayde: zero setup, ek .db file, MAD1/dev ke liye perfect, portable.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
47
Advantages/disadvantages of SQLAlchemy.
Times asked1
Official solution
SimpleSQLAlchemy Python ka sabse popular ORM hai. MAD1 mein Flask-SQLAlchemy wrapper use hota hai.
db = SQLAlchemy(app)
class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(80), nullable=False)
Operations: db.session.add(obj), .commit(), .delete(obj), Model.query.all(), .filter_by(), .get_or_404(id).
db.Model ek class hai (function nahi). db object engine + session + metadata hold karta hai.
SQLALCHEMY_TRACK_MODIFICATIONS=False extra signals band karta hai, performance warning hatati hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
48
Uses of SQLAlchemy.
Times asked1
Official solution
SimpleSQLAlchemy Python ka sabse popular ORM hai. MAD1 mein Flask-SQLAlchemy wrapper use hota hai.
db = SQLAlchemy(app)
class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(80), nullable=False)
Operations: db.session.add(obj), .commit(), .delete(obj), Model.query.all(), .filter_by(), .get_or_404(id).
db.Model ek class hai (function nahi). db object engine + session + metadata hold karta hai.
SQLALCHEMY_TRACK_MODIFICATIONS=False extra signals band karta hai, performance warning hatati hai.
REST mapping: POST create, GET read, PUT/PATCH update, DELETE delete.
Admin panel mein yeh 4 dikhana viva demo ka common task hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
50
Difference between TRUNCATE and DROP.
Times asked1
Official solution
SimpleDELETE rows hataata hai, TRUNCATE poori table empty karta hai, DROP table hi mita deta hai.
DELETE FROM user WHERE id=5; — specific rows, WHERE chal sakta hai, trigger/rollback possible.
TRUNCATE TABLE user; — saari rows, tez, identity reset, WHERE nahi.
DROP TABLE user; — table structure bhi gayi.
ORM: db.session.delete(obj) = DELETE. Table drop rarely Flask se.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
51
Difference between PRIMARY KEY and FOREIGN KEY.
Times asked1
Official solution
SimplePrimary Key row ki unique ID hai, Foreign Key doosri table ki Primary Key ko point karti hai.
Primary Key: unique + not null. Har table mein hota hai. Example: user.id = 5
Foreign Key: relationship banati hai. post.user_id = 5 matlab yeh post user 5 ki hai.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
class Post(db.Model):
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
FK Primary Key bhi ho sakti hai (1-to-1 profile table). FK unique ho to One-to-One, nahi to One-to-Many.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
52
Difference between PRIMARY KEY and UNIQUE KEY.
Times asked1
Official solution
SimplePrimary Key table ki main identity hai (ek hi), Unique Key extra unique column ho sakta hai (kai).
PK: NOT NULL + UNIQUE, sirf ek clustered identity. Example: id
Unique: duplicate nahi, lekin NULL allow ho sakta hai. Example: email, username
UNIQUE + NOT NULL + AUTO_INCREMENT PK jaisa behave karta hai, lekin table ki official PK nahi. Relationships/FK generally PK ko refer karti hain.
Isliye alag Primary Key rakhna better hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
53
Types of SQL constraints.
Times asked1
Official solution
SimpleConstraints rules hain jo galat data rok te hain. Referential integrity FK valid parent ko point kare.
PK, FK, UNIQUE, NOT NULL, CHECK (age >= 18). ORM Column flags yahi map karte hain.
SQL = language tables se baat. Database organized data store.
SQL View: saved query, table jaisi dikhti hai, data copy nahi.
Cluster: kai DB servers together (HA/scale) — MAD1 SQLite single file.
Entity mapping: class User → table user, attributes → columns.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
54
What are NULL and NOT NULL?
Times asked1
Official solution
Simplenullable=False matlab column khali nahi. default seedha value. Query objects lazy hote hain jab tak .all/.first.
age = db.Column(db.Integer, nullable=True) # optional
status = db.Column(db.String(20), default='pending')
__tablename__ = 'users' # table name override
User.query.all() → list of User. .first() → User ya None. .get_or_404(id) → User ya 404.
filter_by(...) Query object return karta hai, execute .all() pe. Type: BaseQuery / list after all().
db.func.count(User.id) aggregate. Empty table render: loop 0 baar, crash nahi agar code sahi.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
55
What is a SQL View?
Times asked1
Official solution
SimpleConstraints rules hain jo galat data rok te hain. Referential integrity FK valid parent ko point kare.
PK, FK, UNIQUE, NOT NULL, CHECK (age >= 18). ORM Column flags yahi map karte hain.
SQL = language tables se baat. Database organized data store.
SQL View: saved query, table jaisi dikhti hai, data copy nahi.
Cluster: kai DB servers together (HA/scale) — MAD1 SQLite single file.
Entity mapping: class User → table user, attributes → columns.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
56
What is a RESTful API?
Times asked4
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
57
Why did you use REST APIs?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
58
Why didn't you use APIs in your application?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
59
Advantages of REST APIs.
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
60
HTTP request methods (GET, POST, PUT, DELETE, etc.).
Times asked1
Official solution
SimpleGET read karta hai, PUT existing resource replace/update karta hai.
GET /users/1 → data lao, side-effect nahi. PUT /users/1 → poora user update, idempotent.
PUT vs FETCH: FETCH HTTP method nahi, JS fetch() function hai jo GET/PUT/POST kuch bhi bhej sakta hai.
Search GET, edit-save PUT/POST. GET se create mat karo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
61
Difference between GET and PUT.
Times asked2
Official solution
SimpleGET read karta hai, PUT existing resource replace/update karta hai.
GET /users/1 → data lao, side-effect nahi. PUT /users/1 → poora user update, idempotent.
PUT vs FETCH: FETCH HTTP method nahi, JS fetch() function hai jo GET/PUT/POST kuch bhi bhej sakta hai.
Search GET, edit-save PUT/POST. GET se create mat karo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
62
HTTP response codes.
Times asked1
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.
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'))
SimpleStatus code number batata hai request ka result.
200 OK — success, page/data mil gaya.
201 Created — POST se naya resource.
302/303 Found/See Other — redirect (login ke baad).
304 Not Modified — cache use karo.
400 Bad Request — galat input.
401 Unauthorized — login nahi (ironically authentication missing).
403 Forbidden — login hai, permission nahi.
404 Not Found — route/record nahi.
500 Internal Server Error — server crash (DB error, NoneType). debug=True pe traceback.
501 Not Implemented — method server nahi sambhalta.
abort(404) Flask mein. get_or_404(id) record na ho to 404.
User ID GET pe exist na kare to 404 return karo, 500 nahi.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
64
Difference between HTTP and HTTPS.
Times asked6
Official solution
SimpleHTTP plain text bhejta hai, HTTPS encrypted bhejta hai.
HTTP: data beech mein koi padh sakta hai (password, session). Port 80. Padlock nahi.
HTTPS: SSL/TLS se encrypt. Port 443. Certificate verify hota hai. Man-in-the-middle mushkil.
Examplecafe WiFi pe HTTP login karo to password sniff ho sakta hai. HTTPS pe attacker ko garbage dikhega.
list: [1,2,3] — append, mutable, duplicate ok. Arrays jaisa lekin mixed types.
tuple: (1,2) — immutable, dict key ban sakta hai.
dict: {'name':'Ram'} — fast lookup by key. JSON objects dict ban jaate hain.
set: unique items.
Array (JS) ≈ Python list. JS object ≈ Python dict.
Mutable: list, dict. Immutable: tuple, str, int.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
72
Exception handling.
Times asked1
Official solution
SimpleException error object. try-except se app crash ki jagah friendly message.
try:
age = int(request.form['age'])
db.session.commit()
except ValueError:
flash('Age number hona chahiye')
except SQLAlchemyError:
db.session.rollback()
flash('Database error')
ArithmeticError/ZeroDivisionError, KeyError, TypeError common. SQLAlchemy type errors: sahi Column type, form ko int() se convert.
User ko 500 ka traceback mat dikhao production mein.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
73
Types of exceptions (e.g., Arithmetic Exception).
Times asked1
Official solution
SimpleException error object. try-except se app crash ki jagah friendly message.
try:
age = int(request.form['age'])
db.session.commit()
except ValueError:
flash('Age number hona chahiye')
except SQLAlchemyError:
db.session.rollback()
flash('Database error')
ArithmeticError/ZeroDivisionError, KeyError, TypeError common. SQLAlchemy type errors: sahi Column type, form ko int() se convert.
User ko 500 ka traceback mat dikhao production mein.
Pehle concept A ek line, phir B ek line, phir table-jaisa farq (input/output/side-effect).
Example hamesha MAD1 se: GET search page, POST register, PUT/PATCH API update, session vs cookie login.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
75
What is Namespace?
Times asked1
Official solution
Simple mix of small concepts examiners poochte hain:
Enum: fixed choices (status = pending/approved). Python Enum ya DB Enum column.
Lambda: one-line anonymous function. key=lambda x: x.name sort ke liye.
datetime: dates/times. timedelta(days=1) yesterday. default=datetime.utcnow.
os.getenv('SECRET_KEY') environment se config, hardcode nahi. .env alternative: actual OS env, config.py, vault.
HTML metadata: <meta charset>, <meta name='viewport'> — page ke baare mein, body content nahi.
HTTP metadata: headers (Content-Type, Set-Cookie).
Request payload: body data (JSON/form).
Namespace: naam collide na hon (Blueprint name, Python packages).
Plugins: extra packages (Flask-Login). Package vs module: package folder with __init__, module ek .py file.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
76
What is Bootstrap?
Times asked4
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
77
Uses of Bootstrap.
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
78
Why Bootstrap?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
79
Why didn't you use Bootstrap?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
80
What are Bootstrap classes?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
81
What is CSS?
Times asked2
Official solution
SimpleCSS page ko style karti hai — color, layout, font. HTML structure, CSS look.
h1 { color: navy; } .card { padding: 16px; } #logo { width: 80px; }
Selectors: element (h3), class (.btn), id (#nav), pseudo (:hover).
display:flex — ek line/row mein items, justify-content/align-items se center.
Multiple classes: saari apply, conflict pe specificity/order.
Responsive: media queries / Bootstrap grid. Bina CSS limited (old tables) — practically CSS chahiye.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
82
How did you add CSS?
Times asked1
Official solution
SimpleCSS page ko style karti hai — color, layout, font. HTML structure, CSS look.
h1 { color: navy; } .card { padding: 16px; } #logo { width: 80px; }
Selectors: element (h3), class (.btn), id (#nav), pseudo (:hover).
display:flex — ek line/row mein items, justify-content/align-items se center.
Multiple classes: saari apply, conflict pe specificity/order.
Responsive: media queries / Bootstrap grid. Bina CSS limited (old tables) — practically CSS chahiye.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
83
Static vs Dynamic web pages.
Times asked1
Official solution
SimpleStatic page har user ko same HTML file. Dynamic server pe data se HTML banati hai.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
85
What is MVC?
Times asked8
Official solution
SimpleMVC = Model-View-Controller. Code ko 3 hisson mein baant ta hai taaki mix na ho.
Model: data + DB. models.py — User, Trek, Booking classes.
View: jo user dekhta hai. templates/*.html + Jinja.
Controller: beech ka logic. routes / app.py — request lo, model se data, view ko do.
Example flow (register):
Browser form POST → Controller register() → User model save → redirect → View dashboard.html
Draw: Browser → Controller → Model → DB, phir Controller → View → Browser.
ORM na ho to bhi MVC ho sakta hai — Model raw SQL functions ho sakte hain. Structure matter karta hai, library nahi.
MVP/MVVM doosri architectures hain; MAD1 mein MVC expected hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
86
Explain MVC in your project.
Times asked1
Official solution
SimpleMVC = Model-View-Controller. Code ko 3 hisson mein baant ta hai taaki mix na ho.
Model: data + DB. models.py — User, Trek, Booking classes.
View: jo user dekhta hai. templates/*.html + Jinja.
Controller: beech ka logic. routes / app.py — request lo, model se data, view ko do.
Example flow (register):
Browser form POST → Controller register() → User model save → redirect → View dashboard.html
Draw: Browser → Controller → Model → DB, phir Controller → View → Browser.
ORM na ho to bhi MVC ho sakta hai — Model raw SQL functions ho sakte hain. Structure matter karta hai, library nahi.
MVP/MVVM doosri architectures hain; MAD1 mein MVC expected hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
87
Difference between 2-tier and 3-tier architecture.
Times asked1
Official solution
Simple2-tier = client seedha database se baat karta hai. 3-tier = beech mein application server hota hai.
Examplebrowser HTML dikhata hai, Flask business logic (booking, auth), DB data store.
Fayda: DB expose nahi, logic central, scale alag-alag tiers pe kar sakte ho.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
88
What are Sessions?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
89
Sessions vs Cookies.
Times asked1
Official solution
SimpleCookie browser mein save hoti hai, Session server pe data rakhta hai aur browser ko sirf ID deta hai.
Cookie: key-value browser pe. JS padh sakta hai (agar HttpOnly nahi). Size chhoti (~4KB).
Session: server-side dict. Flask default mein session data signed cookie mein hi store hota hai (client pe, lekin tamper-proof).
Example
session['user_id'] = 12 # login ke baad
# browser ko Set-Cookie milti hai
Tab close: default Flask session cookie browser close pe delete (session cookie). Permanent session alag hota hai.
Incognito: cookies isolated, isliye logged-in nahi dikhega.
SECRET_KEY se session sign hota hai — key nahi to session insecure/kaam nahi karega.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
90
What is a Cookie?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
91
Authentication vs Authorization.
Times asked8
Official solution
SimpleAuthentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password check karke prove karte ho ki tum genuine user ho. Success pe session/token milta hai.
Authorization: uske baad role check. Admin hi parking lot delete kar sakta hai, normal user nahi.
Example (Flask):
# Authentication
if user and check_password_hash(user.password, form_password):
session['user_id'] = user.id
# Authorization
if session.get('role') != 'admin':
abort(403) # logged in ho, lekin allowed nahi
Project example: student login = authentication. Student admin dashboard nahi khol sakta = authorization.
Validation alag cheez hai (form sahi bhara hai ya nahi, jaise age 18+).
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
92
How did you implement authorization?
Times asked1
Official solution
SimpleAuthentication session se, Authorization role/ownership check se.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
95
Explain password validation logic.
Times asked1
Official solution
SimpleValidation galat data rok ti hai — frontend turant, backend must.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
96
Can password validation be implemented using Regex?
Times asked1
Official solution
SimpleValidation galat data rok ti hai — frontend turant, backend must.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
97
What types of testing did you perform?
Times asked1
Official solution
SimpleTesting code sahi hai verify. Unit = chhote functions, Integration = route+DB, System = poora flow.
Pytest: test_*.py, assert. Markers: @pytest.mark.slow skip/select. Keywords: pytest -k login.
Unit testing se regression kam, viva ke alawa CI mein fayda. Manual: demo scenarios (overbook, blacklist).
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
98
Why unit testing?
Times asked1
Official solution
SimpleTesting code sahi hai verify. Unit = chhote functions, Integration = route+DB, System = poora flow.
Pytest: test_*.py, assert. Markers: @pytest.mark.slow skip/select. Keywords: pytest -k login.
Unit testing se regression kam, viva ke alawa CI mein fayda. Manual: demo scenarios (overbook, blacklist).
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
99
What testing did you do apart from unit testing?
Times asked1
Official solution
SimpleTesting code sahi hai verify. Unit = chhote functions, Integration = route+DB, System = poora flow.
Pytest: test_*.py, assert. Markers: @pytest.mark.slow skip/select. Keywords: pytest -k login.
Unit testing se regression kam, viva ke alawa CI mein fayda. Manual: demo scenarios (overbook, blacklist).
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
100
What is Bootstrap class?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
101
What is a Model?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
102
Explain company templates.
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
103
Difference between CSV and JSON.
Times asked1
Official solution
SimpleCSV table jaisa text (comma rows), JSON nested objects/lists.
CSV: name,age\nRam,20 — Excel/export ke liye. Nested data mushkil.
JSON: {"name":"Ram","age":20,"roles":["admin"]} — APIs ka standard.
Project: CSV export reports, JSON APIs/Chart.js data.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
104
Why use JSON?
Times asked1
Official solution
SimpleJSON = JavaScript Object Notation — data exchange ka text format.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
106
Show/download checksum.
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
107
Show ID card.
Times asked5
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Tag summary
No tags.
Video explanation
Created for educational purposes only. Questions are based on students' personal experiences and may not reflect actual exam content.