Edexcel International GCSE Computer Science sample questions and answers (4CP0)

Guide overview All 20 topics Sample questions Papers and weighting Look inside Questions and answers

20 sample questions and answers

Taken from every topic of Edexcel International GCSE Computer Science, specification 4CP0. The full guide has 819.

These are 20 of 819.Get the guide, £7

Paper 1, Paper 2

Algorithms

50 questions in the guide, across 5 subtopics. More from this topic

  1. What an algorithm is

    What are algorithms used for?

    Show the answer
    Algorithms describe how to solve a problem before any code is written. A programmer then turns the algorithm into a program.

Paper 1, Paper 2

Searching and Sorting Algorithms

26 questions in the guide, across 3 subtopics. More from this topic

  1. Bubble sort

    Why is the method called a bubble sort?

    Show the answer
    The largest unsorted value moves to the end of the list on each pass, like a bubble rising to the top.

Paper 1, Paper 2

Decomposition and Abstraction

25 questions in the guide, across 3 subtopics. More from this topic

  1. Abstraction

    Give an example of abstraction in a map of an underground railway.

    Show the answer
    The map shows stations, lines and connections. Real distances and street details are left out because travellers do not need them.

Paper 1, Paper 2

Developing and Testing Code

37 questions in the guide, across 4 subtopics. More from this topic

  1. Trace tables and improving programs

    How does adding validation improve a program?

    Show the answer
    Validation stops invalid data entering the program. Errors and crashes later in the program are avoided.

Paper 1, Paper 2

Programming Constructs and Operators

45 questions in the guide, across 5 subtopics. More from this topic

  1. Relational and logic operators

    What symbols are used for the relational operators in Python?

    Show the answer
    Python uses ==, !=, <, >, <= and >=.

Paper 1, Paper 2

Data Types and Data Structures

41 questions in the guide, across 4 subtopics. More from this topic

  1. Arrays and records

    What index does the first element of an array have?

    Show the answer
    The first element has index 0, because indices start at zero.

Paper 1, Paper 2

Input, Output and Validation

30 questions in the guide, across 3 subtopics. More from this topic

  1. User input and output

    Why must input often be converted to another data type?

    Show the answer
    The input function always returns a string. A number typed by the user must be cast with int or float before calculations.

Paper 1, Paper 2

Subprograms

27 questions in the guide, across 3 subtopics. More from this topic

  1. Procedures and functions

    What is a function?

    Show the answer
    A function is a subprogram that carries out a task and returns a value to the code that called it.

Paper 1, Paper 2

Binary

80 questions in the guide, across 4 subtopics. More from this topic

  1. Binary and denary

    What base does each number system use?

    Show the answer
    Denary is a base 10 system. Binary is a base 2 system. Hexadecimal is a base 16 system.

Paper 1, Paper 2

Data Representation

34 questions in the guide, across 3 subtopics. More from this topic

  1. Representing characters

    How does a computer represent text?

    Show the answer
    Each character is given a binary code from a character set, and the text is stored as the sequence of those codes.

Paper 1, Paper 2

Data Storage and Compression

53 questions in the guide, across 3 subtopics. More from this topic

  1. Calculating file sizes

    Calculate the file size in KiB of an image of 1024 × 768 pixels with a colour depth of 8 bits.

    Show the answer
    The image has 786432 pixels, each using 1 byte, so the file is 786432 bytes. Dividing by 1024 gives 768 KiB.

Paper 1, Paper 2

Encryption

30 questions in the guide, across 3 subtopics. More from this topic

  1. Rail Fence and Pigpen ciphers

    Encrypt the word SECRET with a two-rail Rail Fence cipher.

    Show the answer
    The letters S, C and E go on the top rail and E, R and T on the bottom rail. Reading the top rail then the bottom gives SCEERT.

Paper 1

Hardware and the CPU

86 questions in the guide, across 7 subtopics. More from this topic

  1. Memory

    What is RAM used for?

    Show the answer
    Random access memory (RAM) stores the data and instructions of programs that are currently running.

Paper 1, Paper 2

Logic

26 questions in the guide, across 2 subtopics. More from this topic

  1. Logic statements for problems

    How are logic statements used in programs?

    Show the answer
    Programmers use logic statements as the conditions of IF statements. Loops also test logic statements to decide when to stop. A programmer combines two tests with AND to check that an age lies in a range.

Paper 1

Software

32 questions in the guide, across 3 subtopics. More from this topic

  1. Simulation, system and application software

    What is a simulation?

    Show the answer
    A simulation is a computer model run over time to show how a real system might behave under different conditions.

Paper 1

Programming Languages and Translators

22 questions in the guide, across 2 subtopics. More from this topic

  1. Assemblers, compilers and interpreters

    What is a compiler?

    Show the answer
    A compiler is a translator that converts a whole high-level program into machine code before it runs, producing an executable file.

Paper 1

Networks

58 questions in the guide, across 4 subtopics. More from this topic

  1. Why networks are used and types of network

    Give four reasons why computers are connected in a network.

    Show the answer
    Users on a network can share files and printers and communicate by email and messaging. A network also allows central backups and lets users log in from any computer.

Paper 1

Network Security

46 questions in the guide, across 4 subtopics. More from this topic

  1. Cloud security

    How can a user protect data stored in the cloud?

    Show the answer
    The user can encrypt files before uploading them. A strong password with two-factor authentication protects the account.

Paper 1

The Internet and the World Wide Web

34 questions in the guide, across 4 subtopics. More from this topic

  1. IP addressing standards

    What is the format of an IPv4 address?

    Show the answer
    An IPv4 address is 32 bits, written as four denary numbers from 0 to 255 separated by dots, such as 192.168.1.10.

Paper 1

Emerging Trends, Issues and Impact

37 questions in the guide, across 4 subtopics. More from this topic

  1. Emerging trends in computing

    Give one possible use and one risk of quantum computing.

    Show the answer
    Quantum computers could design new medicines by modelling molecules. Quantum computers could also break the encryption that protects data today.

Edexcel International GCSE Computer Science Active Recall Guide

The other 799 questions, with the answers printed after each section.

£7 GBP
Get the guide

Digital PDF, sent to the email address on your order.