CBSE Class 12 Computer Science Question 25 of 46

Interface Python with MySQL — Question 2

Back to all questions
2
Question

Question 2

A database ............... controls the connection to an actual database, established from within a Python program.

  1. database object
  2. connection object
  3. fetch object
  4. query object
Answer

connection object

Reason — A database connection object controls the connection to the database. It represents a unique session with a database connected from within a script/program.