Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1BookID | Text | Primary key | AA field called DateDue stores a date and a presence check makes sure it is never left empty | |
| 2DateDue | Date/Time | Presence check | BA pet's name is made of letters, so it should be Text, not Integer. It is also a poor primary key because two pets can share the same name. A field such as PetID would be better. | |
| 3A pet shop table needs a field to store whether each animal has been vaccinated, which only has two possible values | CVaccinated | Boolean | |
| 4A school table stores each student's height in metres, such as 1.62, so the field needs a data type that allows decimal places | DA field called BookID holds text and is the primary key, so every book in the library has its own unique ID | |
| 5PetName | Integer | Primary key | EThe table structure has no primary key. A field such as BookID with a unique value for each record should be added and marked as the primary key. | |
| 6Fields: Title, Author (no primary key) | FHeight | Real |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
table structure — The plan for one table: list each field the scenario needs, give it a data type and any validation, and choose a primary key so the table can hold every record.Table: Pet
PetID | Integer | Primary key
Name | Text | Presence checkTable: Book
Title | Text | Presence check
Price | Real | Range check 0 to 100Table: Student
StudentID | Text | Primary key
Name | Text | Presence checkTable: Pet
Vaccinated | Boolean | Yes or No
PetID | Integer | Primary keyTable: School
YearGroup | Integer | Range check 7 to 13
StudentID | Text | Primary key