Question 1
What is a database?
-
An organised collection of related data
-
A single unstructured data file
-
A program that displays one record
-
A network that transfers data
Question 2
What does one relational database table usually store?
-
Records about one entity type
-
Fields from several unrelated entities
-
One value from a single record
-
Results from every possible query
Question 3
What is a record in a database table?
-
Row in a table
-
Column in a table
-
Query in SQL
-
Form in an app
Question 4
What is a field in a database table?
-
Column in a table
-
Row in a table
-
Table relationship
-
Primary key
Question 5
Which property must a primary key have?
-
A unique value for every record
-
A repeated value in related records
-
A text value in every record
-
A value copied from a foreign key
Question 6
What is a foreign key used for?
-
Linking a record to another table
-
Uniquely identifying every record in its table
-
Sorting records by one field
-
Checking a value against a range
Question 7
In SQL, which command retrieves data?
-
SELECT
-
UPDATE
-
DELETE
-
INSERT
Question 8
In SQL, which clause filters rows?
-
WHERE
-
ORDER BY
-
FROM
-
JOIN
Question 9
What is ORDER BY used for in SQL?
-
Sort results
-
Delete results
-
Count fields
-
Create tables
Question 10
What ordering does ASC specify?
-
Lowest to highest
-
Highest to lowest
-
Newest to oldest
-
Last letter to first
Question 11
What ordering does DESC specify?
-
Highest to lowest
-
Lowest to highest
-
Oldest to newest
-
First letter to last
Question 12
What does WHERE YearGroup = 10 do in an SQL query?
-
Selects records for Year 10
-
Sorts records by year group
-
Changes every year group to 10
-
Adds a new Year 10 record
Question 13
Which clause sorts pupils alphabetically by surname?
-
ORDER BY Surname ASC
-
ORDER BY Surname DESC
-
WHERE Surname = 'ASC'
-
SELECT ASC(Surname)
Question 14
Which SQL command adds a new record to a table?
-
INSERT INTO
-
UPDATE
-
DELETE FROM
-
ORDER BY
Question 15
What does AND mean in an SQL condition?
-
Both conditions must be true
-
Either condition can be true
-
No condition is checked
-
Rows are sorted descending
Question 16
When is an SQL condition joined by OR true?
-
When at least one condition is true
-
Only when both conditions are true
-
Only when exactly one condition is true
-
When both conditions are false
Question 17
What does INSERT INTO do?
-
Adds new records
-
Changes existing records
-
Removes existing records
-
Retrieves matching records
Question 18
What is UPDATE used for in SQL?
-
Change existing records
-
Create a new database
-
Delete a table
-
Count all rows
Question 19
What is DELETE used for in SQL?
-
Remove records
-
Add records
-
Encrypt records
-
Sort records
Question 20
Which field is the best primary key for a Customers table?
-
CustomerID
-
Surname
-
Town
-
DateOfBirth
Question 21
Which field in Orders should link each order to Customers?
-
CustomerID
-
OrderDate
-
Quantity
-
DeliveryTown
Question 22
Which query removes pupil 42 without deleting other pupils?
-
DELETE FROM Pupils WHERE PupilID = 42
-
DELETE FROM Pupils
-
UPDATE Pupils WHERE PupilID = 42
-
DELETE PupilID = 42 FROM Pupils
Question 23
What is an entity in database design?
-
A real-world object stored as data
-
One property stored in a field
-
One row returned by a query
-
A rule that validates input
Question 24
Which SQL keyword names the table used by a SELECT query?
-
FROM
-
WHERE
-
ORDER BY
-
UPDATE
Question 25
How can a database avoid inconsistent copies of a customer's address?
-
Store it once in Customers
-
Copy it into every order
-
Use a different format in each table
-
Remove CustomerID from Orders
Question 26
What is double-entry verification?
-
Entering data twice and comparing the entries
-
Checking data against permitted limits
-
Encrypting data before it is stored
-
Counting duplicate records after entry
Question 27
Why use validation in a database?
-
To prevent invalid data being stored
-
To correct every invalid value automatically
-
To choose a primary key
-
To encrypt all stored data
Question 28
Which example is a one-to-many relationship?
-
One customer placing several orders
-
One pupil having one candidate number
-
Several pupils joining several clubs
-
Several doctors treating several patients
Question 29
What does a database field's data type specify?
-
The kind of value it can store
-
Whether its value must be unique
-
Which table it links to
-
How its records are sorted
Question 30
Why is a WHERE clause important in an UPDATE query?
-
It limits which records are changed
-
It chooses which fields are displayed
-
It sorts the updated records
-
It creates a new table