Thursday, 19 January 2017

January Mock corrections

1a) a system stores integers in 16 buts. using binary representation, show the steps of subtracting 6 from 18, using two's compliment.

18= 0000000000010010
6=   0000000000000110
-6=  11111111111111001
                                      1
        1111111111111010
        0000000000010010
 12= 000000000000110

1b) A801= 1010100000000010

1.01010000000   0010

decimal value = -2.75


2a) smallest positive value

0.1000000  0001


3c) calculate the number of bytes

10 x 10 = 100
100 x 2 = 200
200 / 9 = 25 bytes

5b) if an image required 3000 colours - how many bits would be required for the colour depth?
12 bits

No comments:

Post a Comment