1.2 Text, Sound and Images
1.2 Text, Sound and Images
Text
Character Set
1) ASCII
2) Unicode
- It is a subset of Unicode.
- The character set is not standardized. Hence, characters may be different codes in different systems.
Unicode
- It has a greater range of characters and symbols than ASCII, including different languages and emojis.
- It is a superset of ASCII.
- The character set is standardized. Hence, characters have the same code in different systems.
Page 1 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
Exercises
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
[2 marks]
__________________________________________________________________________________________
[1 mark]
(b) Explain the differences between the ASCII and Unicode character sets.
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
[2 marks]
Calculate the ASCII code in hexadecimal for ‘Z’. Show your working.
Working:
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
[2 marks]
Page 2 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
The following tables show part of the ASCII code character set.
Bed
__________________________________________________________________________________________
[1 mark]
(iii) Give the denary ASCII code for the following character.
__________________________________________________________________________________________
[1 mark]
__________________________________________________________________________________________
[1 mark]
Page 3 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
Sound
- Since the computer understands only data in digital form, an Analogue-to-Digital Converter (ADC) is needed.
- Similarly, a Digital-to-Analogue Converter (DAC) is needed to convert the data from digital form to analogue so
that it can be played via speakers / headphone.
Analogue Data
Digital Data
- Since computers can only store data that has a limited number of data points (discrete values), it is difficult to
record perfectly.
Page 4 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
- Sound is a continuous set of data points formed by a - The discrete approximations can be used to
wave. recreate the original sound.
- Computers need to sample this sound at discrete - Due to limitations in the number of samples we
points to store a digital approximation. take we are often unable to truly represent a sound
wave.
Sampling
- This is done to get an approximation of the sound wave so that it can be converted into a digital signal.
Key Terms
1. Hertz (Hz)
2. Sample Rate
- It refers to the number of times the amplitude of the original sound wave is measured.
Page 5 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
Note:
1. When recording music in MP3 format, the following sample rates are commonly used: 32000, 44100 or 48000
Hz.
2. Recording the human voice requires a lower sampling rate of around 8000 Hz.
- It is also defined as the number of distinct values available to encode / represent each sample.
Note:
Exercises
(a) Sampling
______________________________________________________________________________________
______________________________________________________________________________________
[2 marks]
______________________________________________________________________________________
______________________________________________________________________________________
[2 marks]
Page 6 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
______________________________________________________________________________________
______________________________________________________________________________________
[2 marks]
2. Give one benefit and one drawback of using a higher sample rate.
Benefit: _______________________________________________________________________________
______________________________________________________________________________________
Drawback: _____________________________________________________________________________
______________________________________________________________________________________
[2 marks]
______________________________________________________________________________________
[1 mark]
______________________________________________________________________________________
[1 mark]
4. Give one benefit and one drawback of using a higher sample resolution.
Benefit: _______________________________________________________________________________
______________________________________________________________________________________
Drawback: _____________________________________________________________________________
______________________________________________________________________________________
[2 marks]
Page 7 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
5. John has decided to use a higher sample rate on an audio file. He would then upload the audio file on his
website.
Describe the effects increasing the sample rate would have on the audio file.
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
[4 marks]
Page 8 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
Image
Key Terms
1. Pixel
2. Resolution
- The higher the resolution, the more pixels will be used to produce an image. Thus, a more detailed image can be
produced.
Page 9 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
3. Colour Depth
- It is the number of bits used to represent the colour of a single pixel.
Formula: Number of Colours = 2 Colour Depth
Exercises
1. Four computer graphics terms and seven descriptions are shown below. Draw a line to link each term to its
correct description.
Term Description
[4 marks]
Page 10 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
2. Bitmap graphics are used to represent squares. These can be saved in a number of different image
resolutions.
Give the number of bits required to store each pixel for a black and white bitmap.
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
[1 mark]
3. Identify how many bits are required to store each pixel for a 256-colour bitmap. Explain your answer.
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
[1 mark]
4. Xander creates a presentation that includes images, video and sound. An image can be made up of any
number of colours. Each colour is represented by a unique binary number.
Draw one line from each box on the left, to the correct box on the right to identify the minimum number of bits
needed to store each maximum number of colours.
68 1
256 2
127 3
2 7
249 8
[5 marks]
Page 11 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
Page 12 of 13
Computer Science Tuition by Mr Chelliah | Maurel Road, Riviere Du Rempart | 59236057
State the minimum number of bits needed to represent each pixel in the image.
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
[2 marks]
Page 13 of 13