Home > Databases > Quizzes > SQLAlchemy Practice Test Questions
SQLAlchemy Practice Test Questions
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 54% Most missed: “How many arguments does the create_engine() function take?”

SQLAlchemy is an open-source SQL toolkit and object-relational mapper for the Python programming language released under the MIT License. SQLAlchemy supports MySQL starting with version 5.0.

SQLAlchemy Practice Test Questions
Time left 00:00
25 Questions

1. In SQLAlchemy, if you want to use the max function, what syntax would you write?
2. Which of the following methods returns the first element of the first result?
3. How many relationship patterns does SQLAlchemy provide?
4. All defined table objects are created using the engine object and stored in metadata via the ____ function.
5. Which of the following functions returns the number of rows selected from a table?
6. In which of the following function text is composed into a statement that is passed to the database with the majority of its original form?
7. To add one or more columns, which of the following functions will you use?
8. How many arguments does the create_engine() function take?
9. In which of the following methods, the instance returned will provide direct access to the identity map of the session that owns the primary key identifier?
10. ____ is the system SQLAlchemy uses to interconnect with various types of DBAPI implementations and databases.
11. Which of the following functions shows mutual rows from both the SELECT statements?
12. Which of the following is the correct syntax to sort the names in ascending order?
13. Why do we use ORM?
14. Which of the following is the default DBAPI that the MYSQL dialect uses?
15. Which class connects a pool and a dialect in SQLAlchemy?
16. Which language does SQLAlchemy use?
17. Which of the following functions closes the session using connection invalidation?
18. Which of the following is the creator of SQLAlchemy?
19. If you want to apply a JOIN to a SELECT statement so that the related rows are loaded in the same result set, which form of relationship loading will you use?
20. How do you combine multiple conditions in the WHERE clause in SQLAlchemy?
21. To add multiple records, which of the following functions will you use?
22. If you want to validate whether the column value belongs to a collection of items in a list then which of the following functions you will use?
23. Which kind of relationship refers to a parent with the help of a foreign key on the child table?
24. How many distinct components does SQLAlchemy have?
25. Which of the following functions flushes all items and any transaction in progress?