CS302 Assignment # 1 Solution

Question_1:

Convert following decimal values to binary:

3.25
3.25 = 11.01
20.20
10100.00110011

Question_2:
Express each decimal number as an 8-bit number in the 2's complement form:

+18
00010010
-117
11110101

Question_3:
Represent the following binary numbers in Hexadecimal:

1111110000
0011
1111
0000 3
F
0
Two zeros have been added to complete a 4-bit ***** at the left
1001001001000
0001
0010
0100
1000 1

2
4
8
Three zeros have been added to complete a 4-bit ***** at the left
Question_4:
What is the highest decimal number that can be represented by each of the following numbers of binary digits (bits) ? (litlle doubted plz confirm ur self)

two
10
eight
1000
sixteen
10000
thirty-two
100000

0 comments: