-
1
LEVEL 2 Viva :Times asked 1Official solution
SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.
Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.
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
- First I was asked to run the app and present it.Times asked 1Official solution
Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.
Example
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt flask runCommunity answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
3
- He then asked about the folder structure :Times asked 1Official solution
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge caseExample
# related file: models.py / routes / template # formula: request → check/auth → DB → render/redirectViva 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
what is your folder structure like? How many controllers do you have ?Times asked 1Official solution
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge caseExample
# related file: models.py / routes / template # formula: request → check/auth → DB → render/redirectViva 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
I was then asked to explain my models. He asked me what does this cascade, all-delete mean.Times asked 1Official solution
SimpleCascade parent delete pe children pe kya ho: delete-orphan related rows hata deta hai.
Example
db.relationship('Spot', cascade='all, delete-orphan')Viva tipParking lot delete → uske spots/bookings policy clear bolo.
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
- I was then asked to show my routes, we started with authentication routes like login, registration routes. He asked to explain what was happening in these routes.Times asked 1Official solution
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth if check_password_hash(user.password, pwd): session['user_id'] = user.id # authz if user.role != 'admin': abort(403)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
- Continuing with routes he asked me the difference between redirect and render_template.Times asked 1Official solution
Simplerender_template Jinja HTML file ko data deke final HTML banata hai.
Example
return render_template('dashboard.html', user=user, lots=lots)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
- next he asked if I had used template inheritance, I hadn't so we moved on, he asked where did I use jinja2 and show an example in my templates. He asked what was the purpose of this jinja2 code I had written and explain it.Times asked 1Official solution
SimpleBase template pe navbar/footer, child pages {% extends %} + {% block %} se content bharte hain. DRY.
Example
{# base.html #} {% block content %}{% endblock %} {# home.html #} {% extends 'base.html' %} {% block content %} <h1>Home</h1> {% endblock %}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
- next I was asked some theory :Times asked 1Official solution
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
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
what are the advantages and disadvantages of flask_sqlalchemy ORM?Times asked 1Official solution
SimpleSQLAlchemy MAD1 ka common ORM. Flask-SQLAlchemy wrapper se db.Model, db.session.
Example
user = User(email='a@b.com') db.session.add(user) db.session.commit() users = User.query.filter_by(role='admin').all()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
what is horizontal scaling ? and what is vertical scaling?Times asked 1Official solution
SimpleVertical badi machine. Horizontal aur boxes + load balancer. JWT stateless horizontal friendly.
10k users: Postgres, Redis, gunicorn, CDN, pagination, indexes.
Millions: replicas, queue partition, more workers.Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Course app vertical enough. Design answer scale-out.
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 does time complexity mean?Times asked 1Official solution
SimpleTime complexity input size ke saath time kaise badhta hai.
O(1): dict lookup. O(n): list mein loop. O(n^2): nested loops.
Example
User.query.all() phir Python mein filter = O(n). DB pe indexed WHERE tez.Search suggestions: prefix index / ILIKE, nai to har keypress pe poori table mat ghumao.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
13
( I cant remember more theory questions, unfortunately.)Times asked 1Official solution
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
14
the task :Times asked 1Official 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
-
15
Make a route for admin_delete_trek_staffTimes asked 1Official 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