Glitch DevsJobs

Engineering

Python Backend Engineer (FastAPI) Practice Test

20 multiple choice questions for Python backend engineers: Python, SQL, FastAPI, validation, async code and testing.

Questions
20
Time
20 min
Pass mark
60%

No account or email needed.

About this test

This test is built around the Python Backend Engineer (FastAPI) role. It covers Python itself, SQL, and the parts of FastAPI that matter in real services: validation with Pydantic, dependencies, async endpoints and testing.

It is practice only and is not part of any job application.

What it covers

The question set has 24 questions: 16 easy, 7 medium and 1 hard. Each attempt draws 20 of them at random, so a second try is not the same test.

  • FastAPI (11)
  • Python (10)
  • SQL (3)

Try a few sample questions

These are real questions from the set, with the answers and a short explanation. Read the question, decide, then open it to check.

Sample 1 · SQL · easyWhich clause filters individual rows before they are grouped?Show the answer
  • HAVING
  • WHERECorrect
  • GROUP BY
  • ORDER BY

WHERE filters rows before grouping. HAVING filters the groups afterwards.

Sample 2 · Python · easyWhich of these Python types is immutable?Show the answer
  • list
  • dict
  • tupleCorrect
  • set

A tuple cannot be changed after it is created. Lists, dictionaries and sets can.

Sample 3 · FastAPI · easyWhat does FastAPI use to validate request bodies?Show the answer
  • Regular expressions
  • Pydantic modelsCorrect
  • JSON Schema files only
  • Django forms

You declare the body as a Pydantic model, and FastAPI parses and validates it for you.

How it works

  • 20 multiple choice questions, drawn at random from a larger set.
  • 20 minutes on the clock. The test submits itself when time runs out.
  • Pass mark: 60%.
  • No marks are taken off for wrong answers, so answer every question.
  • Some questions have more than one correct answer. You must pick all of them to score.
  • When you finish you see your score, the correct answers and a short explanation for each.
  • Your answers save as you go, so a dropped connection will not lose your work.
  • Please stay on the test page. Switching to another tab or window is recorded and you will see a warning.
  • Copying text, printing and screenshots are not allowed during the test.

This role is open

This test is built around the Python Backend Engineer (FastAPI) role on our jobs board. Taking it is not part of the application.

See the role

More practice tests

See all practice tests.

Share this test