Lesson 1.3.2b

1.3.2b SQL, data management, referential integrity and ACID transactions Quiz: OCR Computer Science, Unit 3

20 questions

In partnership with Revision Ninja

Lesson 1.3.2b, SQL, data management, referential integrity and ACID transactions: 20 multiple choice questions for the OCR Computer Science (H446), Unit 3: Exchanging data, written with Revision Ninja.

Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.

Host this setFree Play

The 20 questions

  1. Which SQL command is used to create a new database table?

    • CREATE TABLE
    • MAKE TABLE
    • NEW TABLE
    • BUILD TABLE
  2. Which SQL command alters the structure of an existing database table?

    • UPDATE TABLE
    • MODIFY TABLE
    • ALTER TABLE
    • CHANGE TABLE
  3. Which SQL command removes specified records from a database table?

    • CLEAR FROM
    • DROP TABLE
    • DELETE FROM
    • REMOVE FROM
  4. Which SQL keyword is used to modify existing data within a table?

    • ALTER
    • UPDATE
    • CHANGE
    • MODIFY
  5. Which rule ensures foreign keys always correspond to a valid primary key?

    • Entity integrity
    • Referential integrity
    • Domain integrity
    • Transactional integrity
  6. What does the letter A represent in the ACID database acronym?

    • Availability
    • Accessibility
    • Atomicity
    • Authenticity
  7. What does the letter C represent in the ACID database acronym?

    • Continuity
    • Compatibility
    • Concurrency
    • Consistency
  8. What does the letter I represent in the ACID database acronym?

    • Immutability
    • Independence
    • Isolation
    • Integrity
  9. Which clause filters individual records in a SELECT query based on conditions?

    • GROUP BY
    • WHERE
    • HAVING
    • ORDER BY
  10. Which SQL operator searches for a specified pattern in a column?

    • MATCH
    • LIKE
    • REGEX
    • SEARCH
  11. Which SQL clause sorts query results in ascending or descending order?

    • SORT BY
    • GROUP BY
    • ALIGN BY
    • ORDER BY
  12. Which SQL clause groups rows with identical values into summary rows?

    • SELECT DISTINCT
    • GROUP BY
    • ORDER BY
    • COMBINE BY
  13. What happens to related child records during a cascading delete operation?

    • Transaction aborted
    • Child records deleted
    • Foreign keys nulled
    • Parent record retained
  14. Which ACID property guarantees committed data is permanently saved despite system failure?

    • Isolation
    • Consistency
    • Durability
    • Atomicity
  15. Which standard SQL wildcard character represents zero or more characters?

    • ?
    • %
    • _
    • *
  16. Which SQL clause is used to filter groups created by GROUP BY?

    • HAVING
    • WHERE
    • ORDER BY
    • FILTER
  17. Which issue occurs when a transaction reads data modified by an uncommitted transaction?

    • Lost update
    • Non-repeatable read
    • Dirty read
    • Phantom read
  18. Which SQL constraint ensures all values in a column are unique?

    • UNIQUE
    • CHECK
    • PRIMARY KEY
    • DISTINCT
  19. Which SQL command permanently saves all changes made in a transaction?

    • COMMIT
    • ROLLBACK
    • SET TRANSACTION
    • SAVEPOINT
  20. Which SQL command cancels all uncommitted changes made in a transaction?

    • REVERT
    • UNDO
    • COMMIT
    • ROLLBACK

All OCR Computer Science quizzes