Examveda
Examveda

What is the purpose of the execute() method in the sqlite3 module?

A. To print messages to the console

B. To fetch data from a database

C. To execute SQL queries on a database

D. To create new tables in a database

Answer: Option C

Solution(By Examveda Team)

The execute() method is used to execute SQL queries on an SQLite database.

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