Question 1 of 25
Hints left: 3
Q1
What is the purpose of database transactions?
Q2
How can you rollback a transaction in the sqlite3 module?
Q3
How can you create a new SQLite database using the sqlite3 module?
Q4
Which module is commonly used for database connectivity in Python?
Q5
Which of the following is NOT an isolation level for database transactions?
Q6
What does the term "CRUD" stand for in the context of databases?
-
A
-
B
-
C
-
D
Q7
How can you fetch data from a result set obtained through an execute() command?
Q8
How do you establish a connection to an SQLite database using sqlite3?
Q9
What is SQL injection?
Q10
What is an ORM (Object-Relational Mapping) in database connectivity?
Q11
What does the commit() method do in the context of database transactions?
Q12
What is a primary key in a database table?
Q13
How can you update data in a database table using SQL?
Q14
Which of the following is NOT a common SQL database management system?
Q15
What is the purpose of the execute() method in the sqlite3 module?
Q16
What is database connectivity in Python?
Q17
What is the purpose of the super() function in advanced OOP?
Q18
How do you define a class that maps to a database table using SQLAlchemy?
Q19
Which ORM library is popular for Python database connectivity?
Q20
What is the purpose of a stored procedure in a database?
Q21
What is the role of a foreign key in a relational database?
Q23
How do you execute a stored procedure from Python using the sqlite3 module?
Q24
What is a cursor in the context of database connectivity?
Q25
How do parameterized queries help prevent SQL injection?