Grade 9 Assignment
Grade 9 Assignment
Gulistan-e-Jauhar Campus
Autumn Break Assignment
Q1. a) How many mebibytes (MiB) of storage would be needed to store 800 photographs
each of which are 16 MiB in size?
Q2. The ASCII code for 'A' is 65 and for 'a' is 97. a Write these denary values in 8-bit binary:
i 65
ii 97
i ’V'
ii ‘v’
6
1 Data representation
i ’V’
ii ‘v’
Q4. An 8-bit binary register contains the following value:
0 0 1 1 1 1 0 0
b) The contents of the register undergo a logical shift one place to the right.
c) The register in part b(i) now undergoes a further Logical shift two places to the right.
Comment on your result.
d) The content of the original register (shown in part a) now undergoes a logical shift two
places to the left.
i Show the contents of the register after this left shift operation.
ii State, with reasons, the effect of this shift on the denary value shown in part a.
8
1 Data representation
Q5 a Convert the denary numbers, 37 and 19, into 8-bit binary numbers:
37:
..............................................................................................................................................
19:
..............................................................................................................................................
b Add together the two binary numbers in part a, and give your answer in binary.
c Carry out a logical shift, two places to the left, on your result from part b.
d Carry out a logical shift, four places to the right, on your result from part b.
a Complete the headings for an 8-bit binary number which uses two's complement:
64 32 16 8 4 2 1
b Write down the most negative and ii the most positive numbers that can be stored in
an 8-bit register which uses two's complement. Give your answers in both denary
and binary format.
10
1 Data representation
c Convert the following two denary numbers into 8-bit binary numbers which use the
two's complement format.
i +47
d Convert the following two binary numbers, written in two's complement format, into
denary.
i. 11001110
ii. 11111110
e i Convert the denary number, +45, into binary, using the two's complement format.
ii Convert the denary number, -45, into binary, using the two's complement format.
Q7. a A camera detector has an array of 4096 by 2048 pixels and uses a colour depth of 16.
Calculate the size of an image taken by this camera; give your answer in MiB.
b An audio CD uses 40960 samples per second, with 16 bits being used
per sample. The music being sampled uses two channels to allow for
stereo recordings. Calculate the file size for a 1024 second recording.
Give your answer in MiB.
12
1 Data representation
Q8. a Give three reasons why it is often necessary to reduce the size of a file.
1 ........................................................................................................................................
2 .....................................................................................................................................
3 .....................................................................................................................................
_____________________________________________________________________________
___________________________________________________________________________
14