Grade 9 Assignment (1)
Grade 9 Assignment (1)
representation
Q2. The ASCII code for 'A' is 65 and for 'a' is 97. a Write these denary
i 65
ii 97
i ’V'
ii ‘v’
c Write the two denary values in part b in 8-bitbinary format:
i ’V’
ii ‘v’
7
1 Data
representation
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.
i Show the contents of the register after this left shift operation.
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.
9
1 Data
representation
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.
i +47
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.
11
1 Data
representation
Q7. a A camera detector has an array of 4096 by 2048 pixels and
uses a colour depth of 16.
1 ...........................................................................................................
.............................
2 .........................................................................................................
............................
3 .........................................................................................................
............................
13
1 Data
representation
______________________________________________________________________
_______
______________________________________________________________________
_____
15