engineering computer science MCQ #728

What is the purpose of a database transaction?

engineering computer science MCQ #728

  1. Question 1

    Q1. What is the purpose of a database transaction?

    • A) To improve query performance
    • B) To ensure data consistency and integrity
    • C) To manage user permissions
    • D) To store data

    Answer: To ensure data consistency and integrity

    Explanation: A database transaction ensures that multiple operations are executed as a single, all-or-nothing unit, maintaining data consistency and integrity.