ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Selection and logical operators
A complex condition is used to decide if hotel customers qualify for a free night’s stay. Part of the program is shown below. . . . Line 21 IF nightsBooked >= 6 AND (NOT (cardType = Bronze)) THEN Line 22 SEND custName TO DISPLAY Line 23 END IF . . . State all possible outputs when the following test data is used in this program. cardType custName nightsBooked J Kerr Gold 3 P Singh Silver 8 R Kroon Bronze 7 H Smith Gold 6
P Singh H Smith Any more than two names written award 0 marks with the exception that the candidate may have put working which would justify one or more of their answers.