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

N5 Computing Science 2018 Question 7

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

Marking scheme

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.

Previous question: N5 Computing Science 2018 Question 6

Next question: N5 Computing Science 2018 Question 8