Data representation – IGCSE Computer Science (0478)
141 questions · page 1 of 10 · Clear filters
Question text
1
Data storage can be measured in different units.
(a) Tick (3) one box to show which is the largest unit of measurement for data storage.
A exbibyte (EiB)
B
gibibyte (GiB)
C
mebibyte (MiB)
D
tebibyte (TiB)
[1]
(b) Calculate how many kibibytes (KiB) are equal to 3072 bytes.
… [1]
working space
…
…
…
(c) Data is converted to binary to be stored by a computer.
Tick (3) one box to show the correct statement about why data is converted to binary for
storing in a computer.
A Binary uses numbers and characters to store all the data.
B
Binary is one type of data that a computer can store.
C
Data is processed by logic gates that can only be set as binary numbers.
D
Only binary numbers can be input into a computer.
[1]
© Cambridge University Press & Assessment 2026
Question text
3
Hexadecimal and binary are two examples of a number system.
(a) Give one other example of a number system.
… [1]
(b) Convert the hexadecimal number 2A to an 8-bit binary number.
… [1]
working space
…
…
…
(c) Convert the hexadecimal number 101 to a 12-bit binary number.
… [1]
working space
…
…
…
(d) Convert the binary number 01110001 to a hexadecimal number.
… [1]
working space
…
…
…
© Cambridge University Press & Assessment 2026
,
,
(e) Convert the binary number 001011011000 to a hexadecimal number.
… [1]
working space
…
…
…
(f)
Add the binary numbers 10011101 and 11110000 using binary addition.
Give your answer in binary. Show all your working.
1 0 0 1 1 1 0 1
+
1 1 1 1 0 0 0 0
[4]
© Cambridge University Press & Assessment 2026
Question text
8
A student opens a document on their computer and inputs text.
(a) Explain how the computer represents the text.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
,
,
(b) The student stores a video on their computer.
The video contains sound and images.
(i)
Complete the table with the missing terms and descriptions about sound and images.
term
description
the smallest unit of an image that is made up of
one colour
…
…
sound sample
…
…
the dimensions of an image
…
…
colour depth
…
…
the number of samples that are recorded each second
…
[5]
(ii)
The student wants to compress the video.
Give two methods of compression that the student could use to compress the video.
1 …
2 …
[2]
© Cambridge University Press & Assessment 2026
,
,
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (Cambridge University Press & Assessment) to trace copyright holders, but if any items requiring clearance
have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in our Copyright
Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live
examination series.
Cambridge International Education is the name of our awarding body and a part of Cambridge University Press & Assessment, which is a department of the
University of Cambridge.
© Cambridge University Press & Assessment 2026
Question text
1
A smartwatch has a built-in microphone that allows a person to use voice commands to control
the smartwatch.
(a) Tick (3) one box to show whether a microphone is an input, output, process or
storage device.
A input
B
output
C
process
D
storage
[1]
(b) The smartwatch stores data that is displayed for the user.
Identify the smallest unit of data that is stored by the smartwatch.
… [1]
(c) One item of data displayed on the smartwatch is the current outdoor temperature. The
temperature is stored in a register as a two’s complement binary integer.
(i)
Tick (3) one box to show whether two’s complement is a base 2, base 8, base 10 or
base 16 number system.
A
base 2
B
base 8
C
base 10
D
base 16
[1]
(ii)
Give the two’s complement 8-bit binary integer that would be stored for the temperature
of 32 degrees Celsius.
… [1]
© Cambridge University Press & Assessment 2026
ĬÍĊ®Ġ´íÈõÏĪÅĊÞú¸þ×
,
,
(iii)
Give the two’s complement 8-bit binary integer that would be stored for the temperature
of –14 degrees Celsius.
… [1]
working space
…
…
…
…
(d) Identify one example of a sensor that would be built into the smartwatch.
… [1]
© Cambridge University Press & Assessment 2026
ĬÏĊ®Ġ´íÈõÏĪÅĊÞü¸þ×
Question text
3
A video streaming service uses hexadecimal to display error codes when problems occur with
their videos.
(a) Tick (3) one box to show which statement is incorrect about why hexadecimal is used to
display the error codes.
A Hexadecimal is easier to debug than binary.
B
Hexadecimal is easier to read than binary.
C
Hexadecimal uses less screen space than binary.
D
Hexadecimal uses less storage space than binary.
[1]
(b) There is a problem with streaming a video and the error codes 152 and 30F are displayed.
Convert the two hexadecimal error codes to binary numbers.
152 …
30F …
[2]
working space
…
…
…
(c) The binary numbers 010001110101 and 101011101000 are stored.
Convert the two binary numbers to the hexadecimal error codes that would be displayed.
010001110101 …
101011101000 …
[2]
working space
…
…
…
© Cambridge University Press & Assessment 2026
ĬÏĊ®Ġ´íÈõÏĪÅĊàü¸Ā×
,
,
(d) Hexadecimal numbers can also be converted to denary numbers.
Convert the two hexadecimal error codes 0A2 and 104 to denary numbers.
0A2 …
104 …
[2]
working space
…
…
…
(e) The videos are stored on a web server.
The data for the videos is sent from the web server to a user’s computer using
packet switching.
(i)
Each packet of data is divided into three parts. One part is the payload.
Give the names of the two other parts of a packet of data.
1 …
2 …
[2]
(ii)
Explain the role of a router in packet switching.
…
…
Question text
1
A computer has primary and secondary storage.
(a) Tick (✓) one box to show which is an example of primary storage.
A
cloud storage
B
firmware
C
read only memory (ROM)
D
solid-state drive (SSD)
[1]
(b) Solid-state is a type of storage. An SSD is one example of solid-state storage.
(i)
Identify two other examples of solid-state storage.
1 …
2 …
[2]
(ii)
Give two other types of storage.
1 …
2 …
[2]
(c) The computer uses the ASCII character set for a text file.
One word from the text file is ‘cat’. The ASCII denary value for the character ‘c’ is 99.
(i)
Give the ASCII denary values for ‘a’ and ‘t’.
a …
t …
[2]
(ii)
Identify one other character set that the computer could use.
… [1]
© Cambridge University Press & Assessment 2026
,
,
(iii)
The text file needs to be compressed.
Identify the most appropriate type of compression for the text file. Justify your choice.
compression type …
justification …
…
…
…
…
…
[4]
© Cambridge University Press & Assessment 2026
Question text
8
A building has a security keypad that requires the input of a 3-digit denary number. The denary
number input is then converted to an 8-bit binary number.
(a) The denary numbers 071 and 200 are input.
Convert these denary numbers to 8-bit binary numbers.
071 …
200 …
[2]
working space
…
…
…
(b) Two binary numbers are 00101001 and 10110100.
Give the denary numbers that were input for these binary numbers.
00101001 …
10110100 …
[2]
working space
…
…
…
…
(c) A microprocessor is used to find out whether a user has input the correct 3-digit
denary number.
Explain the role of the microprocessor in this process.
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
,
,
(d) A display screen next to the keypad displays the current temperature inside the building.
The current temperature is stored as a two’s complement binary integer and is displayed as
a denary number.
(i)
Give the denary number that would be displayed for each of the two’s complement
binary integers.
00100011 …
11101010 …
[2]
(ii)
Give the two’s complement binary integer that would be stored when the denary
number 14 is displayed.
… [1]
working space
…
Question text
1
(a) Tick (✓) one box to show which statement about data storage is correct.
A
One bit equals four nibbles.
B
One byte equals 16 bits.
C
One exbibyte (EiB) equals 1024 × 1024 tebibytes (TiB).
D
One mebibyte (MiB) equals 1024 × 1024 gibibytes (GiB).
[1]
(b) An image file has a resolution of 1024 pixels high × 1024 pixels wide. The colour depth is
two bytes.
Calculate the file size of the image. Give the answer in MiB. Show your working.
working space
…
…
…
…
file size of image … MiB
[2]
Question text
6
(a) Convert the denary number 150 into an 8‑bit binary number.
… [1]
working space
…
…
…
(b) Convert the hexadecimal number F08 into a 12‑bit binary number.
… [1]
working space
…
…
…
(c) Give the 8‑bit binary value after a logical binary shift left of two places is performed on the
binary number 00110101.
… [1]
working space
…
…
…
(d) Convert the two’s complement binary integer 01110101 into denary.
… [1]
working space
…
…
…
© Cambridge University Press & Assessment 2026
ĬÑĊ®Ġ´íÈõÏĪÅĊÝû¸þ×
,
,
(e) Add the two binary integers using binary addition and give your answer in binary. Show all
your working.
0 0 0 1 1 0 1 0
+ 0 1 1 0 1 1 1 0
[3]
© Cambridge University Press & Assessment 2026
ĬÓĊ®Ġ´íÈõÏĪÅĊÝù¸þ×
Question text
1
A student has an electronic calculator. The calculator has a screen that displays the result of
calculations.
The calculator has 8-bit registers.
(a) State the highest denary number that could be stored in a single 8-bit register.
… [1]
(b) Denary numbers are typed into the calculator. They are converted to binary numbers and
stored in the 8-bit registers.
The student types in the denary number 23 and the denary number 168.
Give the 8-bit binary numbers that are stored in the registers for these two denary numbers.
23
168
[2]
Working space …
…
…
…
…
(c) The result of a calculation that is stored in a register is the binary number 00001011
Give the denary number that will be displayed on the screen for this binary number.
00001011 … [1]
Working space
…
…
…
ĬÕú¾Ġ´íÈõÏĪÅĊßú¸þ×
,
,
(d) Another result of a calculation that is stored in a register is the binary number 01000010
Give the denary number that will be displayed on the screen for this binary number.
01000010 … [1]
Working space
…
…
…
(e) Two binary numbers stored in the registers are 01110110 and 00110000
Add the binary numbers using binary addition. Show all your working.
Give your answer in binary.
0 1 1 1 0 1 1 0
0 0 1 1 0 0 0 0
+
[3]
(f)
The result of a calculation could be a negative denary number.
State how the calculator could represent a negative denary number as a binary number.
… [1]
(g) The electronic calculator is an example of an embedded system.
Explain why it is an example of an embedded system.
…
…
…
Question text
1
A toy store gives each of the toys it sells a unique code. The codes are 3-digit hexadecimal codes,
for example A4B.
A computer is used to store a database of the codes. The computer has 12-bit registers.
(a) Give the largest hexadecimal number that can be stored in a 12-bit register.
… [1]
(b) Give the largest denary number that can be stored in a 12-bit register.
… [1]
(c) Two toys have the hexadecimal codes 429 and 1A3.
Convert the two hexadecimal codes to 12-bit binary numbers.
429 …
1A3 …
[2]
Working space
…
…
…
…
…
(d) Two binary numbers that are stored in the registers are 100010100001 and 011100001011.
Convert the two binary numbers to hexadecimal numbers.
100010100001 …
011100001011 …
[2]
Working space
…
…
…
…
…
ĬÖú¾Ġ´íÈõÏĪÅĊàù·þ×
,
,
(e) The hexadecimal code for each toy is stored in a barcode that is displayed on each toy.
Each time a customer buys a toy, the barcode is scanned and the amount of stock stored in
the database for that toy is reduced by 1.
An item of hardware is used in this system to receive the hexadecimal code from the barcode
scanner and find it in the database. The item of hardware is built into a single chip.
(i)
Identify the name of the item of hardware.
… [1]
(ii)
Tick (✓) one box to show whether a barcode scanner is a type of input, output, process
or storage device.
A
input
B
output
C
process
D
storage
[1]
(iii)
The barcode scanner contains a sensor.
Identify the type of sensor that the barcode scanner could contain.
…
Question text
2
Two binary numbers are stored in a computer.
(a) Add the two binary numbers using binary addition.
Give your answer in binary. Show all of your working.
11110101
+
00111001
[4]
(b) A logic right shift of three places is performed on the binary number 11110101.
Give the denary number for the binary number that would be stored after the logical shift of
three places has occurred. Show all of your working.
Working space …
…
…
…
…
Denary number …
[3]
Question text
1
A flower shop has a room that has an air-conditioning system. It is used to keep the room at a
constant temperature for storing flowers.
The owner uses a keypad to set the temperature for the room.
(a) Tick (✓) one box to show whether a keypad is an example of an input, output, process or
storage device.
A
input
B
output
C
process
D
storage
[1]
(b) The owner of the shop enters a denary number to set the temperature for the room.
The denary number is converted to a binary number to be processed. The binary number is
stored in a register in the air conditioning system.
(i)
Give the binary number that would be stored when the denary number 24 is entered.
… [1]
(ii)
Give the binary number that would be stored when the denary number 101 is entered.
… [1]
(iii)
The binary number 00010011 is stored in the register.
Give the denary number that has been entered for this binary number to be stored.
… [1]
(iv)
The binary number 00100010 is stored in the register.
Give the denary number that has been entered for this binary number to be stored.
… [1]
Working space
…
…
…
…
…
…
…
ĬÕú¾Ġ´íÈõÏĪÅĊÞû¸þ×
,
,
(c) If the air-conditioning system detects an error, it displays an error code. The error code is
displayed as a hexadecimal number. The binary number for each error code is stored in a
register.
(i)
Give the binary number that is stored in the register to display the error code 51.
… [1]
(ii)
Give the binary number that is stored in the register to display the error code E3.
… [1]
(iii)
Give the hexadecimal number that is displayed when the binary number 10000010 is
stored in the register.
… [1]
(d) If the owner of the shop wants to make the room very cold, she may need to enter a negative
denary number.
The negative denary number could be represented using two’s complement.
Give the two’s complement 8-bit binary integer that would be stored for the temperature –5.
Show all your working.
Working space …
…
Question text
5
Text, images and sound are represented as binary to be processed by a computer.
(a) Complete the table by writing the missing terms and descriptions about representing text,
images and sound as binary.
Term
Description
…
character set
…
…
This is the number of samples taken each second when recording
…
sound.
…
pixel
…
…
…
resolution
…
…
…
This is the number of bits used to represent a colour in an image.
[5]
(b) The size of an image file is 1000 bytes.
Give the size of the image file in bits.
… [1]
ĬÙú¾Ġ´íÈõÏĪÅĊÞù·þ×
,
,
(c) The size of a sound file is 4096 mebibytes (MiB).
Give the size of the file in gibibytes (GiB).
… [1]
Working space
…
…
…
…
Question text
7
An algorithm has been written in pseudocode to:
•
input a whole number between 1 and 255 inclusive
•
convert the input to an 8-bit binary number
•
store each bit of the binary number in an array.
For example, if the denary number 127 was input, the binary number 01111111 would be stored in
the array.
01
DECLARE BinaryArray : ARRAY[1:8] OF INTEGER
02
DECLARE DenaryNumber : CHAR
03
OUTPUT "Please enter a whole number between 1 and 255 inclusive "
04
INPUT DenaryNumber
7 TO 1 STEP -1
05
FOR Count
MOD(DenaryNumber,3)
06
BinaryArray[Count]
DIV(DenaryNumber,2)
07
DenaryNumber
08
NEXT Count
(a) Identify the line numbers of the three errors in the pseudocode and suggest a correction for
each error.
Error 1 line number …
Correction …
…
Error 2 line number …
Correction …
…
Error 3 line number …
Correction …
…
[3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝüµĀ×
,
,
(b) Identify one programming technique used in the algorithm.
… [1]
(c) (i)
The algorithm can accept a number between 1 and 255 inclusive as input.
Two validation checks that could be applied to DenaryNumber are a presence check
and a type check.
Identify one other validation check that could be applied to DenaryNumber
… [1]
(ii)
Write the pseudocode to implement the validation check you identified in (c)(i).
You do not need to rewrite the whole algorithm.
…
…
…
…
…
… [3]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝúµĀ×