In Python-MySQL connectivity, what is the primary purpose of a Cursor object?

2026

In Python-MySQL connectivity, what is the primary purpose of a Cursor object?

Answer: C. To execute SQL queries and fetch results from the database.

  1. A.

    To store the password for the database connection.

  2. B.

    To visually point to the data in the MySQL Workbench.

  3. C.

    To execute SQL queries and fetch results from the database.

  4. D.

    To act as a backup of the entire database.

Attempted by 262 students.

Show answer & explanation

Correct answer: C

Explore the full course: Bpsc

Loading lesson…