pythonjournals FastAPI Quiz – 10 Multiple Choice Questions for Beginners The test begins as soon as you click the Start button. You may continue working until the time limit expires. When the time is up, your test will be submitted automatically, whether you have finished or not. Please manage your time carefully and review your answers before the deadline. When your time is up, your test will be submitted automatically, whether you have finished answering or not. Please manage your time wisely. FastAPI Quiz – 10 Multiple Choice Questions for Beginners Test your FastAPI knowledge with this 10-question multiple choice quiz. Perfect for beginners learning Python API development. 1 / 10 What is FastAPI mainly used for? 1. Desktop applications 2. Building APIs with Python 3. Game development 4. Web scraping 2 / 10 For data validation and serialization, FastAPI mainly uses: 1. SQLAlchemy 2. Marshmallow 3. Pydantic 4. Django ORM 3 / 10 Which decorator is used to define a GET endpoint in FastAPI? 1. @app.get() 2. @app.route() 3. @app.fetch() 4. @app.api_get() 4 / 10 Which Python feature does FastAPI heavily rely on? 1. Generators 2. Metaclasses 3. Type hints (annotations) 4. Decorators only 5 / 10 What URL does FastAPI provide by default for interactive API docs (Swagger UI)? 1. /swagger 2. /apidocs 3. /docs 4. /openapi 6 / 10 FastAPI is built on top of which ASGI framework? 1. Flask 2. Starlette 3. Tornado 4. Sanic 7 / 10 Which of the following commands is used to run a FastAPI app with Uvicorn? 1. python app.py 2. flask run 3. uvicorn main:app --reload 4. fastapi run 8 / 10 Which parameter makes FastAPI automatically generate API documentation? 1. --docs flag 2. OpenAPI integration 3. Swagger UI import 4. JSON schema export 9 / 10 Which of the following is NOT true about FastAPI? 1. It supports async/await natively 2. It automatically generates OpenAPI schema 3. It only works with Python 2.7 4. It validates request data automatically 10 / 10 What is the default response format in FastAPI? 1. XML 2. Plain text 3. JSON 4. HTML Your score isThe average score is 57% 0% Restart quiz