Skip to content

GCSE Computer Science quiz

Two sets of 12 multiple-choice questions. Choose an answer for each, press Check my answers and read the worked explanation. Nothing is saved or sent anywhere.

Code is shown in a Python-style notation. Exam boards use their own pseudocode or reference language, so treat these as practice in tracing, not as a copy of any paper.

Set 1: number systems, tracing and the CPU

Question 1. Convert the binary number 10110110 to denary.

Question 2. Convert the denary number 75 to 8-bit binary.

Question 3. What is the hexadecimal number 3F in denary?

Question 4. Convert the denary number 200 to hexadecimal.

Question 5. An 8-bit register holds 01101101. A logical shift left by two places is carried out. What does it hold now?

Question 6. Add the binary numbers 00110101 and 00011110. What is the result?

Question 7. A square image is 8 pixels wide and 8 pixels high and uses 4 colours. Ignoring metadata, how large is it?

Question 8. A bubble sort makes one full pass through the list [5, 2, 9, 1], swapping neighbours that are out of order. What is the list after that first pass?

Question 9. What does this code print?
x = 3
y = 4
x = x + y
y = x - y
print(x, y)

Question 10. What does this code print?
total = 0
for i in range(1, 5):
    total = total + i
print(total)

Question 11. Which register holds the address of the next instruction to be fetched?

Question 12. Which type of memory loses its contents when the power is turned off?

Set 2: conversions, trace tables, networks and security

Question 1. Convert the hexadecimal number A7 to 8-bit binary.

Question 2. Convert the binary number 11001001 to hexadecimal.

Question 3. Convert the denary number 90 to 8-bit binary.

Question 4. What is the largest denary number that can be stored in 6 bits?

Question 5. What does this code print?
n = 27
count = 0
while n >= 5:
    n = n - 5
    count = count + 1
print(count, n)

Question 6. In Python-style slicing, the end position is not included and counting starts at 0. What does this code print?
word = "NETWORK"
print(word[1:4])

Question 7. What does this code print?
def f(a, b):
    if a > b:
        return a - b
    else:
        return b - a

print(f(3, 10) + f(10, 3))

Question 8. A binary search looks for 23 in the sorted list [2, 5, 8, 12, 16, 23, 38]. Checking starts with the middle item. Which value is checked second?

Question 9. Which protocol is mainly used to send email from a client to a mail server?

Question 10. An email pretending to be from a bank asks you to click a link and enter your login details. What is this attack called?

Question 11. Which UK law makes unauthorised access to computer material a crime?

Question 12. Which of these is a lossless compression method?

Part of the GCSE Computer Science revision set: the revision guide and glossary of key terms.

Sources

Questions are original. Check your own board's specification for what it examines.

Last checked: 28 October 2026

Stuck on Computer Science? Match a tutor

One-to-one sessions at GCSE level. DBS status shown on every profile.

Get matched