← GCSE Computer Science

Exam practice — week 43 · lang, lit, cs — GCSE Computer Science section

2026-10-21 · check · 1 paper · 8/14 · 57% · not grade-converted

Exam Skills test #10, typed on the portal, sat 36 min for the whole paper.

exam-skills #10 8/14

sat 2026-10-21 · 0 left blank

QTopicMarksQuestionAnswer givenNote
7A041/1The 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.
8P040/1The 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).
9D020/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 = 1001111003.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.
10D053/3Add 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 1001111010011110 — correct. Column addition set out, carries not written. Stretch item done in 2 min.
11D011/2Programmers 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 mestacesTwo consequences, no fact; fewer-digits fact absent. 1/2 cold again (19 Oct: 1/2 cold, 2/2 framed). loss=technique.
12P033/5A 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]jPORTAL: '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.

Marks by topic

Ordered by marks lost. These are the candidates for reteaching.

TopicNameMarksLost
D023.3.2 Binary ↔ decimal conversion (0–255)0/22
P033.2.2 Selection (IF / ELSE IF / ELSE)3/52
D013.3.1 Number bases: decimal, binary, hexadecimal; why hex is used1/21
P043.2.2 Definite (count-controlled) iteration (FOR)0/11
A043.1.1 Reading and writing AQA pseudo-code and program code1/10
D053.3.4 Binary addition (up to three 8-bit numbers)3/30