ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
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.
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’.