Data representation – IGCSE Computer Science (0478)

55 questions · page 1 of 4 · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
0478/11/O/N/25 · Question 1Oct/Nov 2025Paper 1111 marks
Loading question…
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.
…
…
…

2
0478/12/O/N/25 · Question 1Oct/Nov 2025Paper 1213 marks
Loading question…
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.
…

3
0478/12/O/N/25 · Question 2Oct/Nov 2025Paper 127 marks
Loading question…
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]

Advertisement
4
0478/13/O/N/25 · Question 1Oct/Nov 2025Paper 1316 marks
Loading question…
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 …
…

5
0478/13/O/N/25 · Question 5Oct/Nov 2025Paper 137 marks
Loading question…
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
…
…
…
…

6
0478/23/O/N/25 · Question 7Oct/Nov 2025Paper 238 marks
Loading question…
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]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝúµĀ×

7
0478/11/O/N/24 · Question 1Oct/Nov 2024Paper 116 marks
Loading question…
Question text

1
The size of a file can be measured using different units.
(a) Tick (3) one box to show which of these is not a unit of measurement for a file.
A
bit
B
bot
C
nibble
D
byte
[1]
(b) The size of a file can be reduced by compressing it.
(i)
Give two types of compression that can be used to reduce the size of a file.
1 …
2 …
[2]
(ii)
Give three benefits of reducing the size of a file for storage and transmission.
1 …
…
2 …
…
3 …
…
[3]
ĬÕú¾Ġ´íÈõÏĪÅĊàü¸þ×

8
0478/11/O/N/24 · Question 3Oct/Nov 2024Paper 1111 marks
Loading question…
Question text

3
A user enters text into a computer system, using a keyboard.
An American standard code for information interchange (ASCII) character set is used to convert
the text to binary.
(a) Identify one other character set that could be used to convert the text to binary.
… [1]
(b) The character ‘A’ is represented by the denary ASCII number 65.
The character ‘m’ is represented by the denary ASCII number 109.
(i)
Convert the two denary ASCII numbers to binary.
65 …
109 …
[2]
Working space
…
…
…
…
(ii)
Convert the two denary ASCII numbers to hexadecimal.
65 …
109 …
[2]
Working space
…
…
…
…
ĬÕú¾Ġ´íÈõÏĪÅĊÞü¸Ā×
,
,
(c) The character ‘y’ is represented by the binary ASCII number 01111001.
(i)
Convert the binary ASCII number to denary.
… [1]
Working space
…
…
…
…
(ii)
Convert the binary ASCII number to hexadecimal.
… [1]
Working space
…
…
…
…
(iii)
A

Advertisement
9
0478/12/O/N/24 · Question 2Oct/Nov 2024Paper 127 marks
Loading question…
Question text

2
Data storage can be measured using different units of measurement.
(a) Identify the name of the smallest unit of measurement of data.
… [1]
(b) State how many nibbles there are in 2 bytes.
… [1]
(c) A 10 second sound effect is recorded for a movie.
It is recorded with a sample rate of 22,016 Hz and a sample resolution of 8 bits.
Calculate the file size of the sound effect in kibibytes (KiB). Show all your working.
…
…
…
…
…
…
Answer … KiB
[3]
ĬÕú¾Ġ´íÈõÏĪÅĊàü¸þ×
,
,
(d) The sound effect file is compressed for storage.
(i)
State what is meant by file compression.
…
… [1]
(ii)
Give one benefit of compressing the file for storage.
…
… [1]

10
0478/12/O/N/24 · Question 3Oct/Nov 2024Paper 1213 marks
Loading question…
Question text

3
A user enters data that is hexadecimal into a computer system. The data is converted to binary to
be processed by the computer.
(a) (i)
Give one similarity between hexadecimal and binary.
…
… [1]
(ii)
Give two differences between hexadecimal and binary.
1 …
…
2 …
…
[2]
(b) Data that is denary can also be converted to binary.
Give the binary number for each of the three denary numbers.
15 …
180 …
235 …
[3]
Working space
…
…
…
…
…
Ĭ×ú¾Ġ´íÈõÏĪÅĊàú¸þ×
,
,
(c) Denary numbers can also be converted to hexadecimal.
Give the hexadecimal number for each of the three denary numbers.
14 …
100 …
250 …
[3]
Working space
…
…
…
…
…
…
(d) A binary integer that is stored in a register in the computer has a logical left shif

11
0478/13/O/N/24 · Question 1Oct/Nov 2024Paper 1315 marks
Loading question…
Question text

1
Data can be measured using different units of storage.
(a) Tick (✓) one box to show which of the following is the largest unit of data storage.
A
tebibyte (TiB)
B
pebibyte (PiB)
C
mebibyte (MiB)
D
gibibyte (GiB)
[1]
(b) A computer has primary storage.
Give one example of primary storage.
Explain the purpose of your chosen example.
Example …
Explanation …
…
…
…
[3]
(c) All data is converted to binary to be processed by a computer.
(i)
Calculate the binary number for the denary number 175. Show all your working.
…
…
…
…
… [2]
ĬÕú¾Ġ´íÈõÏĪÅĊßù¸þ×
,
,
(ii)
Give the binary number for the given hexadecimal numbers.
15 …
2D …
091 …
[3]
Working space
…
…
…
…
(d) Binary integers can be added together.
Add the two binary integers using binary addition. Show all your working. Give your answer
in binary.
1 1 1 0 0 0 1 1
+ 1 1 0 0 1 1 0 0
[4]
(e) Calculate the denary number for the two’s complement binary integer 10001110. Show all
your working.
…
…
…
… [2]
Ĭ×ú¾Ġ´íÈõÏĪÅĊßû¸þ×

12
0478/13/O/N/24 · Question 2Oct/Nov 2024Paper 1324 marks
Loading question…
Question text

2
An employee has a report that they need to email to their employer.
The employee compresses the report file before emailing it.
(a) State the effect the compression has on the report file.
…
… [1]
(b) Give two benefits of compressing the report file before emailing it.
1 …
…
2 …
…
[2]
(c) The employee decides to use lossless compression to compress the file.
Explain why lossy compression is not suitable.
…
…
…
…
…
… [3]
(d) When the employee enters the email address, the computer uses Unicode to convert the
email address to binary.
(i)
State what Unicode is an example of.
… [1]
(ii)
Give two advantages of the computer using Unicode instead of American standard code
for information interchange (ASCII).
1 …
…
2 …
…
[2]
ĬÕú¾Ġ´íÈõÏĪÅĊÝù¸Ā×
,
,
(iii)
Give one disadvantage of the computer using Unicode instead of ASCII.
…
… [1]
(e) The report is broken down into packets to be emailed.
(i)
Circle three items of data that can be found in the packet header.
trailer
originator’s address
payload
interrupt
input
operating system
destination address
antivirus
packet number
[3]
(ii)
Each packet is sent along a different path from the employee’s device to the employer’s
device.
Tick (✓) one box to show the name of this method of sending packets.
A
packet networking
B
packet circuiting
C
packet swit

13
0478/11/O/N/23 · Question 2Oct/Nov 2023Paper 1114 marks
Loading question…
Question text

2
A car park has a payment machine that allows a customer to pay for their parking.
The cost of parking is displayed as a denary number on a screen on the payment machine.
The cost of parking is stored in two 8-bit binary registers.
For the parking cost of $10.50:
•
register 1 stores the denary value 10 as binary
•
register 2 stores the denary value 50 as binary.
(a) Give the parking cost that would be displayed on the payment machine when the registers
store:
•
register 1: 00010001
•
register 2: 01000110
Parking cost displayed $ …
[2]
Working space
…
…
…
…
(b) The parking cost of $14.98 is displayed on the payment machine.
Give the 8-bit binary numbers that are stored in the registers to display the parking cost.
Register 1 …
Register 2 …
[2]
Working space
…
…
…
…
(c) The payment machine gives the customer a ticket when they have paid their parking cost.
Each ticket has a 4-digit hexadecimal ticket number that is stored as binary.
The binary number 1010000000111101 is stored for a customer’s ticket number.
Give the hexadecimal ticket number that would be displayed on this customer’s ticket.
Hexadecimal ticket number … [4]
Working space
…
…
…
…
(d) Explain why data input into the payment machine needs to be converted to binary.
…
…
…
…

Advertisement
14
0478/11/O/N/23 · Question 5Oct/Nov 2023Paper 1114 marks
Loading question…
Question text

5
A musician is recording herself playing the music for a song on the piano.
(a) Explain how the analogue sound is recorded and converted to digital.
…
…
…
…
…
…
…
…
…
… [5]
(b) State two ways that the accuracy of the recording could be increased.
1 …
2 …
[2]
(c) The musician compresses the sound file using lossless compression instead of lossy
compression.
Explain why the musician would choose to use lossless compression instead of lossy
compression.
…
…
…
…
…
… [3]
(d) The musician types the words for the song into a document.
Two character sets that can be used when converting text to digital are the American standard
code for information interchange (ASCII) and Unicode.
Explain the differences between the ASCII character set and the Unicode character set.
…
…
…
…
..

15
0478/12/O/N/23 · Question 2Oct/Nov 2023Paper 1210 marks
Loading question…
Question text

2
A register stores the binary number:
1
1
1
0
0
0
1
1
(a) Give the denary number for the binary number stored in the register.
… [1]
Working space
…
…
…
(b) Give the hexadecimal number for the binary number stored in the register.
… [2]
Working space
…
…
…
(c) A logical left shift of two places is performed on the binary number stored in the register.
Complete the binary register to show its contents after this logical left shift.
[1]
(d) The negative denary number −99 needs to be stored in the register.
Complete the register to show the binary number that would be stored, using two’s
complement. Show all your working.
Working space …
…
…
…
Register:
[2]
(e) The number 01001100 is added to 11100011
Add the two 8-bit binary numbers, using binary addition.
Give your answer in binary. Show all your working.
…
…
…
…
…
… [4]

Advertisement