Data representation – O Level Computer Science (2210)
86 questions · page 3 of 6 · Clear filters
Question text
2
Binary numbers can be converted to hexadecimal.
(a) Convert the two binary numbers to hexadecimal.
10010011 …
00001101 …
[4]
Working space
…
…
…
…
(b) A value is stored as a binary number in a register.
0
1
1
1
1
0
1
0
A logical right shift of three places is performed on the binary number.
(i)
Complete the binary register to show its contents after this logical right shift.
[1]
(ii)
State one effect this logical shift has on the binary number.
…
… [1]
(c) Give two reasons why a programmer may use hexadecimal to represent binary numbers.
1 …
…
2 …
…
[2]
(d) Denary numbers can also be converted to hexadecimal.
Convert the denary number to hexadecimal.
301 … [2]
Working space
…
…
…
…
Question text
3
When keys are pressed on a keyboard, the text is converted to binary to be processed by the
computer.
(a) Describe how the text is converted to binary to be processed by the computer.
…
…
…
…
…
… [3]
(b) Text that is input into a computer can be stored in a text file.
A text file can be compressed using lossless compression.
(i)
State what effect this has on the file size.
…
… [1]
(ii)
Describe how lossless compression compresses the text file.
…
…
…
…
…
…
…
… [4]
(iii)
Give two reasons why the text file may have been compressed.
1 …
…
2 …
…
[2]
Question text
2
(a) Denary values are converted to binary values to be processed by a computer.
Draw one line from each denary value to the correctly converted 8‑bit binary value.
Denary
8-bit binary
11110101
72
01110010
11100101
245
00010101
00001111
15
01001000
Working space
…
…
…
…
[3]
(b) Binary values can be converted to hexadecimal values.
Give the hexadecimal value for the 16‑bit binary value 0000100110101110
…
Working space
…
…
…
[3]
Question text
3
Jessica wants to store a large number of small thumbnail images on a USB flash memory drive.
Each thumbnail image is 16‑bit colour and is 100 pixels wide and 100 pixels high.
She has 5 MB of storage space available on her USB flash memory drive.
Calculate how many images she can store in the 5 MB of storage space. Show all your working.
…
…
…
…
…
…
Number of images …
[4]
Question text
6
A museum has Quick Response (QR) codes that allow visitors to view videos for extra information
about items in the museum.
The visitor is given a portable device with a display screen, that they can use to read each QR
code.
(a) Describe how the QR code is read and processed to display the video for the visitor.
…
…
…
…
…
…
…
… [4]
(b) Tick (✓) to show whether the videos are MP3 files, MP4 files or MIDI files.
Tick (✓)
MP3 files
MP4 files
MIDI files
[1]
(c) The video files are compressed using lossy compression.
Give two benefits of using lossy compression to compress the video files.
Benefit 1 …
…
Benefit 2 …
…
[2]
(d) The portable device has a Light‑Emitting Diode (LED) display screen to allow the visitor to
watch a video.
Describe how the LED screen operates to display the video.
…
…
…
…
…
…
…
… [4]
Question text
1
Jack has an MP3 file stored on his computer.
(a) (i)
Tick (3) to show which type of data is stored in an MP3 file.
Tick (3)
Video
Sound
Image
[1]
(ii)
Tick (3) to show whether the MP3 file is a lossy compressed file or a lossless compressed
file or not a compressed file.
Tick (3)
Lossy compressed file
Lossless compressed file
Not a compressed file
[1]
Question text
4
All data needs to be converted to binary data so that it can be processed by a computer.
(a) Explain why a computer can only process binary data.
…
…
…
… [2]
(b) The denary values 64, 101 and 242 are converted to 8‑bit binary values.
Give the 8‑bit binary value for each denary value.
64 …
101 …
242 …
[3]
Working space
…
…
…
…
…
(c) The hexadecimal values 42 and CE are converted to binary.
Give the binary value for each hexadecimal value.
42 …
CE …
[4]
Working space
…
…
…
…
Question text
5
An image is stored on a computer. The image is 16‑bit colour and is 100 pixels high and
150 pixels wide.
Calculate the file size of the image in bytes. Show all your working.
…
…
…
…
…
Answer … bytes
[3]
Question text
1
(a) Denary values are converted to binary values to be processed by a computer.
Draw one line from each denary value to the correctly converted 8‑bit binary value.
Denary
8-bit binary
00100001
41
10100110
00101001
174
10000110
10101110
86
01010110
[3]
Working space
…
…
…
…
…
(b) Binary values can also be converted to denary values.
Give the correct denary value for the 12‑bit binary value 000101010111
Show all your working.
…
…
…
…
Denary value …
[2]
Question text
2
Hexadecimal is used for Hypertext Markup Language (HTML) colour codes.
An HTML colour code is:
#2F15D6
Each pair of digits is stored as binary in an 8‑bit register.
(a) Give the 8‑bit binary value that would be stored for each pair of hexadecimal digits.
2F
15
D6
[6]
Working space
…
…
…
…
…
(b) HTML colour codes and Media Access Control (MAC) addresses are two examples of where
hexadecimal is used in Computer Science.
Give two other examples of where hexadecimal can be used in Computer Science.
Example 1 …
Example 2 …
[2]
(c) Websites can be created using HTML structure and presentation.
State what is meant by HTML structure and presentation.
Give an example of each in your answer.
Structure …
…
…
…
Presentation …
…
…
…
[4]
(d) Explain why presentation is often separated from structure when creating a web page.
…
…
…
… [2]
Question text
1
(a) Denary is a number system that is used by programmers.
Tick (✓) one box to show whether denary is a base-2, base-10 or base-16 number system.
Tick
(✓)
Base-2
Base-10
Base-16
[1]
(b) Hexadecimal values can be used to represent denary values.
Convert these four hexadecimal values into denary values.
05
…
20
…
1A
…
AB …
[4]
Working space
…
…
…
…
…
(c) Hexadecimal values can also be converted to binary values.
Tick (✓) one box to show the correct 8-bit binary value for each hexadecimal value.
(i)
Hexadecimal value 25
Tick
(✓)
00011001
00100101
10100001
[1]
(ii)
Hexadecimal value 1B
Tick
(✓)
00011011
10110001
00011010
[1]
(d) (i)
Give one way that hexadecimal is used in website development.
… [1]
(ii)
Give one way that hexadecimal is used in low-level programming.
… [1]
Question text
5
Sammi works for a finance company and has a laptop that he uses for his work. He has confidential
data about his customers stored on his laptop.
Sammi does not connect the laptop to any networks.
(a) Sammi is concerned about his customers’ confidential data being viewed by other people in
his office.
One method he uses to prevent others viewing the data is encryption.
Identify three other methods Sammi could use to prevent his customers’ confidential data
being viewed.
1 …
2 …
3 …
[3]
(b) Sammi creates videos for the finance company website that give customers advice about
their finances.
He uses lossy compression to reduce the file size of the videos for the website.
(i)
Give three ways that lossy compression can reduce the file size of the videos.
1 …
…
2 …
…
3 …
…
[3]
(ii)
Give one drawback of using lossy compression to reduce the file size of the videos.
…
… [1]
(c) Sammi could have used lossless compression to compress the videos for the website.
(i)
Give one reason why he would use lossless compression, rather than lossy compression,
for the videos.
…
… [1]
(ii)
Give two disadvantages of Sammi using lossless compression, rather than lossy
compression, for the videos.
Disadvantage 1 …
…
Disadvantage 2 …
…
[2]
Question text
7
A music company has a website that allows users to stream music. The music is stored in sound
files.
(a) The sound files are compressed using lossless compression.
(i)
Describe how the sound files are compressed using lossless compression.
…
…
…
…
…
…
…
…
…
…
… [4]
(ii)
State one reason why the music company would compress the sound files using
lossless, rather than lossy, compression.
…
… [1]
(iii)
Give one benefit, to the user, of the music company compressing the sound files.
…
… [1]
(iv)
Give one drawback of the music company using lossless, rather than lossy, compression
for the sound files.
…
… [2]
(b) Describe how the web pages for the website are requested and displayed on a user’s
computer.
…
…
…
…
…
…
…
Question text
1
A denary value can be converted into hexadecimal and binary.
(a) Complete the table to show the hexadecimal and 8-bit binary values of the given denary
values.
Denary
Hexadecimal
8-bit binary
49
123
200
[6]
Working space
…
…
…
…
…
(b) Give two benefits, to users, of converting binary values to hexadecimal.
Benefit 1 …
…
Benefit 2 …
…
[2]
(c) Hexadecimal is used to represent Hypertext Markup Language (HTML) colour codes in
computer science.
Identify three other ways that hexadecimal is used in computer science.
1 …
2 …
3 …
[3]
Question text
1
Tina is creating a website for charity events. She uses HTML to create the website.
(a) State what is meant by HTML.
…
… [1]
(b) She uses the hexadecimal colour code #43B7F0 as the background colour for her website.
(i)
State whether background colour is an example of structure or presentation, in the
website.
… [1]
(ii)
The hexadecimal colour code #43B7F0 is stored in three 8-bit registers.
Give the 8-bit binary values for each part of the hexadecimal code.
43
B7
F0
[6]
(c) Tina uses a microphone to record a welcome message for her website.
(i)
State whether the microphone is an input or output device.
… [1]
(ii)
She wants to compress the recording to make sure that the file is as small as possible
for the website.
Identify which type of compression she should use and describe how this would compress
the file for the website.
Type of compression …
Description
…
…
…
…
…
…
…
… [4]
(iii)
Give two benefits of compressing the file for the website.
Benefit 1 …
…
Benefit 2 …
…
[2]
(d) Tina will use the TLS protocol in her website when selling tickets to people for different charity
events. This makes sure that their personal data is transmitted securely.
(i)
Identify the two layers that are present in the TLS protocol.
Layer 1 …
Layer 2 …
[2]
(ii)
Explain how data is sent securely using the TLS protocol.
…