Final test

20 questions on the whole course. Answer 16 or more correctly, and you can download a learning certificate. The number of attempts is unlimited.

Engraving: a candidate writing an examination paper in a separate cell, Beijing, 1873

Questions

After checking, an explanation appears under each question.

1. Where does the server-side code of a website run?
2. What does routing do?
3. Why do you need a virtual environment?
4. Which framework gives you an ORM and an admin panel out of the box?
5. What is a migration in Django?
6. What is the right way to pass a value from the user into SQL?
7. What does {{ name }} do in a Jinja template?
8. Why redirect after a form is submitted successfully?
9. How should user passwords be stored?
10. What does a CSRF token in a form protect against?
11. Which status code fits after a record is created successfully?
12. Which HTTP method usually deletes a record in a REST API?
13. What does app.test_client() do in Flask?
14. What does the git commit command do?
15. What must not be left on a public server?
16. What will print(f"Hello, {name}!") print if name = "Anya"?
17. How many times will the loop for n in range(1, 5): run?
18. How is return different from print inside a function?
19. How do you get a price from the prices dictionary if the key "coffee" may be missing?
20. What controls how a page looks: colours, fonts, spacing?