-
1
id vs class, and using which symbol it is represented in cssTimes 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
-
2
name vs idTimes asked 1Official solution
SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.
Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.
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
Change button color on hover.Times asked 1Official 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
-
4
Store service name in upper case.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
MVC His voice was not clear; that's the only issue. Overall, the viva was good.Times asked 1Official solution
SimpleMVC: Model=data (SQLAlchemy), View=Jinja HTML, Controller=Flask routes/business logic.
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