P1 Worksheet Chapter-1
P1 Worksheet Chapter-1
1 (a) Each of the following bytes represents an integer in two’s complement form.
-17
[1]
(iv) State in denary, the range of integer values that it is possible to represent in two’s
complement integers using a single byte.
(b) (i) Convert the following denary integer into Binary Coded Decimal (BCD).
653
.......................................................................................................................................[1]
(ii) A 3-digit BCD representation has been incorrectly copied. It is shown as:
0 1 0 0 1 1 1 0 0 0 1 0
State how you can recognise that this is not a valid BCD representation.
...........................................................................................................................................
.......................................................................................................................................[1]
...........................................................................................................................................
.......................................................................................................................................[1]
9608/11/O/N/17
1(a)(i) 119 1
1(a)(ii) –120 1
1(a)(iii) 1 1 1 0 1 1 1 1 1
1(b)(ii) The second block of four binary digits represents a digit larger than 9 // 14 1
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
9608/11/M/J/18
(c) The finished logo is 500 pixels by 1000 pixels and uses 35 different colours.
Estimate the file size for the logo. Give your answer in kilobytes. Show your working.
Working .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Answer ......................................................................................................................................
[4]
State two benefits of a vector graphic compared to a bitmap image. Give a reason for each
benefit.
Benefit 1 ...................................................................................................................................
...................................................................................................................................................
Reason 1 ..................................................................................................................................
...................................................................................................................................................
Benefit 2 ...................................................................................................................................
...................................................................................................................................................
Reason 2 ..................................................................................................................................
...................................................................................................................................................
[4]
9608/11/M/J/18
Ans-2
Question Answer Marks
1 1 0 1 1 0 1 1
.......................................................................................................................................[1]
.......................................................................................................................................[1]
(iii) The current contents of the Accumulator represent a two’s complement binary integer.
.......................................................................................................................................[1]
(b) The binary integer represents a character from the computer’s character set.
...........................................................................................................................................
.......................................................................................................................................[1]
(ii) Explain the differences between the ASCII and Unicode character sets.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
Calculate the ASCII code in hexadecimal for ‘Z’. Show your working.
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
9608/12/M/J/18
Ans-3
4(a)(i) 219 1
4(a)(ii) DB 1
4(a)(iii) −37 1
Working:
Answer: 5A16
4 A student has recorded a sound track for a short film.
(a) Explain how an analogue sound wave is sampled to convert it into digital format.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(b) Explain the effects of increasing the sampling resolution on the sound file.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
(c) The original sound was sampled at 44.1 kHz. The sample rate is changed to 22.05 kHz.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
9608/12/M/J/18
(d) The student uses sound editing software to edit the sound file.
Name two features of sound editing software the student can use to edit the sound file.
Feature 1 ...................................................................................................................................
Purpose .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Feature 2 ...................................................................................................................................
Purpose .....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
Ans-4
• Removing so
R ound / elem
ments
• D
Delete sectio ound wave, for example, backgroound noise
ons of the so
• Copy
C
• R
Repeat ments of the sound wav
elem ve
5 A student is creating a short video and needs to record music to play in the background.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
Explain how different sampling resolutions affect the sound file and the sound it represents.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
Describe two features of sound editing software that can be used to edit the sound file.
Feature 1 ..................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Feature 2 ..................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
9608/11/O/N/18
Ans-5
Question Answer Marks
For example:
• Cut/delete
• ... Remove part of the sound file
• Amplify
• ... Increase the volume of a section of sound
(a) The company creates a 4-colour bitmap image for the website as shown.
G R G K W R
G R G K W R
G R G K W R
G R G K W R
G G G K K R
W W W W K R
(i) State the minimum number of bits needed to represent each pixel in the image in part (a).
...................................................................................................................................... [1]
(ii) Calculate the minimum file size of the image shown in part (a). Show your working.
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
(b) The company takes a photograph of their office to put on the website. The photograph has
a resolution of 1000 pixels by 1000 pixels. Two bytes per pixel are used to represent the
colours.
(i) Estimate the file size of the photograph in megabytes. Show your working.
Working .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
9608/12/O/N/18
(ii) The file size of the photograph needs to be reduced before it is placed on the website.
Draw lines to link each method of reducing the file size of the image to:
Removes pixels
Crop the
photograph
Reduces number of
Lossy
pixels per inch
Use run-length
encoding
Uses fewer bits per
Lossless
pixel
Use fewer
colours
Stores colour code and
count of repetitions
[5]
(c) The company has created a logo for the website. The logo is a vector graphic.
Describe two reasons why a vector graphic is a sensible choice for the logo.
Reason 1 ..................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Reason 2 ..................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
9608/12/O/N/18
Ans-6
Question Answer Marks
1(a)(i) 2 1
• Number of pixels: 6 × 6 // 36
• Number of bits: Number of pixels (36) × 2
• = 72 bits // 9 bytes
1(c) 1 mark per bullet point. Max 2 marks for each reason. 4
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [3]
(ii) Explain how the sampling rate and sampling resolution affect the file size of the sound
track.
...........................................................................................................................................
...........................................................................................................................................
[2]
(b) A recording of a concert is stored as a file. The file is compressed using lossy compression
before it is streamed to users.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Define the term lossy compression.
...........................................................................................................................................
..................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
9608/11/M/J/19
..................................................................................................................................... [3]
Ans-7
6(d)(i) 1 mark per bullet point to max 3 3
Sample rate:
• Increasing the sample rate means more samples per second hence
more bits per second and larger file size
• Decreasing the sample rate means fewer samples per second hence
fewer bits per second and smaller file size
Sample resolution:
• A higher sampling resolution means more bits per sample and a larger
file size
• A lower sampling resolution means fewer bits per sample. a smaller file
size
• Data is lost
• The decompressed file is not the same as the original
(i) Convert the denary ASCII character code for ‘A’ into 8-bit binary.
[1]
(ii) Convert the denary ASCII character code for ‘A’ into hexadecimal.
..................................................................................................................................... [1]
..................................................................................................................................... [1]
Ans-8
Question Answer Marks
0100 0001
41
0044
9608/12/M/J/19
9 A computer uses the ASCII character set.
(a) State the number of characters that can be represented by the ASCII character set and the
extended ASCII character set.
ASCII ...........................................................
(b) Explain how a word such as ‘HOUSE’ is represented by the ASCII character set.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
The Unicode value for the character ‘1’ is denary value 49.
(i) Write the hexadecimal value for the Unicode character ‘1’.
..................................................................................................................................... [1]
(ii) Write the denary value for the Unicode character ‘5’.
..................................................................................................................................... [1]
Ans-9
ASCII = 128 // 27
6(c)(i) 31 1
6(c)(ii) 53 1
10 A register stores the following binary number:
1 1 0 0 1 1 0 1
(a) The binary value in the register represents an unsigned binary integer.
............................................................................................................................................. [1]
(b) The binary value in the register represents a two’s complement binary integer.
............................................................................................................................................. [1]
............................................................................................................................................. [1]
(d) State why the value in the register cannot be interpreted as a Binary Coded Decimal (BCD).
...................................................................................................................................................
............................................................................................................................................. [1]
Register 1 0 0 1 1 1 1 0 1
Register 2 0 0 1 0 1 1 0 1
(i) Add the contents of Register 1 and Register 2. Show your working.
Answer ..............................................................................................................................
[2]
(ii) Subtract the contents of Register 2 from the contents of Register 1. Show your working.
Answer ..............................................................................................................................
[2]
Ans-10
Question Answer Marks
4(a) 205 1
4(b) – 51 1
4(c) CD 1
0011 1101
+0010 1101
0110 1010
111 1 1
0011 1101
+1101 0011 (two’s complement)
0001 0000
1111 111