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

N5 Computing Science 2022 Question 3

2 marks · Data types and structures

A club requires a program to calculate how much each member needs to pay in membership fees. Complete the table below to state which type of variable should be used. Variable Sample data Variable type membershipFee 37.50 real yearsOfMembership 6 memberName Jones

Marking scheme

One mark for each row, in the correct order. Variable Type integer string Accept abbreviations, for example Int, Str. Do not accept “number” or “text” if they are the only answer given.

Previous question: N5 Computing Science 2022 Question 2

Next question: N5 Computing Science 2022 Question 4