[Answer] A resultset is extracted from the database using the cursor object (that has been already created) by giving the following statement. Mydata=cursor.fetchone()

The Question : A resultset is extracted from the database using the cursor object (that has been already created) by giving the following statement. Mydata=cursor.fetchone() 

A) How many records will be returned by fetchone() method? 
B) What will be the datatype of Mydata object after the given command is executed? 

Solution for the question :
(a) One record

(b) tuple

The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.

Leave a Reply

Your email address will not be published. Required fields are marked *