MCQ
Which method is used to Commit pending transaction to the database in Python?
  • connection.commit()
  • B
    cursor.commit()
  • C
    cursor.rollback()
  • D
    cursor.savepoint()

Answer

Correct option: A.
connection.commit()
connection.commit()

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free