engineering computer science MCQ #823

What is a 'transaction' in the context of databases?

engineering computer science MCQ #823

  1. Question 1

    Q1. What is a 'transaction' in the context of databases?

    • A) A single SQL statement
    • B) A sequence of SQL statements executed as a single, all-or-nothing unit
    • C) A database backup operation
    • D) A query optimization technique

    Answer: A sequence of SQL statements executed as a single, all-or-nothing unit

    Explanation: A transaction ensures that either all or none of the operations within it are committed to the database, maintaining data consistency.