Calculation Problem 3
Calculation Problem 3
1 Data representation
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
11 a Write down the largest number that can be represented by the following binary register.
.............................................................................................................................................................................
.............................................................................................................................................................................
12 Photocopying prohibited Cambridge IGCSE and O Level Computer Science Computer Systems Workbook
318496_01_IGCSE_OLCSSW_005-025.indd Page 13 31/03/21 2:01 PM sw-103 /130/HO01894/work/indd
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.
.......................................................................................................................................................................
.......................................................................................................................................................................
Cambridge IGCSE and O Level Computer Science Computer Systems Workbook Photocopying prohibited 13
318496_01_IGCSE_OLCSSW_005-025.indd Page 14 31/03/21 2:01 PM sw-103 /130/HO01894/work/indd
1 Data representation
iii The register in part b i now undergoes a further logical shift two places to the right.
Comment on your result.
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
c 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.
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
13 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.
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
.............................................................................................................................................................................
14 Photocopying prohibited Cambridge IGCSE and O Level Computer Science Computer Systems Workbook
318496_01_IGCSE_OLCSSW_005-025.indd Page 15 31/03/21 2:01 PM sw-103 /130/HO01894/work/indd
1 Data representation
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 i 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 most negative:
denary value:
........................................................................................................................................................................
........................................................................................................................................................................
Cambridge IGCSE and O Level Computer Science Computer Systems Workbook Photocopying prohibited 15