Data storage, compression and encryption – Edexcel IGCSE Computer Science (4CP0)
4 questions · Clear filters
Question text
3 Alyssa is a music producer.
(a) Figure 1 shows the denary values of five samples of an analogue sound using a
sample interval of 0.2 seconds.
Sample
Denary
number
value
1
1
2
10
3
12
4
5
5
3
Figure 1
12
11
10
9
8
7
6
Y axis
5
4
3
2
1
0
0.2
0.4
0.6
0.8
1.0
X axis
(i) Complete this graph using the sample information from Figure 1 to show the
digital sound wave.
(3)
(ii) Give a suitable label for the X axis.
(1)
(iii) Give a suitable label for the Y axis.
(1)
(b) Alyssa uploads music files to her cloud storage.
(i) She compresses the files before she uploads them using a lossless algorithm.
Give one disadvantage of using a lossless rather than a lossy algorithm for
this purpose.
(1)
(ii) Explain one benefit to Alyssa of storing her music files in the cloud.
(2)
(iii) Give one possible security issue associated with storing music files in
the cloud.
(1)
(iv) One of Alyssa’s music files is stored at https://www.cloudisfab.com/re12/ru2.mp3
Complete the table by adding a description of each URL component.
(4)
URL component
Description
https
www.cloudisfab.com
re12
ru2.mp3
(Total for Question 3 = 13 marks)
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)
Question text
2 Many organisations use networks.
(a) One reason for networking computers is to share access to the internet.
Give one other reason for connecting computers in a local area network.
(1)
(b) State the purpose of network protocols.
(1)
(c) Data is transmitted in packets.
(i) Identify the layer of the TCP/IP model that would add the File Transfer Protocol (FTP).
(1)
A Application
B Data
C Network
D Transport
(ii) Give one task carried out by the network layer.
(1)
(d) Complete the table by adding a tick ( ) to match each item to its name.
(3)
Domain
IP
Item
URL
Name
Address
https://www.pearson.com
216.33.251.195
pearson.com
(e) Figure 2 shows a network topology.
Figure 2
(i) State the name of this network topology.
(1)
(ii) State one benefit of using this network topology.
(1)
(iii) State one drawback of using this network topology.
(1)
(f ) Files may be compressed using lossless or lossy algorithms.
(i) Music files are distributed over the internet.
Give two reasons why lossy compression is used when distributing music files
over the internet.
(2)
1
2
(ii) Identify which one of these file formats uses lossy compression.
(1)
A BMP
B DOC
C JPEG
D PNG
(iii) Here is a string of data.
CCCWWWCCWWWWWWCCC
Give the result of compressing the string using a run-length encoding algorithm.
(1)
(g) A video file is to be transmitted over the internet.
•
The network transmission speed is 54 Mbps.
•
The file size is 6 gigabytes (GB).
Construct an expression to show how the transmission time, in seconds, is calculated.
You do not have to do the calculation.
(4)
(Total for Question 2 = 18 marks)
Question text
4 One function of an operating system is file management.
(a) Both kibibyte and kilobyte can be used as measures of file size.
Compare kibibyte and kilobyte.
(2)
(b) An image is 2322 pixels high and 4128 pixels wide.
The image is stored with a 16-bit colour depth.
The metadata for the image is 975 bytes.
Construct an expression to show how the file size, in megabytes, is calculated.
You do not need to do the calculation.
(4)
(c) Operating systems often include compression software for reducing file sizes.
(i) Give two reasons for reducing file sizes.
(2)
1
2
(ii) Give two drawbacks of using compression software.
(2)
1
2
(d) A text file is stored on a hard disc.
The file holds information from one side of a sheet of paper.
The sheet of paper is represented as a grid, 80 columns wide and 66 rows long.
Each cell in the grid contains a single 2-byte Unicode character.
The file also contains 40 characters of metadata.
The hard disc allocates space in blocks of 1024 bytes.
Construct an expression to show the number of blocks required to store the file.
You do not need to do the calculation.
(4)
(Total for Question 4 = 14 marks)