ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · Database analysis
State two functional requirements of the database. Functional requirement 1 Functional requirement 2 Complete the entity‑relationship diagram on the opposite page for the database by • naming the entities • drawing any missing attributes from either entity • drawing the relationship between the entities • naming the relationship between the entities. pupilID name formReturned activityName* emergencyContact class activityName Identify the attribute that would be stored as a Boolean field when the database is implemented. When the database is implemented validation is added to several fields. The primary school has 14 different class names. For example P1A, P4B, P6/7A. Describe how validation of this field could be implemented when the database tables are created. State one field where range validation would be appropriate. A primary school is organising a range of 30 activities for its 550 pupils for the last day of term. The organiser wishes to create and use a database. The following are essential. Each pupil selects one activity. They must return a form which contains their name, class and emergency contact details. The organiser provides class teachers with a list of pupils’ names and chosen activities. Each activity has a leader and a unique activity name. Activity prices range from £2 to £30. The organiser provides a list for each activity leader, showing each pupil’s name, class and emergency contact details. The organiser records which pupils have returned a form so that they can search for pupils who have not signed up to an activity.
Any two from • the database should store the name, class and emergency contact of each pupil in the school • the database should store the activity name, price and leader for each activity • the database should store which pupils have returned forms • the database should output lists of pupils who are signed up for each activity • the database should output the pupils who have not signed up for an activity Answers will probably be worded differently. Answers should relate to the data being stored and the processes and output from that data as described in the scenario. One mark each for • both entities completed (Pupil, Activity) • activity attributes (leader, price) • relationship (M:1) • cardinality The relationship may be represented using any correct notation. For example M:N or ∞:1 Cardinality may be described in many different ways. Accept any appropriate answer. formReturned One mark each for • use of restricted choice • limited to the class names price