Examveda

How can you rollback a transaction in the sqlite3 module?

A. Using the commit() method

B. Using the rollback() method

C. By closing the connection

D. By re-executing the transaction

Answer: Option B

Solution (By Examveda Team)

The rollback() method is used to undo changes made during a transaction in the sqlite3 module.

Join The Discussion

Related Questions on Database Connectivity with Python

What is SQLite?

A. A type of programming language

B. A relational database management system

C. A Python module for web scraping

D. A version control system