Professional Documents
Culture Documents
Introduction To Computing
Introduction To Computing
Question no.1
Alice and Bob are playing a game by encoding their messages in an 8-bit binary. Trudy
wants to understand or modify their messages. You have to help Trudy to convert encoded
messages into a readable format by performing the following operations.
(a) Convert the above 8-digit binary numbers into decimals.
(6 marks)
solution
010010002 =
(0×27) + (1×26) + (0×25) + (0×24) + (1×23) + (0×22) + (0×21) + (0×20)
0+64+0+0+8+0+0+0
010010002 = 7210
011010012=
(0×27) + (1×26) + (1×25) + (0×24) + (1×23) + (0×22) + (0×21) + (1×20)
= 0+64+32+0+8+0+0+1
011010012= 10510
001011 002=
(0×27) + (0×26) + (1×25) + (0×24) + (1×23) + (1×22) + (0×21) + (0×20)
=0+0+32+0+8+4+0
001011002= 4410
© Decode the 8-digit binary in textual form. (Hint: using the ASCII table).
Solution:
01001000 01101001 00101100
ACSII Codes 72 105 44
H i ,
Textual Form is: Hi,
ANSWER NO .2.
A 1
B 1
C 1
D 1
ANSWER NO.3: