Vidyalelo
Python · Q4

Database Connectivity with Python

Programming · Python · question 4

Q4

How can you create a new SQLite database using the sqlite3 module?

A.
Using the create_database() function
B.
By writing SQL queries
Answer
C.
By calling the new_database() method
D.
By executing the sqlite3.create() command

Answer: Option B

Solution

Answer: Option B
Solution:
New SQLite databases are created by executing SQL queries to define tables and data structures.