Data representation – IGCSE Computer Science (0478)
141 questions · page 9 of 10
Question text
11
Miriam needs to use a large high-resolution photo as a thumbnail image on a website.
She will use lossy compression to reduce the file size of the photo to create the thumbnail image.
(a) State why a smaller file size is appropriate for this situation.
…
… [1]
(b) Explain how lossy compression reduces the file size.
…
…
…
…
…
…
…
… [4]
Question text
1
A washing machine has a small display screen built into it.
One use of the display screen is to show an error code when a problem has occurred with a
washing cycle.
(a) State whether the display screen is an input, output or storage device.
… [1]
(b) The display screen shows a hexadecimal error code:
E04
This error code means that the water will not empty out of the washing machine.
Convert this error code to binary.
[3]
(c) State why hexadecimal is used to display the error code.
…
…
…
… [1]
(d) Identify three sensors that could be used in the washing machine.
State what each sensor could be used for.
Sensor 1 …
Use …
…
Sensor 2 …
Use …
…
Sensor 3 …
Use …
…
[6]
Question text
2
Data files are stored in different file formats.
Complete the table by providing a suitable file format for each file type. The first one has been
done for you.
File type
File format
Pictures
.JPEG
Text
Sound
Video
[3]
Question text
9
(a) Optical storage media can be used to store data.
Describe how the data is read from a Compact Disc (CD).
…
…
…
…
…
…
…
… [4]
(b) Kamil wants to store a 16-bit colour image file. The image size is 1000 pixels.
Calculate the size of the file.
Give your answer in bytes. Show your working.
Working …
…
…
…
Answer … bytes
[2]
(c) Describe the differences between primary and secondary storage.
…
…
…
…
…
…
…
… [4]
Question text
1
A robot arm in a factory is programmed to move products.
The binary instructions to operate the robot arm are:
Operation
Binary Instruction
UP
1
1
1
1
DOWN
0
0
0
1
LEFT
1
0
0
1
RIGHT
0
1
1
0
OPEN
1
1
0
0
CLOSE
0
0
1
1
The instructions are entered as hexadecimal values.
An operator enters the values:
9
1
C
3
F
Convert the values and write down the operation (e.g. RIGHT) carried out by the robot arm.
9
…
1
…
C
…
3
…
F
…
[5]
Question text
3
(a) Explain the differences between the binary number system and the denary number system.
…
…
…
…
…
…
…
… [4]
(b) Explain the process of converting the binary number 1010 into a denary number.
…
…
…
…
…
…
…
…
…
… [5]
Question text
1
The memory of a computer contains data and instructions in binary.
The following instruction is stored in a location of the memory.
0
0
1
0
1
0
0
1
1
1
1
1
1
1
0
0
(a) Convert the instruction into hexadecimal.
…
…
… [2]
(b) Explain why a programmer might prefer to read the instruction in hexadecimal rather than in
binary.
…
…
…
… [2]
(c) Give two other uses of hexadecimal.
Use 1 …
…
Use 2 …
…
[2]
Question text
13 (a) Gurdeep wants to send a large file to Jennifer over the Internet.
State two benefits of compressing the file to send it.
Benefit 1 …
…
…
Benefit 2 …
…
…
[2]
(b) Two types of compression are lossy and lossless.
Choose the most suitable type of compression for the following and explain your choice.
(i)
Downloading the code for a computer program:
Type of compression …
Explanation …
…
…
…
[3]
(ii)
Streaming a video file:
Type of compression …
Explanation …
…
…
…
[3]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
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 the Cambridge International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Question text
5
(a) The denary number 57 is to be stored in two different computer registers.
Convert 57 from denary to binary and show your working.
���������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������
�����������������������������������������������������������������������������������������������������������������������������������������������[2]
(b) Show the binary number from part (a) as it would be stored in the following registers.
Register 1
Register 2
[2]
(c) A binary number stored in a register can have many different uses, for example an address in
main memory.
Give two other uses for a binary number stored in a register.
Use 1 ����������������������������������������������������������������������������������������������������������������������������������������
Use 2 ����������������������������������������������������������������������������������������������������������������������������������������
[2]
(d) A register in a computer contains binary digits.
0
0
1
1
1
0
1
0
The contents of the register represent a binary integer.
Convert the binary integer to hexadecimal.
…
… [1]
Question text
7
A high definition video and a large text file are to be sent as email attachments. Both files are
compressed before sending. Each file is compressed using a different type of data compression
algorithm.
Explain, with reasons, which type of data compression algorithm should be chosen for each file.
…
…
…
…
…
…
… [4]
Question text
8
A register in a computer contains binary digits.
0
0
1
1
0
1
1
1
(a) The contents of the register could represent a binary integer.
Convert the binary integer to denary and hexadecimal.
Denary …
Hexadecimal …
[2]
(b) The contents of the register could represent the ASCII value for the single denary digit ‘7’.
Write down the ASCII value for ‘9’ in binary, denary and hexadecimal.
Binary …
Denary …
Hexadecimal …
[3]
(c) Write in Register X the binary number you would use with AND gates to convert the ASCII
value of ‘7’ to its binary integer value.
0
0
1
1
0
1
1
1
ASCII
Register X
[1]
Question text
12 (a) Identify three uses for hexadecimal and for each one give an example of hexadecimal that
matches the use.
Use 1 …
…
Example …
Use 2 …
…
Example …
Use 3 …
…
Example …
[6]
(b) Explain why hexadecimal is used to represent binary numbers.
…
…
…
…
…
… [2]
Question text
10 (a) A manufacturer of aeroplane engines assigns a denary identification number (ID) to each
engine.
0431
One engine has the ID:
(i)
Convert this denary number to a 12-bit binary format.
[2]
(ii)
Show how this number would be represented in hexadecimal.
…
…
[3]
(b) The current status of the engine is sent to a computer in the aeroplane.
Each piece of data collected is 8 bytes in size. Data collection occurs every 30 seconds.
Calculate the number of kilobytes that would be needed to store the data collected during a
10-hour flight. Show your working.
…
…
…
…
… kilobytes
[3]
(c) At the end of the flight, all of the data are sent to the aeroplane engine manufacturer using the
Internet.
The computer in the aeroplane has a MAC address and an IP address.
State what is meant by these two terms.
MAC address …
…
…
IP address …
…
…
[2]
(d) When sending this data, security is very important. Data are sent over the Internet using
Transport Layer Security (TLS) protocol.
Name the two layers that make up TLS.
1 …
2 …
[2]
Question text
5
A computer uses an 8-bit register.
The 8-bit register contains binary integers.
(a) Write the denary (base 10) value represented by:
128
64
32
16
8
4
2
1
0
1
1
1
0
0
0
0
… [1]
(b) All the bits in the register are shifted one place to the right as shown below.
0
1
1
1
0
0
0
0
0
0
1
1
1
0
0
0
Write the denary number that is represented after this shift.
… [1]
(c) State the effect the shift to the right had on the original denary number from part (a).
… [1]
(d) The original number in part (a) is shifted three places to the right.
(i)
Show the new binary number:
[1]
(ii)
Write the equivalent denary number.
… [1]
(e) Describe the problems that could be caused if the original binary number in part (a) is shifted
five places to the right.
…
…
…
…
… [2]
Question text
8
Identify whether the four statements about file compression are correct by writing TRUE or FALSE
in the following table.
Statement
TRUE or FALSE
MIDI files store the actual music notes in a compressed format
JPEG files are examples of lossless file compression
MP3 files are, on average, 90% smaller than the music files
stored on a CD
MP4 files are examples of lossy file compression
[4]