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