engineering computer science MCQ #702

What is the purpose of a transaction in a database?

engineering computer science MCQ #702

  1. Question 1

    Q1. What is the purpose of a transaction in a database?

    • A) To improve query performance
    • B) To ensure data consistency
    • C) To provide data security
    • D) To manage concurrent access

    Answer: To ensure data consistency

    Explanation: A transaction is a sequence of operations that are executed as a single, all-or-nothing unit, ensuring data consistency and integrity.