Unit 1 Assessment
Unit 1 Assessment
1
Assessment test
Unit 1 Data representation
1 1 0 1 1
+ 0 1 0 0 1 1
+ 1 1 1 1 0 0 0
=
1 1 1 1 1 1 1 1
Register 2
0 0 0 0 0 0 0 1
A program has an instruction that adds the two registers together and stores the result
in a third 8-bit register.
Explain the problem that will occur.
0 1 1 0 0 1 1 1
(b) Explain the effect on the value of the number after the left shift has
been carried out.
2
Assessment test
Unit 1 Data representation
(b) How many bytes would the following message require to store with 8-bit extended
ASCII?
Bring hat!
7. Photo editing packages often use colour codes in hexadecimal and denary rather than
binary.
(a) Convert the hexadecimal colour code 3C into binary.
3
Assessment test
Unit 1 Data representation
(b) Convert the denary colour code 42 into hexadecimal. Show your working.
(c) Explain why colour codes are given in hexadecimal rather than binary.
(d) A monochrome icon image imported into the photo editing package. The pixels of the
image are shown below.
4
Assessment test
Unit 1 Data representation
(iii) The graphic artist would like to add two additional colours to the icon.
Explain how this would affect the file size.
(iv) Show how the first row may be represented as binary bitmap data where
white = 1 and black = 0.
(v) Explain how the first row may be encoded using Run Length Encoding where
white = 1 and black = 0.
8. A CPU register stores the following binary data in a location of main memory.
1 1 1 1 1 1 0 1 0 0 1 1 0 1 0 1
5
Assessment test
Unit 1 Data representation
9. Ray is recording his voice for a presentation and can adjust the sample resolution that is
used for the recording.
(a) Explain the effect of increasing the sample resolution on the quality of
the sound file.
(b) Explain the effect of increasing the sample rate on the size of the sound file.
(c) Ray will record 30 seconds of audio with the following settings:
Resolution: 16-bits
Sampling rate: 10 kHz
Calculate the file size in kilobytes of the recording if it is uncompressed.
6
Assessment test
Unit 1 Data representation
(d) Ray decides to compress the file before sending it to a friend. He compresses it using
the MP3 format which performs a lossy compression.
(i) Define the meaning of the term lossy compression.
[Total 50 marks]