OpenExamsFREE PRACTICE — ANY EXAM

Free Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science 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 Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1A journey planner models rail stations using their names and available connections. It leaves out the colour of each station building. Which computational thinking technique does that omission illustrate?

    1. A.Decomposition
    2. B.AbstractionCorrect answer: B
    3. C.Iteration
    4. D.Selection

    Explanation: “abstract common features of a group of objects so as to create a general model” Building colour has no bearing on the connections the planner needs. Omitting it simplifies the station model. Decomposition splits a problem into parts, iteration repeats an operation, and selection chooses a branch.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 11, 1.1.1

  2. 2A program reads an order file, calculates each order total and prints a summary. Which decomposition lets programmers test each stage separately using the previous stage's result?

    1. A.Read and total orders in the input stage, then repeat the total calculation in the summary stage.
    2. B.Create three stages that each read the original file and produce a different summary.
    3. C.Read records into a list, calculate totals from that list, then format the computed totals.Correct answer: C
    4. D.Place all three operations in a single stage and give the combined stage a meaningful name.

    Explanation: “use decomposition and abstraction to help them understand problems and design effective solutions” The read, calculate and display tasks have distinct responsibilities and pass explicit results between stages. Repeating work, requiring every stage to read the file, or grouping everything under a single name does not give the requested independent stages.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 44, 6.1.1

  3. 3Three screens calculate a delivery charge by calling the same subprogram. What maintenance benefit does this design give when the charging formula changes?

    1. A.Each screen can store a separate copy of the revised formula.
    2. B.The shared call keeps the previous charge available for each screen.
    3. C.Each screen can choose its own formula without any code changes.
    4. D.The revised formula can be maintained in one shared place.Correct answer: D

    Explanation: “They should recognise that subprograms are a form of abstraction.” Each caller uses the same implementation, so changing that implementation updates the calculation for all callers. The call neither creates independent formulas nor retains the amounts previously calculated.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 12, 1.1.2

  4. 4A programme generates passes for a print queue. For one design step, the programme only has to decide whether the requested number of pages exceeds the pages still available. Which proposed function interface isolates that decision from the printer and user interfaces?

    1. A.`fits(requested_pages, available_pages)` returns a Boolean.Correct answer: A
    2. B.`fits(printer, user_account)` updates the account and runs the printer.
    3. C.`fits(user_account, document_name)` displays the document title.
    4. D.`fits(printer, print_job)` sends the job and returns the printer's status.

    Explanation: “use decomposition and abstraction to help them understand problems and design effective solutions” The decision depends only on two counts and produces a Boolean. Passing the printer or account introduces system details and side effects. Displaying a document title and returning a printer status do not answer the capacity question.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 44, 6.1.1

  5. 5A flowchart must send requests down different paths depending on whether `seats_available` is greater than zero. Which shape should contain that test in the Pearson convention?

    1. A.DiamondCorrect answer: A
    2. B.Rectangle
    3. C.Parallelogram
    4. D.Rounded terminator

    Explanation: “Denotes a decision to be made.” The diamond on p. 29 indicates a decision with alternative paths. The rectangle represents processing, the parallelogram indicates input/output, and the terminator marks a start or end.

    Reference: Pearson Edexcel GCSE Computer Science Specification — p. 29, Appendix 2, diamond symbol

  6. 6A weather report calls `daily_high(readings)` for the highest temperature. The team will replace the function’s implementation. Which condition lets the report use either implementation without changing its code?

    1. A.The new function must use the same loop variable names.
    2. B.The new function must examine readings in the same order.
    3. C.The new function must store the same number of temporary values.
    4. D.The new function must accept the same input and return the same result.Correct answer: D

    Explanation: “use decomposition and abstraction to help them understand problems and design effective solutions” The caller relies on the function's interface and result rather than its internal steps. Local names, traversal order and temporary storage can change while preserving that contract.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 44, 6.1.1

  7. 7An algorithm must keep a parcel's tracking code as text, its mass as a real number and its delivered status as a Boolean in one collection. Which data structure represents this collection naturally while preserving the three data types?

    1. A.An array of integers
    2. B.A string of characters
    3. C.A record with three fieldsCorrect answer: C
    4. D.An array of Boolean values

    Explanation: “a record – a sequence of items which may have different (heterogeneous) data types” A record can keep differently typed fields together. Each proposed array holds only its named type, while a string would store character representations and lose the distinct field types.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 14, 1.2.2

  8. 8A programme is meant to exchange the values of `east` and `west`. It starts with `east = 4` and `west = 9`. Which sequence preserves both original values and exchanges them?

    1. A.`east = west; west = east`
    2. B.`saved = east; east = west; west = saved`Correct answer: B
    3. C.`saved = west; east = saved; west = east`
    4. D.`saved = east; west = saved; east = west`

    Explanation: “Assignment statements are used to (re)bind names to values” Saving 4 before reassigning east allows west to receive the original 4 after east gets 9. The other sequences each overwrite one original value before it can reach the other variable, ending in 9 and 9, 9 and 9, or 4 and 4.

    Reference: Python Language Reference: Simple Statements — §7.2, Assignment statements

  9. 9An algorithm computes `7 + 3 × (9 − 5)`. What value should it produce?

    1. A.40
    2. B.19Correct answer: B
    3. C.29
    4. D.34

    Explanation: “understand order of precedence rules (BIDMAS)” Brackets give 4, multiplication gives 3 × 4 = 12, and adding 7 gives 19. The result 40 adds 7 and 3 before multiplication. Ignoring the brackets gives 7 + 27 − 5 = 29. Omitting subtraction gives 7 + 27 = 34.

    Reference: Pearson Edexcel GCSE Computer Science Getting Started Guide — p. 15, 1.2.3

  10. 10A report should print the total for each row of `counts = [[3, 1], [5, 2]]`. In the starter code the reset `row_total = 0` is outside the outer loop, so the outputs are 4 and 11. ```python row_total = 0 for row in counts: for count in row: row_total += count print(row_total) ``` Where should the reset move to make the outputs 4 and 7 for these rows and work for arbitrary row lengths?

    1. A.Immediately before the outer loop
    2. B.At the start of its inner loop, before adding each count
    3. C.At the start of each outer loop pass, before the inner loopCorrect answer: C
    4. D.After the inner loop, immediately before printing the total

    Explanation: “iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence” The outer loop runs once per row. Resetting there gives a fresh accumulator before processing all its counts. Resetting inside the inner loop keeps only the last count, resetting before the print yields zero, and leaving the reset outside accumulates across rows.

    Reference: Python Tutorial: More Control Flow Tools — §4.2, for Statements

Exam Review

About Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science · GB

Key exam facts

Provider
Pearson (Pearson Edexcel) is the qualification developer, external examining and awarding organisation. Exam centres administer the examinations, including the onscreen sitting.
Format
Two externally examined, non-tiered papers taken for one qualification. Paper 1 is written with multiple-choice, short, medium and extended open-response, tabular and diagrammatic items. Paper 2 is a practical onscreen assessment using Python 3 in an IDE, with supplied coding files and the Programming Language Subset. Centres must submit a Practical Programming Statement. The four-option practice bank supports preparation, including code reading and selection, and practical coding still requires hands-on practice. Paper 1 contains five compulsory multipart questions, one per topic. Paper 2 contains six compulsory practical programming tasks.
Exam questions
Total questions: 11.
Time limit
Paper 1: 1 hour 30 minutes. Paper 2: 2 hours. Standard working time totals 3 hours 30 minutes across the two separate papers.
Passing score
GCSE grades 9–1 (9 highest), based on the combined raw mark out of 150, with U for unclassified. In England, grade 4 is the standard pass. The raw-mark boundary varies by series. For example, grade 4 required 46/150 in June 2026.
Exam fee
£58.65 (GBP) standard subject entry fee charged by Pearson to UK centres for June 2027 under the 2026/27 fee schedule. A resit requires both papers in the same May/June series. Pearson doubles the entry fee from its late-fee date and trebles it after its high late-fee date. Candidate charges may depend on the exam centre.

Topics covered

  • Paper 1: Principles of Computer Science (50%)

    • Computational thinking
    • Decomposition and abstraction
    • understand the benefit of using decomposition and abstraction to model aspects of the real world and analyse, understand and solve problems
    • understand the benefits of using subprograms
    • Algorithms
    • be able to follow and write algorithms (flowcharts, pseudocode*, program code) that use sequence, selection, repetition (count-controlled, condition-controlled) and iteration (over every item in a data structure), and input, processing and output to solve problems
    • understand the need for and be able to follow and write algorithms that use variables and constants and one- and two-dimensional data structures (strings, records, arrays)
    • understand the need for and be able to follow and write algorithms that use arithmetic operators (addition, subtraction, division, multiplication, modulus, integer division, exponentiation), relational operators (equal to, less than, greater than, not equal to, less than or equal to, greater than or equal to) and logical operators (AND, OR, NOT)
    • be able to determine the correct output of an algorithm for a given set of data and use a trace table to determine what value a variable will hold at a given point in an algorithm
    • understand types of errors that can occur in programs (syntax, logic, runtime) and be able to identify and correct logic errors in algorithms
    • understand how standard algorithms (bubble sort, merge sort, linear search, binary search) work
    • be able to use logical reasoning and test data to evaluate an algorithm’s fitness for purpose and efficiency (number of compares, number of passes through a loop, use of memory)
    • Truth tables
    • be able to apply logical operators (AND, OR, NOT) in truth tables with up to three inputs to solve problems
    • Data
    • Binary
    • understand that computers use binary to represent data (numbers, text, sound, graphics) and program instructions and be able to determine the maximum number of states that can be represented by a binary pattern of a given length
    • understand how computers represent and manipulate unsigned integers and two’s complement signed integers
    • be able to convert between denary and 8-bit binary numbers (0 to 255, -128 to +127)
    • be able to add together two positive binary patterns and apply logical and arithmetic binary shifts
    • understand the concept of overflow in relation to the number of bits available to store a value
    • understand why hexadecimal notation is used and be able to convert between hexadecimal and binary
    • Data representation
    • understand how computers encode characters using 7-bit ASCII
    • understand how bitmap images are represented in binary (pixels, resolution, colour depth)
    • understand how analogue sound is represented in binary (amplitude, sample rate, bit depth, sample interval)
    • understand the limitations of binary representation of data when constrained by the number of available bits
    • Data storage and compression
    • understand that data storage is measured in binary multiples (bit, nibble, byte, kibibyte, mebibyte, gibibyte, tebibyte) and be able to construct expressions to calculate file sizes and data capacity requirements
    • understand the need for data compression and methods of compressing data (lossless, lossy)
    • Computers
    • Hardware
    • understand the von Neumann stored program concept and the role of main memory (RAM), CPU (control unit, arithmetic logic unit, registers), clock, address bus, data bus, control bus in the fetch-decode-execute cycle
    • understand the role of secondary storage and the ways in which data is stored on devices (magnetic, optical, solid state)
    • understand the concept of an embedded system and what embedded systems are used for
    • Software
    • understand the purpose and functionality of an operating system (file management, process management, peripheral management, user management)
    • understand the purpose and functionality of utility software (file repair, backup, data compression, disk defragmentation, anti-malware)
    • understand the importance of developing robust software and methods of identifying vulnerabilities (audit trails, code reviews)
    • Programming languages
    • understand the characteristics and purposes of low-level and high-level programming languages
    • understand how an interpreter differs from a compiler in the way it translates high-level code into machine code
    • Networks
    • Networks
    • understand why computers are connected in a network
    • understand different types of networks (LAN, WAN)
    • understand how the internet is structured (IP addressing, routers)
    • understand how the characteristics of wired and wireless connectivity impact on performance (speed, range, latency, bandwidth)
    • understand that network speeds are measured in bits per second (kilobit, megabit, gigabit) and be able to construct expressions involving file size, transmission rate and time
    • understand the role of and need for network protocols (Ethernet, Wi-Fi, TCP/IP, HTTP, HTTPS, FTP) and email protocols (POP3, SMTP, IMAP)
    • understand how the 4-layer (application, transport, internet, link) TCP/IP model handles data transmission over a network
    • understand characteristics of network topologies (bus, star, mesh)
    • Network security
    • understand the importance of network security, ways of identifying network vulnerabilities (penetration testing, ethical hacking) and methods of protecting networks (access control, physical security, firewalls)
    • Issues and impact
    • Environmental
    • understand environmental issues associated with the use of digital devices (energy consumption, manufacture, replacement cycle, disposal)
    • Ethical and legal
    • understand ethical and legal issues associated with the collection and use of personal data (privacy, ownership, consent, misuse, data protection)
    • understand ethical and legal issues associated with the use of artificial intelligence, machine learning and robotics (accountability, safety, algorithmic bias, legal liability)
    • understand methods of intellectual property protection for computer systems and software (copyright, patents, trademarks, licencing)
    • Cybersecurity
    • understand the threat to digital systems posed by malware (viruses, worms, Trojans, ransomware, key loggers) and how hackers exploit technical vulnerabilities (unpatched software, out-of-date anti-malware) and use social engineering to carry out cyberattacks
    • understand methods of protecting digital systems and data (anti-malware, encryption, acceptable use policies, backup and recovery procedures)
  • Paper 2: Application of Computational Thinking (50%)

    • Problem solving with programming
    • Develop code
    • be able to use decomposition and abstraction to analyse, understand and solve problems
    • be able to read, write, analyse and refine programs written in a high-level programming language
    • be able to convert algorithms (flowcharts, pseudocode*) into programs
    • be able to use techniques (layout, indentation, comments, meaningful identifiers, white space) to make programs easier to read, understand and maintain
    • be able to identify, locate and correct program errors (logic, syntax, runtime)
    • be able to use logical reasoning and test data to evaluate a program’s fitness for purpose and efficiency (number of compares, number of passes through a loop, use of memory)
    • Constructs
    • understand the function of and be able to identify the structural components of programs (constants, variables, initialisation and assignment statements, command sequences, selection, repetition, iteration, data structures, subprograms, parameters, input/output)
    • be able to write programs that make appropriate use of sequencing, selection, repetition (count-controlled, condition-controlled), iteration (over every item in a data structure) and single entry/exit points from code blocks and subprograms
    • Data types and structures
    • be able to write programs that make appropriate use of primitive data types (integer, real, Boolean, char) and one- and two-dimensional structured data types (string, array, record)
    • be able to write programs that make appropriate use of variables and constants
    • be able to write programs that manipulate strings (length, position, substrings, case conversion)
    • Input/output
    • be able to write programs that accept and respond appropriately to user input
    • be able to write programs that read from and write to comma separated value text files
    • understand the need for and be able to write programs that implement validation (length check, presence check, range check, pattern check)
    • understand the need for and be able to write programs that implement authentication (ID and password, lookup)
    • Operators
    • be able to write programs that use arithmetic operators (addition, subtraction, division, multiplication, modulus, integer division, exponentiation)
    • be able to write programs that use relational operators (equal to, less than, greater than, not equal to, less than or equal to, greater than or equal to)
    • be able to write programs that use logical operators (AND, OR, NOT)
    • Subprograms
    • be able to write programs that use pre-existing (built-in, library) and user-devised subprograms (procedures, functions)
    • be able to write functions that may or may not take parameters but must return values, and procedures that may or may not take parameters but do not return values
    • understand the difference between and be able to write programs that make appropriate use of global and local variables

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?

Two externally examined, non-tiered papers taken for one qualification. Paper 1 is written with multiple-choice, short, medium and extended open-response, tabular and diagrammatic items. Paper 2 is a practical onscreen assessment using Python 3 in an IDE, with supplied coding files and the Programming Language Subset. Centres must submit a Practical Programming Statement. The four-option practice bank supports preparation, including code reading and selection, and practical coding still requires hands-on practice. Paper 1 contains five compulsory multipart questions, one per topic. Paper 2 contains six compulsory practical programming tasks.

How many questions are on the exam?

Total questions: 11.

How long is the exam?

Paper 1: 1 hour 30 minutes. Paper 2: 2 hours. Standard working time totals 3 hours 30 minutes across the two separate papers.

What is the passing score?

GCSE grades 9–1 (9 highest), based on the combined raw mark out of 150, with U for unclassified. In England, grade 4 is the standard pass. The raw-mark boundary varies by series. For example, grade 4 required 46/150 in June 2026.

How much does the exam cost?

£58.65 (GBP) standard subject entry fee charged by Pearson to UK centres for June 2027 under the 2026/27 fee schedule. A resit requires both papers in the same May/June series. Pearson doubles the entry fee from its late-fee date and trebles it after its high late-fee date. Candidate charges may depend on the exam centre.

Official sources and references

Confirm current exam arrangements with the exam provider.