ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Predefined functions
The code for part of a program is shown below. . . . Line 41 SET runnerTime TO firstRaceTime + secondRaceTime + thirdRaceTime + fourthRaceTime + fifthRaceTime Line 42 SET runnerAverage TO runnerTime / 5 Line 43 <display average to 2 decimal places> . . . State the pre-defined function and a parameter that could be used in Line 43. Pre-defined function Parameter
One mark each for: • round • 2 or 2 decimal places or runnerAverage Accept programming language specific versions of round, for example VB = math.round Do not accept parameter answers given as an example for second bullet point.