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.
The 20 questions
-
Which SQL command is used to create a new database table?
- CREATE TABLE
- MAKE TABLE
- NEW TABLE
- BUILD TABLE
-
Which SQL command alters the structure of an existing database table?
- UPDATE TABLE
- MODIFY TABLE
- ALTER TABLE
- CHANGE TABLE
-
Which SQL command removes specified records from a database table?
- CLEAR FROM
- DROP TABLE
- DELETE FROM
- REMOVE FROM
-
Which SQL keyword is used to modify existing data within a table?
- ALTER
- UPDATE
- CHANGE
- MODIFY
-
Which rule ensures foreign keys always correspond to a valid primary key?
- Entity integrity
- Referential integrity
- Domain integrity
- Transactional integrity
-
What does the letter A represent in the ACID database acronym?
- Availability
- Accessibility
- Atomicity
- Authenticity
-
What does the letter C represent in the ACID database acronym?
- Continuity
- Compatibility
- Concurrency
- Consistency
-
What does the letter I represent in the ACID database acronym?
- Immutability
- Independence
- Isolation
- Integrity
-
Which clause filters individual records in a SELECT query based on conditions?
- GROUP BY
- WHERE
- HAVING
- ORDER BY
-
Which SQL operator searches for a specified pattern in a column?
- MATCH
- LIKE
- REGEX
- SEARCH
-
Which SQL clause sorts query results in ascending or descending order?
- SORT BY
- GROUP BY
- ALIGN BY
- ORDER BY
-
Which SQL clause groups rows with identical values into summary rows?
- SELECT DISTINCT
- GROUP BY
- ORDER BY
- COMBINE BY
-
What happens to related child records during a cascading delete operation?
- Transaction aborted
- Child records deleted
- Foreign keys nulled
- Parent record retained
-
Which ACID property guarantees committed data is permanently saved despite system failure?
- Isolation
- Consistency
- Durability
- Atomicity
-
Which standard SQL wildcard character represents zero or more characters?
- ?
- %
- _
- *
-
Which SQL clause is used to filter groups created by GROUP BY?
- HAVING
- WHERE
- ORDER BY
- FILTER
-
Which issue occurs when a transaction reads data modified by an uncommitted transaction?
- Lost update
- Non-repeatable read
- Dirty read
- Phantom read
-
Which SQL constraint ensures all values in a column are unique?
- UNIQUE
- CHECK
- PRIMARY KEY
- DISTINCT
-
Which SQL command permanently saves all changes made in a transaction?
- COMMIT
- ROLLBACK
- SET TRANSACTION
- SAVEPOINT
-
Which SQL command cancels all uncommitted changes made in a transaction?
- REVERT
- UNDO
- COMMIT
- ROLLBACK
Related quizzes
- Compression, encryption and hashing Quiz · 1.3.1 · 20 questions
- Database design: keys, entity relationships, normalisation and indexing Quiz · 1.3.2a · 20 questions
- Network characteristics, protocols, TCP/IP, DNS and protocol layering Quiz · 1.3.3a · 20 questions
- LANs, WANs, switching, network hardware, security and client-server Quiz · 1.3.3b · 20 questions
- HTML, CSS, JavaScript and client-side and server-side processing Quiz · 1.3.4a · 20 questions
- Search engine indexing and the PageRank algorithm Quiz · 1.3.4b · 20 questions
- Processor components: ALU, control unit, registers and buses Quiz · 1.1.1a · 20 questions
- Operating systems and memory management Quiz · 1.2.1a · 20 questions
- Primitive data types and binary number representation Quiz · 1.4.1a · 20 questions
- Data Protection Act 1998 and Computer Misuse Act 1990 Quiz · 1.5.1a · 20 questions