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

N5 Computing Science 2022 Question 2

2 marks · Assignment, arithmetic and concatenation

The following code is used to input and display the points in a game. … Line 5 RECEIVE teamName FROM KEYBOARD Line 6 RECEIVE totalPoints FROM KEYBOARD Line 7 <display output> … When ‘Scotland’ and ‘27’ are input the following output is produced by the program. Scotland scored 27 points Using a programming language of your choice write Line 7 of the program.

Marking scheme

One mark for each of the following in the correct place/order: • correct variable names – teamName, totalPoints without quotations • output statement with additional two strings: “scored” and “points” with quotations For bullet point two, single or double quotations may be used dependent on language.

Previous question: N5 Computing Science 2022 Question 1

Next question: N5 Computing Science 2022 Question 3