Vidyalelo
Python · Q11

Database Connectivity with Python

Programming · Python · question 11

Q11

How can you fetch data from a result set obtained through an execute() command?

A.
Using the get() method
B.
By calling fetch()
C.
By iterating through the result set
Answer
D.
By using the fetch_data() function

Answer: Option C

Solution

Answer: Option C
Solution:
Data from a result set is typically fetched by iterating through the result set using loops.