Binary and data representation – Edexcel IGCSE Computer Science (4CP0)

11 questions · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
4CP0 Paper 1 · Jun 2026 · Question 5May/June 2026Paper 115 marks
Loading question…
Question text

5 Computers use binary to represent and store data.
(a) Identify the value that represents the largest storage capacity.
(1)
A 0.1 GiB
B 10 MB
C 1,250 KB
D 1,000,000 bytes
(b) Figure 3 shows the first line of a bitmap image that has three colours.
Figure 3
Figure 4 shows the binary value of each colour.
00
01
10
Figure 4
(i) A run‑length encoding (RLE) algorithm is used to compress the image.
•
Two bits are used to represent the pixel colour.
•
Four bits are used to represent the number of pixels in each run. This is
encoded as an unsigned 4‑bit integer.
Complete the table to give the compressed encoding for the image shown
in Figure 3.
(3)
(ii) The complete image contains 51 lines.
Each line contains 16 pixels.
Construct an expression to calculate the total number of bytes required to
store the complete image.
You do not need to do the calculation.
(3)
(iii) The number of colours in the image is increased from three to four.
Explain the effect on the storage space required to store the image.
(2)
(c) An analogue sound is sampled and represented in digital form.
The sound is one second long and is sampled at 10 Hz.
The digital representation has a bit depth of 4 and is stored using sign and
magnitude representation.
Sound data:
0000 1111 0000 0111 0111 0111 0000 1111 1111 0000
Draw a graph to represent the data sampled.
You must include:
•
labels for the x and y axes
•
values for the x and y axes
•
each sample plotted as an X
•
samples joined up to show the digital form.
The first sample has been plotted for you.
(6)
(Total for Question 5 = 15 marks)

2
4CP0 Paper 1 · Jun 2025 · Question 3May/June 2025Paper 114 marks
Loading question…
Question text

3 Computers use binary to represent and store data.
(a) Binary and hexadecimal can be used to represent numbers.
(i) Convert the binary pattern 1011 1001 to hexadecimal.
(2)
(ii) Identify the statement that is true for hexadecimal.
(1)
A Hexadecimal can be processed faster by a computer than binary
B Hexadecimal digits can be represented using one nibble
C Hexadecimal uses less storage space in RAM than binary
D Hexadecimal uses the number base 6
(iii) Describe the binary shift that is equivalent to dividing an unsigned binary
number by 4.
(2)
(b) Figure 1 shows a bitmap image in a 16 × 16 grid. The image uses three colours.
Figure 1
(i) State the smallest component of a bitmap image.
(1)
(ii) Construct an expression to show the number of images, like the one in
Figure 1, that can be stored in 1 KB.
You do not need to do the calculation.
(4)
(iii) Explain why a run‑length encoding algorithm is a good choice for
compressing the image in Figure 1.
(2)
(c) The Pigpen cipher shown in Figure 2 has been used to encrypt a message.
J
K
L
A B C
D E
F
M N O
P Q R
G H
I
S
W
T
U
X
Y
V
Z
Figure 2
Complete the table to give the decrypted plain text.
(2)
Encrypted text
Plain text
(Total for Question 3 = 14 marks)

3
4CP0 Paper 1 · Jun 2025 · Question 4May/June 2025Paper 113 marks
Loading question…
Question text

4 A house has solar panels and a battery storage system.
(a) A smartphone application is used to monitor the battery storage system remotely.
The smartphone uses a 5G connection.
(i) Give two benefits of a 5G connection.
(2)
1
2
(ii) The application requires users to authenticate their identity.
One method of authentication is a user ID and password.
Describe one other method the application could use.
(2)
(iii) Software developers perform code reviews.
Give two reasons for carrying out a code review.
(2)
1
2
(b) The battery storage system stores readings as signed 8‑bit binary integers in
sign and magnitude format.
Complete the table to show the 8‑bit binary pattern and denary value for the
lowest and the highest values that can be stored.
(2)
8‑bit binary pattern
Denary value
Lowest value
Highest value
(c) The solar panels and battery storage system are controlled by a program.
(i) An LED is displayed when the system is on (O), the sun is shining (S), and the
house is not using all the power (P) generated by the solar panels.
Complete the truth table to show the results of each operation.
(3)
O
S
P
O AND S
NOT P
(O AND S) AND (NOT P)
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
(ii) The start‑up instructions for the solar panels and battery storage system are
stored in read‑only memory (ROM).
Explain why the start‑up instructions are stored in ROM.
(2)
(Total for Question 4 = 13 marks)

Advertisement
4
4CP0 Paper 1 · Jun 2024 · Question 3May/June 2024Paper 113 marks
Loading question…
Question text

3 Computers use binary to represent and store data.
(a) Two images are stored.
•
Image 1 has a colour depth of 8 bits.
•
Image 2 has a colour depth of 16 bits.
(i) State the number of colours that can be represented in Image 1.
(1)
(ii) Image 2 is 1920 pixels wide by 1080 pixels high.
Construct an expression to show the file size of the image in mebibytes.
You do not need to do the calculation.
(3)
(iii) One pixel in Image 1 is represented by the unsigned binary integer
1100 1010
Identify the denary equivalent.
(1)
A 54
B 191
C 202
D –74
(b) A register holds the value 1100 0001 as an 8‑bit binary value in two’s complement.
(i) Convert the two’s complement binary integer 1100 0001 to denary.
(2)
(ii) Give the result of applying an arithmetic shift left by one to the binary pattern
1100 0001
(1)
(iii) The value 1111 1111 is added to the value 1100 0001 stored in the register.
An error occurs.
Explain this error.
(2)
(c) The ASCII code for the character 1 is 011 0001
(i) Give the ASCII code for the character 5
(1)
(ii) Give two benefits of using ASCII to encode characters.
(2)
1
2
(Total for Question 3 = 13 marks)

5
4CP0 Paper 1 · Jun 2023 · Question 2May/June 2023Paper 113 marks
Loading question…
Question text

2 Computers manipulate binary patterns. People interpret those patterns.
(a) Complete the table by adding the hexadecimal notation for each of the
denary values.
(2)
Denary
Hexadecimal
8
12
(b) Identify the expression to give the number of unique binary patterns that can be
stored in six bits.
(1)
A 6 2
B 6 × 2
C 6 2 – 1
D 2 6
(c) Binary patterns are manipulated by shifts.
(i) Give the result of applying a logical shift right by two to the binary
pattern 0101 1100
(1)
(ii) Give the result of applying an arithmetic shift right by three to the binary
pattern 1100 0101
(1)
(d) Binary patterns can be interpreted as signed or unsigned integers.
(i) Convert the denary unsigned integer 60 to 8-bit binary.
(2)
(ii) Here is a binary bit pattern for a signed integer in sign and magnitude format.
1001 0110
Convert the binary bit pattern to denary.
Be sure to include a sign symbol in your answer.
(2)
(iii) Negating a signed integer means changing its sign without changing
its value.
The negation of +16 is –16. The negation of –24 is +24.
Here is the binary bit pattern for a signed integer in two’s complement format.
1110 0101
Convert the binary pattern to its negation in two’s complement.
(2)
(e) Construct an expression to convert 13 kilobytes to kibibytes.
You do not need to do the calculation.
(2)
(Total for Question 2 = 13 marks)

6
4CP0 Paper 1 · Jun 2022 · Question 2May/June 2022Paper 115 marks
Loading question…
Question text

2 Computers use binary to represent and store data.
(a) The denary number 78 is the ASCII code for the character N.
(i) Convert the denary number 78 to 8-bit binary.
(2)
(ii) Identify the number of characters that can be represented using
standard ASCII.
(1)
A 64
B 128
C 256
D 512
(iii) Explain one reason for using Unicode rather than ASCII to encode languages
other than English.
(2)
(b) Convert the denary number –43 to 8-bit binary using sign and
magnitude representation.
(2)
(c) Complete the table by adding these two 8-bit binary integers.
(2)
0
0
1
1
0
1
0
0
0
0
0
1
0
1
1
0
(d) A bitmap image is made up of pixels.
(i) An image has five colours.
Complete the table by adding a unique binary pattern for each colour.
Each pattern must use the same minimum colour depth.
(2)
Colour
Binary pattern
Green
Black
White
Red
Blue
(ii) Another image is 3579 pixels high and 6128 pixels wide.
The image is stored with a 32-bit colour depth.
The metadata for the image is 732 bytes.
Construct an expression to show how the file size, in megabytes, is calculated.
You do not need to do the calculation.
(4)
(Total for Question 2 = 15 marks)

7
4CP0 Paper 1 · Oct/Nov 2021 · Question 1Oct/Nov 2021Paper 116 marks
Loading question…
Question text

1 Computers use binary to represent and store data.
(a) Binary and hexadecimal notation can be used to represent numbers.
(i) Convert the denary number 77 to 8-bit binary.
(2)
(ii) Convert the denary number –126 to 8-bit binary using two’s complement.
(2)
(iii) Convert the binary pattern 11000110 to hexadecimal.
(2)
(b) Images are stored as binary data.
(i) A bitmap image is 400 pixels wide by 200 pixels high.
It has a colour depth of 12 bits.
Construct an expression to show how the image size, in bytes, is calculated.
Do not calculate the answer.
(2)
(ii) Figure 1 is an image of an icon, set out in an 8 × 8 pixel grid.
Figure 1
A run-length encoding compression algorithm uses:
•
W for white pixels
•
B for black pixels.
Give the result of compressing the first 4 lines of the icon using the algorithm.
(3)
Line 1
Line 2
Line 3
Line 4
(iii) Run-length encoding is a type of lossless compression.
State what is meant by the term lossless in this context.
(1)
(c) Raoul wants to record a song and store it as a digital sound file.
Figure 2 shows an overview of the process of recording a song and storing it as a
digital sound file.
Amplitude
Seconds
Figure 2
(i) Describe the steps taken to convert the analogue sound to a digital sound file.
(3)
(ii) Raoul uses a lossy algorithm to compress the file.
Give one reason why the sound quality of the compressed file may not be as
good as the uncompressed version.
(1)
(Total for Question 1 = 16 marks)

8
4CP0 Paper 1 · Jun 2021 · Question 1May/June 2021Paper 111 marks
Loading question…
Question text

1 Binary digits (bits) are grouped together to represent different types of data.
(a) Hexadecimal notation is sometimes used to represent patterns of binary digits.
Identify one reason why programmers use hexadecimal notation.
(1)
A Easier for a computer to understand.
B Easier for humans to read.
C Takes up less computer memory.
D Quicker than binary to execute.
(b) Convert the bit pattern 0101 1010 to hexadecimal.
(2)
(c) Identify the number of binary patterns that can be represented by 8 bits.
(1)
A 128
B 256
C 512
D 1024
(d) Complete the table by adding these two 8-bit binary integers.
(2)
0
0
1
1
0
0
1
0
0
0
1
1
0
0
1
1
(e) Give the result of performing a logical left shift of 1 place on the binary integer 0100.
(1)
(f ) Give the number of bits per character used by standard ASCII.
(1)
(g) Figure 1 shows a black and white bitmap image.
The pixels in row 5 are represented by the binary pattern 1001 1001
1
2
3
4
5
6
7
8
9
Figure 1
(i) State what is meant by the term pixel.
(1)
(ii) Construct an expression to show the number of pixels in the image.
(1)
(iii) The image is changed so that any pixel can be one of 16 different colours.
State the minimum number of bits that would be needed to represent
one pixel.
(1)
(Total for Question 1 = 11 marks)

Advertisement
9
4CP0 Paper 1 · Oct/Nov 2020 · Question 2Oct/Nov 2020Paper 19 marks
Loading question…
Question text

2 Computers use binary digits to represent data.
(a) Sign and magnitude and two’s complement are two ways of representing signed
integer numbers.
(i) Convert the denary number -94 to a binary pattern using sign and magnitude
representation.
(2)
(ii) 1000 1001 is a signed integer that uses two’s complement representation.
Convert this signed integer to denary.
(2)
(b) Denary numbers use base 10
Identify the base for hexadecimal numbers.
(1)
A 32
B 16
C 8
D 2
(c) Computers encode characters using ASCII and Unicode.
(i) State the number of characters that can be represented using standard ASCII.
(1)
(ii) The ASCII system uses 7 bits to represent a character. The ASCII code for the
character ‘A’ using denary is 65; other alphabetical characters follow on from
this in sequence.
Identify the ASCII code for ‘H’.
(1)
A 1000111
B 1001010
C 1001000
D 1000101
(iii) Explain why Unicode was developed.
(2)
(Total for Question 2 = 9 marks)

10
4CP0 Paper 1 · Oct/Nov 2020 · Question 4Oct/Nov 2020Paper 112 marks
Loading question…
Question text

4 Ibrahim works in the music industry.
(a) He is learning how sound is represented in binary.
Figure 3 illustrates this process.
7
6
5
4
Amplitude
3
A
B
2
1
0
6
7
8
0
1
2
3
4
5
Seconds
Figure 3
(i) State what the solid line labelled A represents.
(1)
(ii) State what the dashed line labelled B represents.
(1)
(iii) Give the sampling frequency, including the correct units.
(1)
(iv) Give one impact of increasing the sampling frequency.
(1)
(v) The bit-depth measures the resolution of the sound sample.
State the minimum bit-depth needed to store the sound sampled in Figure 3.
Justify your answer.
(2)
Bit-depth
Justification
(vi) Give the value in binary of the audio sample at the 4th second.
(1)
(b) Ibrahim wants to store a music file.
•
The sampling frequency is 47 kHz.
•
The bit-depth is 64
•
The analogue signal lasts for 819 seconds.
Construct an expression to show how the file size, in bytes, is calculated.
You do not need to do the calculation.
(4)
(c) Ibrahim wants to upload a music file to his online storage. The file has been
compressed using a lossy algorithm.
Give one drawback of using a lossy algorithm for this purpose.
(1)
(Total for Question 4 = 12 marks)

11
4CP0 Paper 1 · Jun 2019 · Question 3May/June 2019Paper 116 marks
Loading question…
Question text

3 Isra works in an office building where she has access to different types of network.
(a) Isra uses different types of networks for different tasks.
(i) Name the type of network she uses to print a document on the printer in the
office next door.
(1)
(ii) Name the type of network she uses to order stationery from an online
supplier.
(1)
(b) Identify the measurement used for network data speeds.
(1)
A Megabits per second
B Megapixels per second
C Mebicycles per second
D Mebihertz per second
(c) Isra uses her tablet computer and smartphone to access email.
She wants to set up a new email account.
State the email protocol she should use.
Justify your choice.
(3)
Email protocol
Justification
(d) The table describes characteristics of different network topologies.
Complete the table to match each characteristic to one network topology.
(4)
Characteristic
Bus
Ring
Star
Mesh
Network performance degrades as
more devices are added.
All devices are directly connected to
all others.
Each node has a physical attachment
to a routing device.
There are no data collisions, because
packets travel in the same direction.
(e) Information sent across networks is represented in bit patterns.
(i) The bit pattern 1101 0001 uses sign and magnitude representation.
Convert this bit pattern to a denary number.
(2)
(ii) Convert the denary number 75 to 8-bit binary.
(2)
(iii) The addition of these two 8-bit binary patterns generates an error condition.
0
1
1
0
1
1
0
1
1
1
0
0
0
0
0
0
+
0
0
1
0
1
1
0
1
Explain this error condition.
(2)
(Total for Question 3 = 16 marks)

Advertisement