1.4.1 Data Types
1.4.1 Data Types
(AS Content)
Marks: /36
Answer all the questions.
[1]
[1]
Add the following three numbers together and give the answer in the format described. You must show your
working.
[6]
2a). Two equal (unsigned) integers, shown below, are added together. Calculate the result, showing your working.
[2]
(b). State which bitwise manipulation on 00010101 would have achieved the same result as the calculation on part
(a).
[1]
[1]
(b). An OR operation with the mask 10101010 is applied to the binary number 01010101. Show the result.
[1]
4. Two floating point numbers are shown below. Calculate the answer of the second number subtracted from the
first. You must show your working and ensure your answer is normalised.
[5]
Show the effect of applying XOR on Text and Key, by completing the last row of the table below.
[2]
(b). Show the effect of applying XOR on your answer to part (a) and Key, by completing the first and last rows of the
table below.
[2]
(c). Explain whether the type of encryption described above is symmetric or asymmetric.
[2]
(d). Explain why asymmetric encryption is more suited to transactions over the internet than symmetric encryption.
[4]
[1]
[1]
(b). A floating point number is represented with a mantissa of 8-bits followed by an exponent of 4-bits, both in two's
complement.
00011010 0010
[1]
[1]
[2]
[1]
[1]
1 a i 10001000 1
ii 11111000 1
(1 per –)
Total 8
Total 3
3 a 00000000 1
b 11111111 1
Total 2
4 Exponent of first number is 3 (1) 5 Accept any sensible method (eg converting
Making it 0100.1100 (1) one number to have same exponent as
Exponent of second number is 2 (1) other and subtracting) with correct answer
Making it 010.01010 (1) for full marks.
Total 5
5 a 2
One byte correct (1) all three bytes
correct. (1)
c Symmetric (1) …. as the same key is used 2 Allow FT for asymmetric if (b) indicates
to decrypt it as encrypt it (1) asymmetric encryption used
Total 10
6 a i 11110111 1
ii 10001001 1
b i Not Normalised 1
Total 4
Examiner’s Comments
Generally most candidates stated that two
bit shifts were required but some went on
to state the incorrect direction i.e. left.
Total 2
8 i 00110000 1
ii Multiplying by 4 1
Total 2