Free Cambridge IGCSE Computer Science (0478) Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading 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.
1In which number system does a computer internally represent its data?
- A.Denary
- B.BinaryCorrect answer: B
- C.Hexadecimal
- D.Octal
2A Python program reads the text 7 from the keyboard. Which statement converts the input to an integer before storing it in quantity?
- A.quantity = str(input())
- B.quantity = input()
- C.quantity = int(input())Correct answer: C
- 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
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?
- A.AND
- B.NOR
- C.XOR
- 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
4What value does this Python code print? x = 12 if x > 5: y = 1 elif x > 10: y = 2 else: y = 0 print(y)
- A.1Correct answer: A
- B.2
- C.0
- 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
5A positive integer is written as FF in hexadecimal. What is its denary value?
- A.240
- B.255Correct answer: B
- C.256
- D.225
6Which values are printed by this Python loop, in order? for value in range(2, 9, 3): print(value)
- A.2, 3, 4, 5, 6, 7, 8
- B.2, 5, 8, 11
- C.3, 6, 9
- 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
7What does a character set provide when a computer represents text?
- A.An association between characters and font sizes
- B.An association between characters and keyboard positions
- C.An association between characters and numeric codesCorrect answer: C
- 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
8What value is assigned to position by this Python statement? position = "pineapple".find("apple")
- A.3
- B.5
- C.4Correct answer: C
- 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
9Which kind of elements makes up the stored representation of a bitmap image?
- A.A grid of individual pixelsCorrect answer: A
- B.A set of geometric drawing commands
- C.A collection of mathematically defined curves
- 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
10What is the result of the Python expression 23 // 5?
- A.4.6
- B.4Correct answer: B
- C.3
- D.5
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
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
pp. 8, 11–27, 29–49
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
p. 9, Assessment overview
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
cover, examination-year interval begins in 2029 (calendar-year normalisation)
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
cover, examination-year interval ends in 2031 (calendar-year normalisation)
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
pp. 9, 28
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
p.28
- How much does it cost for a student to take Cambridge exams?
article body
- Understanding results
Grade thresholds and grades
- Cambridge IGCSE Computer Science 0478 syllabus 2029–2031
p. 53, Grading and reporting
Confirm current exam arrangements with the exam provider.