Question 8

AQA Computer Science November 2021 Paper 1 (8520/1)GCSE3 marks

On the specification

3.2 Programming3.3 Fundamentals of data representation
Question text

8 Number the following lines of code in order (1–4) so that they create an algorithm box where the final value of the variable n is 13. The LEFTSHIFT operator performs a binary left shift. For example, 4 LEFTSHIFT 2 would left shift the value 4 twice. [3 marks] Line of code Position (1–4 where 1 is the first line) t ← t - 1 n ← t – n n ← 2 t ← n LEFTSHIFT 3 3