-
1
Show your Student ID.Times asked 2Official solution
SimpleCamera pe college ID — naam photo match. Identity viva ki pehli gate.
Pehle se haath mein, glare nahi. Examiner screenshot. Phir GitHub + portal ZIP run.
Name GitHub/portal se mismatch red flag.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Project example: ID dikhao, bolo roll/name, phir screen share repo.
Viva tipPehle 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
-
2
Show your GitHub repository and collaborator.Times asked 16Official solution
SimpleRepo = evidence tumne kaam kiya: commits, collaborators, README.
Regular messages, last-day dump nahi. Private access pehle de do. Main branch submitted ZIP se match.
Collaborator settings. Commit dates.
Example
Settings → Collaborators: apna + teammate (agar allowed). Commits: regular messages, last-day dump nahi.Project example: Settings → Collaborators. git log --oneline. README run steps.
Viva tipPrivate repo access de do pehle. Main branch latest submitted ZIP se match honi 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
-
3
Share the report/documentation link.Times asked 1Official solution
SimpleOpen docs, AI % same, features map demo.
Share report link.
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: Google doc headings.
Project example: Google doc headings.
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
Explain your entire codebase (frontend and backend).Times asked 1Official solution
SimpleTree + 6 file roles. Not every line.
Same walk_code. Stay structured.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Start models end Vue.
Project example: Start models end Vue.
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 your configuration files.Times asked 1Official solution
Simpleconfig.py / .env SECRET URI Redis MAIL CACHE celery. No secrets git. Explain configuration files.
create_app load.
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: .env.example.
Project example: .env.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
-
6
Explain the Login API.Times asked 1Official solution
SimpleLogin flow pehle poochta hai "tu kaun hai?", token milne ke baad har API pe wohi proof dikhate ho.
Authentication step: Vue form email + password JSON POST karta hai. Flask user dhoondhta hai,
check_password_hashse prove karta hai ki tum genuine ho. Galat 401. Sahi pe JWT + role milta hai — yeh session/token hai.Vue
localStorage(ya cookie) mein token rakhta hai, dashboard perouter.push. Aage ki harfetchheader:Authorization: Bearer <token>.@jwt_requiredidentity check (authentication).@roles_required('admin')permission check (authorization) — logged in ho, lekin allowed nahi to 403.Validation alag cheez hai: empty email, password 8+ — form sahi bhara hai ya nahi. Woh identity prove nahi karta.
Logout = client token delete + login page. Server blacklist optional. Password response JSON mein kabhi mat bhejo.
Example
# Authentication @app.route('/api/login', methods=['POST']) def login(): u = User.query.filter_by(email=data['email']).first() if not u or not check_password_hash(u.password, data['password']): return jsonify(msg='bad'), 401 return jsonify(token=create_access_token(u.id), role=u.role) # baad ki APIs # Authorization: Bearer <token> if current_user.role != 'admin': abort(403)Project example: Login.vue POST /api/login → token LS → interceptor. Student token se admin route = 403. Empty form = validation, galat password = 401.
Viva tipNetwork tab mein password body dikhega localhost pe — prod HTTPS. Response mein hash/password echo 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
Explain how data is stored in your application.Times asked 1Official solution
Simpledata() local diary. Store school notice board.
Search query local. Logged-in user store. Persist: store + localStorage together.
state vs data: similar concept, scope alag.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
// local data() { return { q: '' } } // global this.$store.state.userProject example: Login.vue local form fields. this.$store.state.user Navbar.
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 the Admin creation code.Times asked 1Official solution
SimpleUngli rakhe to 4-line formula — panic ki jagah structure.
1) File ka role: model / Flask route / Vue SFC / celery task / config
2) Input kahan: JSON, params, token, props, $route
3) Kya kaam: query, cache, validation, .delay()
4) Output: jsonify, this.items, email, redirectUnknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.
Suggested flow1) Kaunsi layer?
2) Input?
3) DB/cache/task?
4) Response/UI?Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.
Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.
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
Show where the API is called and how data is rendered on the frontend.Times asked 1Official solution
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) LogoutProject example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
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
Explain how the Admin Dashboard receives and displays data.Times asked 1Official solution
SimpleAdmin Vue → GET /api/admin/summary roles_required → counts + chart. How dashboard receives data.
Cached maybe.
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: AdminHome.vue mounted.
Project example: AdminHome.vue mounted.
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
Explain the Celery files.Times asked 1Official solution
SimpleTasks list, schedule, broker, trigger, verify MailHog/logs.
Beat vs worker. User vs scheduled. App context.
Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.
Flow: Flask
.delay()→ Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS
async/awaitbrowser event loop hai, Celery server-side process — mix mat karo.Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.
Project example: Three tasks. Commands README.
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 are asynchronous (background) jobs?Times asked 1Official solution
SimpleSync line pe ruk jao (2+2). Async I/O pe wait karte hue baaki kaam chalte (fetch, Celery).
JS async ≠ Celery async jobs. Context se bolo.
Why async jobs: slow/scheduled/bulk off request thread.
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: Login sync hash check fast. Email Celery async. Vue fetch async.
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
Where have you implemented JWT in the frontend?Times asked 1Official solution
Simplelogin.vue save. interceptor. guards. LS key. Show JWT frontend.
Where implemented JWT frontend.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).MAD2: POST /api/login = authentication.
@jwt_requiredidentity.@roles_required('admin')ya Vuev-if="isAdmin"= authorization. Frontend hide sirf UX — asli deny backend pe.Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: api.js header.
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
What is the purpose of the JWT Secret Key?Times asked 1Official solution
SimpleHMAC key. Private. Purpose: signature, not encrypt payload.
algo none attack libraries reject.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).MAD2: POST /api/login = authentication.
@jwt_requiredidentity.@roles_required('admin')ya Vuev-if="isAdmin"= authorization. Frontend hide sirf UX — asli deny backend pe.Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: JWT_SECRET_KEY config.
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
Difference between JWT Secret Key and Flask Secret Key.Times asked 1Official solution
SimpleJWT_SECRET sign/verify. Flask SECRET_KEY sessions/CSRF. Alag rakhna better.
Leak = forge tokens. env var. Rotate.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).MAD2: POST /api/login = authentication.
@jwt_requiredidentity.@roles_required('admin')ya Vuev-if="isAdmin"= authorization. Frontend hide sirf UX — asli deny backend pe.Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: .env not git. config.py os.environ.
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
Authentication vs Authorization.Times asked 10Official 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 / venue / drive delete kar sakta hai, normal user nahi.MAD2 mein yeh alag layers hain: login API = authentication (JWT milta hai).
@roles_required('admin')ya Vuev-if="isAdmin"= authorization.Validation alag cheez hai (form sahi bhara hai ya nahi, jaise age 18+). Authentication identity hai, authorization permission, validation input quality.
Example
# Authentication if user and check_password_hash(user.password, form_password): token = create_access_token(identity=user.id) # Authorization if current_user.role != 'admin': abort(403) # logged in ho, lekin allowed nahiProject example: Student login = authentication. Student admin dashboard nahi khol sakta = authorization. Frontend button hide sirf UX hai — asli check backend pe hona chahiye.
Viva tip401 = not logged in / bad token. 403 = logged in, role galat. Examiner yeh difference bahut poochta 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
-
17
What is setup() in Vue?Times asked 1Official solution
Simplesetup() Composition entry — props, context, return state.
script setup syntactic sugar.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek
.vuefile. Parent-child exam favourite: list parent, row child:item+@delete.Example
export default { setup() { const n = ref(0) return { n } } }Project example: setup() { const n = ref(0); return { n } }
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
What is index.js?Times asked 1Official solution
Simpleindex.js/main.js frontend entry createApp router store mount.
package.json not entry of runtime, this is.
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: src/main.js.
Project example: src/main.js.
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
What is router.js?Times asked 1Official solution
Simpleroutes + createRouter history guards. Open explain 2 routes.
What is router.js / routes.js.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array,
router-view,router-link,meta.auth+beforeEachguard. Dynamic/venues/:id→$route.params.id.Vite/CLI SFC + npm build
dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flasksend_from_directory('dist')production pattern.Project example: meta.auth on dashboard.
Project example: meta.auth on dashboard.
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 router object and write routing code.Times asked 1Official solution
SimplecreateRouter({ history, routes }). app.use(router).
Create router object write routing code.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array,
router-view,router-link,meta.auth+beforeEachguard. Dynamic/venues/:id→$route.params.id.Vite/CLI SFC + npm build
dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flasksend_from_directory('dist')production pattern.Project example: main.js use(router).
Project example: main.js use(router).
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
Why did you use createWebHistory()?Times asked 1Official solution
SimplePretty URLs. Server fallback needed. Hash if static constraints.
Why createWebHistory.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: If hash, why hash: no Flask rewrite.
Project example: If hash, why hash: no Flask rewrite.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
22
Why are arrow functions used in route components?Times asked 1Official solution
SimpleShort + this parent. Route lazy import.
Not mandatory everywhere.
JS browser ki language.
constrebind nahi,letblock. Arrow() =>this lexical.Promise: pending/fulfill/reject.
async/awaitusko seedha padhne jaisa.try/catchawait pe. Yeh Celery nahi — Celery Python worker.fetchnative AJAX.array.filter/mapcomputed lists. Vue data reactive; plain JS DOM querySelector se manual.Project example: routes.js () => import('./Foo.vue')
Project example: routes.js () => import('./Foo.vue')
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
Difference between router-view and router-link.Times asked 1Official solution
Simplerouter-view current page ka hole. router-link SPA <a> bina reload.
App.vue Navbar + router-view = MAD1 extends equivalent.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array,
router-view,router-link,meta.auth+beforeEachguard. Dynamic/venues/:id→$route.params.id.Vite/CLI SFC + npm build
dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flasksend_from_directory('dist')production pattern.Example
<router-link to="/login">Login</router-link> <router-view></router-view>Project example: App.vue structure.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
24
Difference between $route and $router.Times asked 1Official solution
Simple$route current (path params query). $router methods push go replace.
Login redirect this.$router.push. Read id this.$route.params.id.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array,
router-view,router-link,meta.auth+beforeEachguard. Dynamic/venues/:id→$route.params.id.Vite/CLI SFC + npm build
dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flasksend_from_directory('dist')production pattern.Example
this.$router.push('/dashboard') this.$route.params.idProject example: login success push dashboard. Detail page params.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
25
What is State Management?Times asked 2Official solution
SimpleShared state across components — Vuex/Pinia. Props hell avoid.
How share globally.
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: token user cart.
Project example: token user cart.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
26
Difference between Mutation and Action.Times asked 1Official solution
SimpleMutations sync diary entry. Actions async kaam phir diary.
Direct state mutate action se Vuex 4 discouraged. Devtools time-travel mutations.
Purpose of Actions: API, phir commit. Purpose of Mutations: state change one place.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: action fetchVenues → commit setVenues. Mutation sirf array replace.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
27
Difference between Computed Properties and Watchers.Times asked 2Official solution
SimpleComputed naya value return. Watcher side effect (API, log) jab value change.
Search debounce, route param change → watch. Display filter → computed.
Confusion examiner favourite.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek
.vuefile. Parent-child exam favourite: list parent, row child:item+@delete.Example
watch: { query(newQ) { this.fetchSearch(newQ) } }Project example: q watch → fetchSearch. remainingSeats computed from capacity-booked.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
28
Difference between Methods and Computed.Times asked 1Official solution
Simplemethods: click handlers, har call run. computed: cached property jaisa.
@click save() method. {{ total }} computed. Mat computed ke andar API.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek
.vuefile. Parent-child exam favourite: list parent, row child:item+@delete.Project example: book() method POST. canBook computed seats>0 && !already.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
29
Difference between v-model and v-bind.Times asked 4Official solution
SimpleBind = ek tarfa poster lagana. Model = form jo typed text wapas data mein likhe.
Display/image/disabled → v-bind. Input/textarea/select → v-model.
Dono mix:<input v-bind:placeholder="hint" v-model="q">.Directives Vue ke special attributes hain — HTML ko superpower:
v-if/v-show,v-for,v-bind(:),v-on(@),v-model.v-if DOM se hataata/jodta. v-show sirf CSS display. Rare/permission: v-if. Bar-bar toggle: v-show. v-model two-way form. v-bind one-way JS→attribute.
:keyv-for pe zaroori warna Vue galat reuse.v-htmlXSS. Secret UI ke liye sirf v-if kaafi nahi — API 403 bhi.MAD1 Jinja server HTML. MAD2 yeh directives browser mein reactive.
Example
<p>{{ price }}</p> <img :src="url"> <input v-model="price">Project example: Search box v-model q. Result images :src.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
30
What is the purpose of :class (dynamic class binding)?Times asked 1Official solution
Simple:class object/array/string dynamic CSS.
Purpose dynamic class. Error red.
Directives Vue ke special attributes hain — HTML ko superpower:
v-if/v-show,v-for,v-bind(:),v-on(@),v-model.v-if DOM se hataata/jodta. v-show sirf CSS display. Rare/permission: v-if. Bar-bar toggle: v-show. v-model two-way form. v-bind one-way JS→attribute.
:keyv-for pe zaroori warna Vue galat reuse.v-htmlXSS. Secret UI ke liye sirf v-if kaafi nahi — API 403 bhi.MAD1 Jinja server HTML. MAD2 yeh directives browser mein reactive.
Example
<div :class="{ 'text-danger': error, 'fw-bold': important }">Msg</div>Project example: :class="{ 'text-danger': error }"
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
31
What is async / await?Times asked 2Official solution
Simpleasync/await Promise ko seedha-seedha padhne jaisa banata hai, magic nahi.
await sirf async ke andar. try/catch reject. Parallel: Promise.all.
Celery se confuse mat hona — yeh JS event loop, woh Python worker.
JS browser ki language.
constrebind nahi,letblock. Arrow() =>this lexical.Promise: pending/fulfill/reject.
async/awaitusko seedha padhne jaisa.try/catchawait pe. Yeh Celery nahi — Celery Python worker.fetchnative AJAX.array.filter/mapcomputed lists. Vue data reactive; plain JS DOM querySelector se manual.Example
async function load() { const r = await fetch('/api/venues') return r.json() }Project example: async mounted() { this.rows = await api() }
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
Why did you use Axios?Times asked 1Official solution
SimpleDX interceptors token, errors. Optional.
Consistency ek client.
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: axios instance baseURL.
Project example: axios instance baseURL.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
33
What is uselist?Times asked 2Official solution
SimpleFalse → scalar 1-1. True default list 1-M.
What is uselist. Any 1-1 in models? Honest.
ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.
class User(db.Model)+ Column + relationship.query.filter_by/db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.
Bookings source of truth DB, Redis cache copy.
Project example: Profile 1-1 or none.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
34
Difference between backref and back_populates.Times asked 10Official solution
Simplebackref jaadu se reverse attribute. back_populates dono taraf likho — clear.
backref='author' Post.author auto. New code back_populates preferred.
Examiner difference almost guaranteed.
ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.
class User(db.Model)+ Column + relationship.query.filter_by/db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.
Bookings source of truth DB, Redis cache copy.
Example
posts = db.relationship('Post', backref='author') # vs posts = db.relationship('Post', back_populates='author') Post.author = relationship('User', back_populates='posts')Project example: User.bookings / Booking.user dono explicit back_populates.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
35
Write a query to: Fetch all treks belonging to a manager. Fetch all jobs created by a company (e.g., Google). Fetch all approved drives/jobs.Times asked 1Official solution
Simplefilter manager_id / company name / approved. Same Query API. Write query fetch treks/jobs/drives.
Examiner project-specific names — same pattern.
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: Drive.query.filter_by(approved=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
-
36
What is SSE (Server-Sent Events)?Times asked 1Official solution
SimpleSSE ek tarah ka radio: server bolta rehta, client sunta. Client us pipe pe command nahi bhejta.
text/event-stream. EventSource browser. Notifications ke liye WebSocket se simple.
MAD2 optional. Celery complete hone pe poll bhi kaafi.
HTTP postcard (request-response). WebSocket phone call (dono taraf live). SSE radio (server→client stream). Webhook unka server tumhe POST karta hai (payment).
MAD2 mostly REST. Live dashboard = poll + Redis cache kaafi. Agar implement nahi kiya to design bolo, jhoot mat.
Project example: Export status poll GET task_id. SSE nahi kiya to bolo alternative.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
37
Write template and route code to select a course.Times asked 1Official solution
Simpleselect v-model course POST. Jinja: select name=course. MAD2 Vue. Write template and route select a course.
Notepad maybe Jinja still.
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: Vue select or Jinja if asked MAD1 leftover.
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
Add an Age dropdown (>30 / <30) to a form.Times asked 1Official solution
Simpleselect >30 <30 v-model filter. Add Age dropdown form.
Filter list computed or API.
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: form + filter.
Project example: form + filter.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
39
Read and print a JSON object (e.g., {"app": ">30"}) in the backend.Times asked 1Official solution
Simple
data=request.get_json(); print(data); return jsonify(data). Read print JSON object backend.{"app": ">30"}.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: POST Postman.
Project example: POST Postman.
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
Create two input fields (firstname, lastname) and concatenate them on button click.Times asked 1Official solution
Simpledata first last full. method concat this.full=first+' '+last. Two inputs concatenate click.
Vue.
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: tiny form.
Project example: tiny form.
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
Create a router and connect a new page/component.Times asked 1Official solution
SimplecreateRouter({ history, routes }). app.use(router).
Create router object write routing code.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array,
router-view,router-link,meta.auth+beforeEachguard. Dynamic/venues/:id→$route.params.id.Vite/CLI SFC + npm build
dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flasksend_from_directory('dist')production pattern.Project example: main.js use(router).
Project example: main.js use(router).
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
How much AI did you use?Times asked 1Official solution
SimpleSach % + kahan + kaise verify + kya seekha. Report se contradict mat.
Boilerplate vs business logic. Examiner process poochta. 'Sab ChatGPT' red flag.
Verify: docs, run, edge case. Seekha: CORS, JWT exp, beat vs worker.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Jo number form/PDF mein hai wahi. Example file jo AI se start kiya, khud debug kiya.
Viva tipExaminer 'kya seekha / kaise check kiya' pe marks. 'Sab ChatGPT' red flag. Jo khud debug kiya woh story 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
-
43
Which parts of the project did you implement yourself?Times asked 1Official solution
SimpleModels + booking logic khud. Boilerplate AI. Specific files.
Parts you implemented yourself.
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: Name 2 files pride.
Project example: Name 2 files pride.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet