ExamVeda
Login
Home
21
How do you execute a stored procedure from Python using the sqlite3 module?
Discuss
Answer & Solution
Answer: Option A
Solution:
You can execute a stored procedure using the execute() method from the sqlite3 module.
22
What is the purpose of database transactions?
Discuss
Answer & Solution
Answer: Option C
Solution:
Database transactions ensure data integrity, consistency, and the ACID properties (Atomicity, Consistency, Isolation, Durability).
23
Which of the following is NOT an isolation level for database transactions?
Discuss
Answer & Solution
Answer: Option D
Solution:
"DATA UNCHANGED" is not an isolation level; the correct option is typically "SERIALIZABLE".
24
How can you rollback a transaction in the sqlite3 module?
Discuss
Answer & Solution
Answer: Option B
Solution:
The rollback() method is used to undo changes made during a transaction in the sqlite3 module.
25
What is the purpose of database normalization?
Discuss
Answer & Solution
Answer: Option C
Solution:
Database normalization organizes data to eliminate redundancy, improve data integrity, and minimize anomalies.