Computer Science 1
Computer Science 1
Explain why lossy compression is suitable for a video clip, but not suitable for a text document.
[3]
The table below shows some CPU instructions and what they mean.
Using examples from the instructions above, state what is meant by:
(i) an opcode
[2]
(ii) an operand
[2]
The time displayed on the microwave oven is represented as two 8-bit binary numbers, one for the minutes
and one for the seconds.
For example;
“8:20” is stored as 00001000 00010100
“15:45” is stored as 00001111 00101101
(b) Show how the time 5:30 will be stored.
[2]
(c) 00001000 00010100 can represent either the instruction for “Add 20 to the timer” or the data for the time “8:20”.
Explain how the CPU can determine whether it represents an instruction or data.
[1]
[2]
4 Kofi uses his computer to record an audio file of himself playing his guitar.
He emails his recording to a record label. He uses lossy compression to produce the music file.
[4]
[1]
(b) Convert the decimal number 191 into an 8 bit binary number.
[1]
[2]
(d)
(i) Add together the following two 8 bit binary numbers. Express your response in an 8 bit binary form.
01101010
10010110
[2]
[1]
[1]
(b) Explain the effect of performing a 2 place right shift on the binary number 11001011.
[2]
[2]
(b) An overflow error can occur when adding two 8-bit binary numbers.
[2]
[2]
[2]
(i) Convert the binary number 01101001 to denary, showing your working.
[2]
[2]
10(a) Files are often compressed before they are sent over the internet.
[1]
State one advantage of compressing files before sending them over the internet.
[1]
State which type of compression is most appropriate for each of the following and explain why it is appropriate.
Type of
compression
Explanation
[3]
Type of
compression
Explanation
[3]
[2]
(b) State the problem that will occur if a computer is to store the result as a byte.
[1]
(i) When sending text messages using a mobile phone, people can choose from hundreds of characters, called
emoji, to insert in their message. An example of an emoji is .
Hexadecimal: 1 F 6 4 A
[2]
(ii) Explain why mobile phones that can send emoji would use Unicode instead of ASCII as their character set.
[2]
[2]
[1]
(b) Explain the effect of performing a 2-place shift to the right on the binary number 11001011.
[2]
15(a) The ASCII code for the character J is the denary number 74.
Write the 8-bit binary number for the ASCII character J in the following boxes:
[1]
(b) Give the hexadecimal number for the ASCII character K.
Show your working.
[2]
(i) Explain why Layla compresses the images and videos before uploading them.
[2]
(ii) Layla wants to reduce the file size of the images and videos by the largest amount possible.
Identify the method of compression that would be most appropriate. Justify your choice.
Justification
[3]
17 Give two reasons why computer scientists use hexadecimal to represent numbers instead of binary.
[2]
[2]
(b) Azmi says, “hexadecimal is used because it takes up less storage space in the computer’s memory than binary.”
Tick one box to identify whether Azmi is correct. Justify your answer.
Tick (✓)
Correct
Incorrect
Justification
[2]
Draw one line from each shift on the left to its correct outcome on the right.
[3]
(d) Add the following 8 bit binary integers, giving your answer in binary.
[2]
[1]
(b) Perform a binary shift of 3 places right on the binary number 10001110.
[1]
[2]
(ii) Explain why lossy compression may not be appropriate to compress all of the student’s files.
[2]
1 When the file is compressed some 3 The first bullet is for the idea that
detail / data / quality / resolution is something is lost in the compression
lost… process.
… which is not noticeable in the video The second bullet is for the idea that the
file / video still viewable with lower video file is still usable with this loss.
quality The third bullet is for the idea that the text
… but would make the text file file is not usable.
unreadable / lose meaning or
comprehension
Total 3
2 a i (Part of the instruction which) specifies 2 The answer must refer specifically to the
the operation to be carried out operation to be carried out and not the
e.g. 00001000 = add to timer / instruction as a whole.
00000100 = subtract from timer
ii (Part of the instruction which) supplies 2 For data, accept number / integer.
the data / address / value needed for
an operation
e.g. the number to be added /
subtracted from the timer / numerical
example from the table (00010100 or
00000001)
Total 7
3 Examiner's Comments
e.g. 2
Total 2
4 Lossy means the decompressed file is not 2 1 mark for each bullet.
identical to the original… (1 mark for identification of the effect, one
…the difference is unlikely to be noticed by mark for an explanation)
humans
Lossy will decrease the file size …
… so it can be sent via e-mail
Total 4
c Working; (3* 16) + 14 OR 00111110 2 1 mark for correct answer, 1 for valid
62 method of working
Total 7
Total 3
Total 4
Examiner's Comments
Total 4
9 i 64 + 32 + 8 + 1 2
105.
Total 4
Transmits more quickly / uses less 1 Accept other valid advantages to do with
bandwidth sending files, NOT storage
Examiner's Comments
Total 8
1 1 1 0 0 0 for bits 5 to 0
0 0 for bits 7 and 6.
Total 3
Examiner's Comments
ii Unicode has more characters / space 2 Allow the opposite for bullet 1 i.e. ASCII
(to store the emoji) does not have enough space
Unicode is 16 bit / 1-4bytes compared
to ASCII’s 7/8 bits
Examiner's Comments
Total 4
Examiner’s Comments
Total 2
Total 3
15 a 01001010 1 cao
b 1 mark for adding 1 to J: binary 01001011 2 Allow 1 mark for converting J into 4A
// converting J to hexadecimal and adding without adding 1
1
1 mark for answer 4B
Total 3
Total 5
Total 2
Examiner’s Comments
Misconception
Total 9
Examiner’s Comments
b 00010001 1
Examiner’s Comments
Total 2
ii 1 mark each to max 2 2 MP2 is for identifying that the files contain
text and they cannot be compressed with
Data will be permanently lost // not all lossy
data is recoverable
Text files cannot be compressed with Examiner’s Comments
lossy
Teacher requires the original/high This question required application to the
quality image/video/sound files question to demonstrate candidate’s
understanding. The compression is used to
compress all of the student’s files in the
question. This includes a sound file, text
document and image.
Total 4