On this page
article
Quiz: Web Development
Test your knowledge of Django, Flask, FastAPI, REST APIs, and web development concepts with 10 questions.
Related: Backend Development, Django, Flask, FastAPI
Q1. What HTTP method is used to create a new resource in REST?
- A) GET
- B) POST ✓
- C) DELETE
- D) HEAD
Q2. In Django, what does python manage.py migrate do?
- A) Deploys the app
- B) Applies database schema changes ✓
- C) Runs tests
- D) Creates a superuser
Q3. What is Flask’s approach to web development?
- A) Batteries-included full stack
- B) Micro-framework — minimal core, choose your tools ✓
- C) Async-only
- D) Frontend framework
Q4. What does FastAPI use for automatic request validation?
- A) Django forms
- B) Pydantic models ✓
- C) JSON Schema only
- D) Manual validation
Q5. What status code means “Resource created successfully”?
- A) 200
- B) 201 ✓
- C) 204
- D) 301
Q6. What is an ORM?
- A) Online Resource Manager
- B) Object-Relational Mapping — Python objects to database tables ✓
- C) Open Runtime Module
- D) A type of HTTP request
Q7. In Django, what is the purpose of settings.py?
- A) User preferences
- B) Central project configuration ✓
- C) URL routing
- D) Template styling
Q8. What does @app.route('/users') do in Flask?
- A) Creates a database table
- B) Maps a URL path to a view function ✓
- C) Installs a package
- D) Runs migrations
Q9. What is JWT used for?
- A) Database queries
- B) Stateless authentication tokens ✓
- C) File uploads
- D) CSS styling
Q10. Why use Gunicorn/uWSGI instead of Flask/Django’s built-in server in production?
- A) Built-in server is faster
- B) Built-in server is for development only — not secure or performant ✓
- C) Gunicorn includes a database
- D) Required by Python license
Practice: Django Blog Project | Flask URL Shortener