From Mock A · Paper 1: Written examination
31 mark
Which programming construct repeats a block of code?
1 scores = [12, 45, 7, 30]2 highest = scores[0]3 for s in scores:4 if s > highest:5 highest = s6 print(highest)Identify one variable used in the program.x = 7y = 3print(x % y)for i in range(3): print(i)This paper is written by Plasmo in the style of the LRN GCSE Artificial Intelligence exam. It is not a past paper and is not produced or endorsed by the exam board.