-
1
2.How do you ensure that a Student cannot register to the same Drive more than once? Show me which part of the code does that.Times asked 2Official solution
SimpleDuplicate booking/register rokne ke liye unique constraint + query check pehle.
Example
exists = Booking.query.filter_by(user_id=uid, slot_id=sid).first() if exists: flash('Already booked'); abort/redirectCommunity answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
2
3.Open notepad and write an API that calculates sum of 2 numbersTimes asked 2Official 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
-
3
5.List all API methods - GET,POST,PATCH,PUT,etc and explain them.Times asked 2Official 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
-
4
6.Walkthrough of projectTimes asked 2Official 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