ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2026 Question 13

2 marks · Entity-relationship diagrams and keys

An entity‑relationship diagram was created to design a database for a garage. Complete the entity‑relationship diagram below by identifying the primary and foreign keys. make finished regNumber costOfJob requires RepairJob jobName Car model jobNum mechanic regNumber

Marking scheme

• PK in Car entity • PK and FK in Repair job entity Do not award a mark if additional attributes have been marked • Car – PK: regNumber • RepairJob – PK jobNum, FK regNumber

Previous question: N5 Computing Science 2026 Question 12

Next question: N5 Computing Science 2026 Question 14