Quiz on MySQL Python Syntax



1. Which library is commonly used to connect Python to MySQL?
2. What is the method to establish a connection to a MySQL database in Python?
3. Which command is used to execute a SQL query in Python?
4. How do you fetch all rows from a result set in Python?
5. What must be done after completing database operations in Python?

Advertisements