Data storage, compression and encryption – Edexcel IGCSE Computer Science (4CP0)
1 question · Clear filters
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)