Vidyalelo
Python · Q12

Database Connectivity with Python

Programming · Python · question 12

Q12

What does the commit() method do in the context of database transactions?

A.
It creates a new database
B.
It inserts new records into the database
C.
It saves changes made during a transaction
Answer
D.
It cancels a transaction

Answer: Option C

Solution

Answer: Option C
Solution:
The commit() method saves the changes made during a database transaction.