Tips for this examiner: She will ask you many questions but basics ,which you should know.She is quite strict but also supportive!...if you got this proctor then prepare your best!
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
4
2.Staff query with more than 5 yrs of experience
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
5
3.Jinja loop for easy difficulty treks print
Times asked1
Official solution
SimpleJinja for loop list render karta hai. loop.index, else branch empty list pe.
Example
{% for u in users %}
<tr><td>{{ loop.index }}</td><td>{{ u.email }}</td></tr>
{% endfor %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
6
2.Explain One to many ,many to one One to one etc using Models
Times asked1
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)
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: Total 40 mins viva .
Calm and interactive just be chill and sheet would be enough to answer just be confident.. she indirectly pointed me out at last that I was lacking confidence.
Even said viva was good.
write sqalchamy query for getting the loggin user , write jinja loop for trek count and write a route that takes argument from the URL and displays welcom user_name
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: If you are struck in some questions, she is skipping it herself. But I would recommend this: If you don't know answers for her questions, admit that you don't have a clear idea on that and just tell your thought process and try to give answers. Do not just blindly say "I don't know" for her to skip it.
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')
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
23
Change the button to a clickable link and that link shd redirect to the respective page
Times asked1
Official solution
Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.
Advice: She’s very kind, listens patiently to your explanations, and asks follow-up questions. She focuses a lot on theory, so prepare that well. Most of the questions were repeated from this sheet.
Flask loosely MVC follow karta hai — routes controllers, templates views, models.py models.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
3
Explain models.py in detail
Times asked1
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)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
4
Run the application, what is the use of venv
Times asked1
Official solution
Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.
Advice: Review : Overall a very calm and understanding proctor, but she checks ur basic theory till the very depth be sure u are prepared with the project's deeper understanding.
Advice: She is very calm and helping proctor she gave the time to think and to write the code mostly she asked the questions which is present in the sheet.
Stay calm and confident and know the every line of your code.
Advice: Prepare from the sheet questions. Make sure to know atleast something about all that is in your code. Viva was over in like 40 mins. Stay calm , most of the questions will be from the sheet and even the coding questions wont be too hard.(I was able to do the coding without her help)
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')
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
18
Explain the portion of code where you are validating and not accepting past dates
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')
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
19
Go to edit trek and add the validation for trek to not accept a description of more than 25 characters
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')
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
Login as user and bring the user dashboard heading to the centre of the page
@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'
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: She's good, but she sounds a little firm and strict. She shoots questions like a rapid fire, so please be prepared with everything on your finger tips. If you do not answer in a few moments, she just moves on. If you learn everything from the sheet and know every line of your code well, you are good to go!
- Create a trek, and create a user and make a booking for this new trek by this new user.
Times asked1
Official solution
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
11
- I had separate page for registering trekkers and staffs. She asked to add a dropdown list to select gender on trekker registration page. (She asked if I don't to add dropdown and want to add checkbox in its place. I said that I can add dropdown.)
Times asked1
Official solution
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
12
- In the table of active bookings in trekker page, she asked me to make the trek name as clickable, but it should not redirect anywhere.
Times asked1
Official solution
Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.
Advice: The meet lasted for around 37 mins. She said that overall the viva went good. I need to work on some part.
The proctor was calm and supportive. She gave some time to speak, wherever I was not able to speak.
Advice :
Be calm. Prepare the questions that this proctor has asked before. Keep your theory good.
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
5
- explain model. Py full
Times asked1
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)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
6
- make logout button
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
7
- change colors here and there
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
8
- make stuff left go right kinda stuff
Times asked1
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.
TIP: Check that your screen share works properly. I had prepared well with everything else about the code and the checklist, but my screen share in GMeet was not showing anything, and I had to restart my laptop and open everything from the beginning, which wasted almost 15 minutes.
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
2
Explain MVC and how I implemented that in my project (explain the file structure).
Times asked1
Official solution
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
3
Explain the models I wrote and explain each of the relationships and constraints used, including backref.
Times asked1
Official solution
Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
5
Explain the role based access in your controllers.py?
Times asked1
Official solution
SimpleRBAC = Role Based Access Control. Roles (admin/user) se permissions milti hain, har user pe alag list nahi.
Example
if current_user.role != 'admin':
flash('Not allowed')
return redirect(url_for('user.home'))
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
6
show and explain the blacklist Route?
Times asked1
Official solution
SimpleBlacklist/block: user.status='blocked' check login/booking pe. Temporary flag vs hard delete permanent.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
7
Explain create_drive route,edit drive route,update route? 9)How have you ensured that if a student has applied for the drive then he will not be able to apply for the same drive again? 10)how have you prevented duplicate applications?
@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'
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
11
In the navbar create a profile link?
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
12
what is db.flush? I didnot know about it 20)center a div vertically and horizontally Viva lasted for 50 minutes..
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
Advice: Ma’am was the most humble and polite person I have ever come across.
She corrected me while doing coding questions and also she was waiting patiently for me to complete the task.
She advised me to know the tags with the name itself and also do a little improvement while writing the code in notepad (syntax and logic).
Just know your code and be confident to explain everything you done in the project.
Viva tipFunction signature + 3-4 important lines + edge case.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: She's a good proctor try to give correct answer in starting then she'll stay calm...
She's mostly in rapid fire mode will not let you breathe much...code question will be easy, prepare theory well.
Make a button on student registration named gender and it should be a round-something button with options male and female
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
2
Unique key
Times asked1
Official solution
SimplePrimary Key har row ko uniquely identify karti hai. Unique Key bhi unique hoti hai lekin table ki main ID nahi.
id = db.Column(db.Integer, primary_key=True) # auto increment
email = db.Column(db.String(120), unique=True)
PK: NOT NULL, ek (ya composite). Index automatically.
Record fetch: User.query.get(id) PK se tez.
FK hamesha unique nahi — Many side pe repeat hoti hai. Unique FK = One-to-One.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
3
Unique constraint
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
4
Write jinja code that a student is eligible if cgpa>8
Times asked1
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 %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
5
Jinja2 definition
Times asked1
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 %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
6
Make dashboard message to Hello (company name)
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
7
Link on object on the student my applications table to any url
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
8
Make an application history table for student in backend
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: She's strict
Will help if you're trying hard and give hints
Will interrupt your explanation to ask questions
Sorta cool and kind
Be through with code and theory
Jinja and python need to be practiced
In the end told me I'm good at frontend but backend coding needs work
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.
Project example: app.py bottom.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
6
Asked detailed explanation of models.py file
Times asked1
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)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
7
Asked me to explain my project structure
Times asked1
Official solution
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
I don't remember other questions, but most of the questions were from this excel sheet.
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
11
Coding questions:
Times asked1
Official solution
SimpleLive coding: notepad/editor mein chhota Flask route / Jinja loop / model field. Calm raho, run karke dikhao.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
12
Asked me to do some changes in frontend, and asked me to write condition in jinja, and asked me to write code that automatically closes drive after the deadline passes.
Times asked1
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 %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: Be prepared to explain every single line of code you wrote. Ma'am is supportive and gives you time to think. If you are not comfortable in English then you can explain in Hindi too. Overall she is good proctor.
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
3
A jinja if else or loop
Times asked1
Official solution
SimpleJinja for loop list render karta hai. loop.index, else branch empty list pe.
Example
{% for u in users %}
<tr><td>{{ loop.index }}</td><td>{{ u.email }}</td></tr>
{% endfor %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
4
Now I start the app
Times asked1
Official solution
Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
9
VCS (git)
Times asked1
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.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
12
Frontend questions
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
Advice: Know your project in and out also you should know why have you applied any component and how its is integerated with frontend and backend also try to be calm
@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'
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: Be strong with the basics
She took my viva for 40 min
Don't panic ,if u ask time she will let u think
Even if u were unable to write the backend code ,just explain the backend logic,she will accept it
all questtions where asked from this sheet repeated questions
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest 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
2
code changes will be based on jinja for loop ,adding a route and som frontend changes
Times asked1
Official solution
SimpleJinja for loop list render karta hai. loop.index, else branch empty list pe.
Example
{% for u in users %}
<tr><td>{{ loop.index }}</td><td>{{ u.email }}</td></tr>
{% endfor %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: knowing your code thoroughly and strong in theory concepts will make your viva process smoother or else you might feel that the proctor is a strict one
She asks lot of questions once you answered. Please make sure, you practice the questions that is already present in this sheet. for all proctor. make sure you properly understand the questions and concept. if you impress her with your theorical questions, she is very chill. she asked me to open simple txt file and give three simple tasks, one related to jinja for loop, one is jinja if loop, one is give simple route for square of a number. then for code questions you need to make sure whatever it is there you understand clearly. More focus on your routes, models and all basic html, css things. she asked me to change the doctor name with doctor name - specilization. then simple simple filtering questions. if you tried hard, to do, and if she felt you are tring hard, she will also help you if you stuck inbetween. Overall, she is very good proctor, if you perform well, she will chill, otherwise she will roast you both sides. be careful. happy leaning!
Times asked1
Official solution
SimpleJinja for loop list render karta hai. loop.index, else branch empty list pe.
Example
{% for u in users %}
<tr><td>{{ loop.index }}</td><td>{{ u.email }}</td></tr>
{% endfor %}
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: She obessed with css z index idk why, then routes and models, jinja templates, simple simple code changes, very good proctor, very motivative, kind, strict all in one. lol
SimpleGET data mangta hai (read), POST data bhejta hai (create/submit).
GETURL mein dikhta hai, bookmark ho sakta hai, browser back/refresh safe hai, data URL query mein jaata hai. Search, page open, login form dikhana.
POSTbody mein data jaata hai, URL mein password nahi dikhta, refresh pe dubara submit ho sakta hai. Login, register, form save.
Example
# page dikhana
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'GET':
return render_template('login.html')
# POST: form submit
email = request.form.get('email')
...
GET se theoretically data bhej sakte ho (?q=flask), lekin create/update ke liye nahi use karna — data log/history mein save ho jaata hai, length limit hoti hai.
HTML form default GET hota hai; method='POST' likhna zaroori hai login/register pe.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
9
Request.form and request.args
Times asked1
Official solution
SimpleORM = Object Relational Mapping. Tables → Python classes. Raw SQL kam likhte ho.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)
User.query.get(5) # SELECT ... WHERE id=5
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
Use of render template
Times asked1
Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
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.
Iske bina session/flash unreliable ya insecure. Key leak = attacker session forge kar sakta hai.
Hardcode mat karo production mein — .env / environment variable. Flash messages bhi session use karti hain, isliye SECRET_KEY se related hain.
Hataane pe session kaam nahi / warning. Change karne pe purane sessions invalid.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
18
Where are the user credentials stored when they login
Times asked1
Official solution
SimpleUngli rakhe to 4-line formula — panic ki jagah structure.
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)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
21
Foreign key
Times asked1
Official solution
SimpleForeign key dusri table ke PK ko point karti hai — relationship banati hai.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
32
Change some stuff
Times asked1
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: She was strict but supportive, questions were rapid fire and had to be answered within one minute or else she would move on. Make sure to prepare all questions in this sheet.
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
7
What is db.model?
Times asked1
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)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
8
Explain where and where your folders and files located
Make css changes like align boxes in left to the centre
Times asked1
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.
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
Inline and block elements
Times asked1
Official solution
SimpleBlock poori line leta hai, Inline text ke saath baithta hai.
Block (div, p, h1, section): width 100%, next element neeche aata hai. Height/width/margin set kar sakte ho.
Inline (span, a, strong): sirf content jitni jagah. Width/height generally nahi chalti.
Inline-block: inline ki tarah baithta hai, lekin width/height milti hai.
Example
<div>Hello</div><div>World</div> do lines. <span>Hello</span> <span>World</span> ek line.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Advice: Very strict proctor, for theory go through the responses in this form. For coding part learn by blocks of search , edit, appointment, etc.,
Same headers, encrypted channel. MITM se password/token bachao. Local viva HTTP OK.
HTTP/1.1 version keep-alive. TCP neeche, TLS security layer, SMTP mail alag.
Browser + API ke beech extra darwaze: CORS origin allow, HTTPS encrypt transit, CSRF cookie-auto-send attack, XSS HTML inject, SQL injection raw query.
MAD2 SPA: Vue :8080 Flask :5000 → Flask-CORS. JWT localStorage XSS se chori ho sakta — v-html user input pe avoid. Password Network tab localhost pe dikhega; prod HTTPS, response mein password echo nahi.
401 unauthenticated, 403 unauthorized, 400 validation. Hash one-way — SHA decrypt nahi hota. Secret key .env, GitHub pe nahi.
Project example: Dev localhost http. Production https:// + cert.
Advice: She will ask you many questions but basics ,which you should know.She is quite strict but also supportive!...if you got this proctor then prepare your best!
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.