2026-10-21 · check · 1 paper · 8/14 · 57% · not grade-converted
sat 2026-10-21 · 0 left blank
| Q | Topic | Marks | Question | Answer given | Note |
|---|---|---|---|---|---|
| 7 | A04 | 1/1 | The algorithm in **Figure 1** is written in AQA pseudo-code. **Figure 1** ``` FOR i ← 1 TO 6 OUTPUT i ENDFOR ``` State how many times the line `OUTPUT i` is executed when the algorithm runs. [1 mark] | the second line will repeat 6 times Working: while i in range(1, 7) print(i) | 6 — correct. Working is a Python rewrite, not a trace; not needed. |
| 8 | P04 | 0/1 | The algorithm in **Figure 2** is written in AQA pseudo-code. **Figure 2** ``` total ← 0 FOR i ← 1 TO 5 total ← total + i ENDFOR OUTPUT total ``` State the value that is output when the algorithm runs. [1 mark] | when the algorithm is run the output will be 13 Working: total = 0 while i in range(1, 6) total = total + i print(total) | 13 (R). Working is a Python rewrite, no trace table, no row before the loop, total never tracked; 1+2+3+4+5 never written though she restated the loop correctly. loss=technique (no trace). |
| 9 | D02 | 0/2 | **0 3 . 1** Convert the binary number `10111011` into decimal. [1 mark] **0 3 . 2** Convert the decimal number 150 into an 8-bit binary number. [1 mark] | 1. 179 2. 10011110 Working: 10111011 = 128+34+16+8+2+1=179 150 = 128+16+4+2 = 10011110 | 03.1: 179 (R). Adding-up line 128+34+16+8+2+1: 34 for 32, and it sums to 189 not 179 — two slips. 03.2: 10011110 (R, =158). Decomposition 150=128+16+4+2 correct; bits written with an extra 8. loss=technique x2. |
| 10 | D05 | 3/3 | Add the three binary numbers together. ``` 00110101 01001110 00011011 ``` Give your answer as an 8-bit binary number. You may show your working. [3 marks] | 10011110 Working: 00110101 01001110 +00011011 10011110 | 10011110 — correct. Column addition set out, carries not written. Stretch item done in 2 min. |
| 11 | D01 | 1/2 | Programmers often write numbers in hexadecimal rather than in binary. Explain why. [2 marks] | Programmers often write numbers in hexadecimal rather than in binary because hex is easer to write and you make less mestaces | Two consequences, no fact; fewer-digits fact absent. 1/2 cold again (19 Oct: 1/2 cold, 2/2 framed). loss=technique. |
| 12 | P03 | 3/5 | A program asks the user to enter the temperature in degrees Celsius as a whole number. The program then **stores** a message in a variable called `advice`: - if the temperature is below 5, the message is `Cold - wear a coat` - if the temperature is from 5 to 20 (including 5 and 20), the message is `Mild` - if the temperature is above 20, the message is `Hot - take water` Finally the program outputs the value of `advice` **once**. Write a Python 3 program for this. You **should** use indentation as appropriate, meaningful variable name(s) and Python 3 syntax in your answer. [5 marks] | j | PORTAL: 'j', 1 min. Typed in exam-skills chat 15:29, after close; student reports glitch. Marked from chat. A 1 int(input()). B 1 <5. C 1 elif <=20/else (colon missing, ignored). D 0 prints in branches, advice unused. E 0 no single output. loss=technique x2. Dad to decide if it stands. |
Ordered by marks lost. These are the candidates for reteaching.
| Topic | Name | Marks | Lost |
|---|---|---|---|
| D02 | 3.3.2 Binary ↔ decimal conversion (0–255) | 0/2 | 2 |
| P03 | 3.2.2 Selection (IF / ELSE IF / ELSE) | 3/5 | 2 |
| D01 | 3.3.1 Number bases: decimal, binary, hexadecimal; why hex is used | 1/2 | 1 |
| P04 | 3.2.2 Definite (count-controlled) iteration (FOR) | 0/1 | 1 |
| A04 | 3.1.1 Reading and writing AQA pseudo-code and program code | 1/1 | 0 |
| D05 | 3.3.4 Binary addition (up to three 8-bit numbers) | 3/3 | 0 |