-
1
Self introTimes asked 1Official solution
Simple30 second: naam, degree, project kya hai, stack (Flask + Jinja + SQLAlchemy + SQLite).
Example
Main Priya, IITM BS. MAD1 mein parking/ticket app — Flask backend, Jinja templates, session login, SQLite.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
DemoTimes asked 9Official solution
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) LogoutViva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
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 the constraints of email id . Should accept the email id only if it is in a format like somthing@somthing.somethingTimes asked 1Official 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=5Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
4
Primary key foreign keyTimes asked 1Official solution
SimplePrimary key row ka unique identity — usually id Integer autoincrement.
Example
id = db.Column(db.Integer, primary_key=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
-
5
Restful apiTimes asked 3Official solution
SimpleREST: resources + HTTP verbs. GET read, POST create, PUT/PATCH update, DELETE remove. Stateless ideal.
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
Get postTimes asked 1Official solution
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST': # validate + session ... return render_template('login.html')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 models usedTimes asked 1Official 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
List and tuple differenceTimes asked 1Official solution
SimpleList changeable ordered, Tuple fixed ordered, Dict key-value.
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