OpenExamsFREE PRACTICE — ANY EXAM

Free Cambridge IGCSE Computer Science (0478) Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the Cambridge IGCSE Computer Science (0478) practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1In which number system does a computer internally represent its data?

    1. A.Denary
    2. B.BinaryCorrect answer: B
    3. C.Hexadecimal
    4. D.Octal

    Explanation: The syllabus states, "Know that computers internally represent all data in binary". Denary and hexadecimal can make values easier for people to read, but the internal data representation uses binary.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — 1.1.1, p.11

  2. 2A Python program reads the text 7 from the keyboard. Which statement converts the input to an integer before storing it in quantity?

    1. A.quantity = str(input())
    2. B.quantity = input()
    3. C.quantity = int(input())Correct answer: C
    4. D.quantity = float(input())

    Explanation: The syllabus guide states that `int(data)` "converts data to type integer" and shows casting directly on input. `input()` alone retains text, `str()` produces text, and `float()` produces a floating-point number rather than an integer.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — Python guide 1.5, p.32

  3. 3A two-input logic gate produces 0 when both inputs are 1, and produces 1 for every other input combination. Which gate has this behaviour?

    1. A.AND
    2. B.NOR
    3. C.XOR
    4. D.NANDCorrect answer: D

    Explanation: The NAND function table gives "H H L", "L X H" and "X L H" for inputs A, B and output Y (H = 1, L = 0, X = either input state). The output is therefore 0 only for two 1 inputs. AND complements that result; NOR and XOR each fail other listed combinations.

    Reference: SN74HC00/SN54HC00 NAND gates datasheet — Table 8-1, Function Table, p.10

  4. 4What value does this Python code print? x = 12 if x > 5: y = 1 elif x > 10: y = 2 else: y = 0 print(y)

    1. A.1Correct answer: A
    2. B.2
    3. C.0
    4. D.3

    Explanation: The guide describes an if–elif chain as "selection that checks multiple conditions in order" and "executing just one of them". Since 12 > 5 is true, y becomes 1 and the elif branch is skipped. The result 2 wrongly treats the later matching condition as overriding the first; 0 wrongly takes else, and 3 wrongly combines branch values.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — Python guide 1.11.1, p.37

  5. 5A positive integer is written as FF in hexadecimal. What is its denary value?

    1. A.240
    2. B.255Correct answer: B
    3. C.256
    4. D.225

    Explanation: Python’s official conversion example pairs "hex(255)" with "0xff". Each F represents 15, so FF = 15 × 16 + 15 = 255. The value 240 omits the final digit, 256 is the next power of 16, and 225 multiplies the two digit values.

    Reference: Python 3.10 Built-in Functions — hex(x)

  6. 6Which values are printed by this Python loop, in order? for value in range(2, 9, 3): print(value)

    1. A.2, 3, 4, 5, 6, 7, 8
    2. B.2, 5, 8, 11
    3. C.3, 6, 9
    4. D.2, 5, 8Correct answer: D

    Explanation: Python’s documentation states, "The given end point is never part of the generated sequence" and allows a specified increment. Starting at 2 and adding 3 gives 2, 5 and 8; the next value, 11, exceeds the stop boundary. The other choices ignore the step, exceed the boundary, or confuse the start with the step.

    Reference: Python 3.10 Tutorial — More Control Flow Tools — 4.3, The range() Function

  7. 7What does a character set provide when a computer represents text?

    1. A.An association between characters and font sizes
    2. B.An association between characters and keyboard positions
    3. C.An association between characters and numeric codesCorrect answer: C
    4. D.An association between characters and frequency counts

    Explanation: The syllabus describes "a set of characters that have corresponding numeric codes". This is the defining character-to-code association. Font size controls rendering, keyboard positions concern input layout, and frequency counts may guide compression; none defines the character set.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — 1.2.2, p.13

  8. 8What value is assigned to position by this Python statement? position = "pineapple".find("apple")

    1. A.3
    2. B.5
    3. C.4Correct answer: C
    4. D.-1

    Explanation: The guide states, "The first character of the string is index zero", and describes `.find()` as returning the index of the first matching substring. In pineapple, the substring apple starts after the four characters pine, so its index is 4. Counting from one gives 5, 3 is one position early, and -1 would mean the substring was not found.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — Python guide 1.10, pp.33–34

  9. 9Which kind of elements makes up the stored representation of a bitmap image?

    1. A.A grid of individual pixelsCorrect answer: A
    2. B.A set of geometric drawing commands
    3. C.A collection of mathematically defined curves
    4. D.A set of scalable shape equations

    Explanation: The syllabus states, "Know that a bitmap image is made up of pixels". A bitmap stores a pixel representation; drawing commands, curve definitions and shape equations instead describe approaches used for vector graphics.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — 1.2.8, p.13

  10. 10What is the result of the Python expression 23 // 5?

    1. A.4.6
    2. B.4Correct answer: B
    3. C.3
    4. D.5

    Explanation: The guide identifies `//` as "floor division". The quotient 23 ÷ 5 is 4.6; flooring gives 4. The result 4.6 uses ordinary division, 3 is the remainder, and 5 rounds upward rather than flooring.

    Reference: Cambridge IGCSE Computer Science 0478 syllabus 2029–2031 — Python guide 1.7, p.32

Exam Review

About Cambridge IGCSE Computer Science (0478)

Cambridge IGCSE Computer Science (0478) · GB

Key exam facts

Provider
Cambridge International Education is the awarding body, part of Cambridge University Press & Assessment, University of Cambridge. Both papers are externally assessed.
Format
0478 paper-based route: two compulsory written papers with short-answer and structured questions; Paper 2 includes an unseen multipart scenario requiring Python 3.10 or higher. English only. Paper 1 prohibits calculators; Paper 2 permits calculators. The separate 0265 digital route is outside this bank.
Time limit
Paper 1: 1 hour 45 minutes. Paper 2: 1 hour 45 minutes. These are writing times; 3 hours 30 minutes across two papers. The Paper 2 scenario has a suggested 30 minutes within its paper, not extra time.
Passing score
Grades A*–G, with A* highest and G lowest; below the grade G standard is Ungraded. There is no single fixed percentage pass mark: Cambridge compares the combined syllabus mark with the applicable syllabus-option grade thresholds. Each paper is 75 marks and contributes 50%.
Exam fee
Cambridge does not publish its school examination fees to learners; schools may add administrative costs. Contact the entering school or examination centre for the applicable amount, currency and conditions, including any retake charges. No universal learner fee is stated.

Topics covered

  • Computer Systems and Logic (50%)

    • Data representation and logic gates
    • Number systems and logic gates
    • Text, sound and images
    • Data compression
    • Logic circuits and hardware
    • Logic circuits
    • CPU architecture
    • Data storage
    • Data transmission and networking
    • Packet switching
    • Data transmission
    • Internet Protocol Addresses
    • The Internet and the World Wide Web
    • Data integrity and cybersecurity
    • Data integrity
    • Cybersecurity
    • Software
    • Types of software and interrupts
    • Programming languages, translators and IDEs
    • Automated systems and robotics
    • Automated systems
    • Robotics
    • Emerging technologies
    • Artificial Intelligence
    • Quantum computers
  • Algorithms and Programming (50%)

    • Programming fundamentals
    • Programming concepts
    • Programming operators
    • Algorithm design
    • Abstraction
    • Decomposition
    • Algorithm design and evaluation
    • Further programming and testing
    • Variables and constants
    • Procedures and functions
    • Lists
    • File handling
    • Testing
    • Databases and Structured Query Language (SQL)
    • Databases
    • SQL

How to prepare

Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.

These independent practice questions are not actual exam items and do not guarantee a passing result.

Frequently asked questions

What is the exam format?

0478 paper-based route: two compulsory written papers with short-answer and structured questions; Paper 2 includes an unseen multipart scenario requiring Python 3.10 or higher. English only. Paper 1 prohibits calculators; Paper 2 permits calculators. The separate 0265 digital route is outside this bank.

How long is the exam?

Paper 1: 1 hour 45 minutes. Paper 2: 1 hour 45 minutes. These are writing times; 3 hours 30 minutes across two papers. The Paper 2 scenario has a suggested 30 minutes within its paper, not extra time.

What is the passing score?

Grades A*–G, with A* highest and G lowest; below the grade G standard is Ungraded. There is no single fixed percentage pass mark: Cambridge compares the combined syllabus mark with the applicable syllabus-option grade thresholds. Each paper is 75 marks and contributes 50%.

How much does the exam cost?

Cambridge does not publish its school examination fees to learners; schools may add administrative costs. Contact the entering school or examination centre for the applicable amount, currency and conditions, including any retake charges. No universal learner fee is stated.

Official sources and references

Confirm current exam arrangements with the exam provider.