Binary and data representation – Edexcel IGCSE Computer Science (4CP0)

3 questions · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
4CP0 Paper 1 · Oct/Nov 2021 · Question 1Oct/Nov 2021Paper 116 marks
Loading question…
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)

2
4CP0 Paper 1 · Oct/Nov 2020 · Question 2Oct/Nov 2020Paper 19 marks
Loading question…
Question text

2 Computers use binary digits to represent data.
(a) Sign and magnitude and two’s complement are two ways of representing signed
integer numbers.
(i) Convert the denary number -94 to a binary pattern using sign and magnitude
representation.
(2)
(ii) 1000 1001 is a signed integer that uses two’s complement representation.
Convert this signed integer to denary.
(2)
(b) Denary numbers use base 10
Identify the base for hexadecimal numbers.
(1)
A 32
B 16
C 8
D 2
(c) Computers encode characters using ASCII and Unicode.
(i) State the number of characters that can be represented using standard ASCII.
(1)
(ii) The ASCII system uses 7 bits to represent a character. The ASCII code for the
character ‘A’ using denary is 65; other alphabetical characters follow on from
this in sequence.
Identify the ASCII code for ‘H’.
(1)
A 1000111
B 1001010
C 1001000
D 1000101
(iii) Explain why Unicode was developed.
(2)
(Total for Question 2 = 9 marks)

3
4CP0 Paper 1 · Oct/Nov 2020 · Question 4Oct/Nov 2020Paper 112 marks
Loading question…
Question text

4 Ibrahim works in the music industry.
(a) He is learning how sound is represented in binary.
Figure 3 illustrates this process.
7
6
5
4
Amplitude
3
A
B
2
1
0
6
7
8
0
1
2
3
4
5
Seconds
Figure 3
(i) State what the solid line labelled A represents.
(1)
(ii) State what the dashed line labelled B represents.
(1)
(iii) Give the sampling frequency, including the correct units.
(1)
(iv) Give one impact of increasing the sampling frequency.
(1)
(v) The bit-depth measures the resolution of the sound sample.
State the minimum bit-depth needed to store the sound sampled in Figure 3.
Justify your answer.
(2)
Bit-depth
Justification
(vi) Give the value in binary of the audio sample at the 4th second.
(1)
(b) Ibrahim wants to store a music file.
•
The sampling frequency is 47 kHz.
•
The bit-depth is 64
•
The analogue signal lasts for 819 seconds.
Construct an expression to show how the file size, in bytes, is calculated.
You do not need to do the calculation.
(4)
(c) Ibrahim wants to upload a music file to his online storage. The file has been
compressed using a lossy algorithm.
Give one drawback of using a lossy algorithm for this purpose.
(1)
(Total for Question 4 = 12 marks)

Advertisement