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

N5 Computing Science 2016 Question 12

2 marks · Fixed and conditional loops

A running group has 16 members. They are taking part in a marathon. Using pseudocode or a programming language of your choice, write the code which will take in each runner’s time for the marathon.

Marking scheme

One mark each for: • loop 16 times • input of time from user inside loop No formal syntax is required as candidates can write answer in “pseudocode”. For the concept of looping through elements of an array award 1 mark in place of ‘loop 16 times’.

Previous question: N5 Computing Science 2016 Question 11

Next question: N5 Computing Science 2016 Question 13