DLD 1
DLD 1
DLD 1
SEMESTER = 2nd
CMS ID = 391705
Answer:
Decimal Binary Octal Hexadecimal
757.25 1011110101.010 1365.2 2F5.4
1437.75 10110011101.11 2635.6 59D.C
3761.375 111010110001.011 7261.3 EB1.6
64206.6875 1111101011001110.1011 175316.54 FACE.B
Answer:
a) (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G, H, I, J) where A = 10, B = 11, C = 12, D =
13, E = 14, F = 15, G = 16, H = 17, I = 18, J = 19.
b) Conversion of (2011) from base 10 to base 20 = (𝟓𝟎)𝟐𝟎
c) Conversion of (BEE.1) from base 20 to base 10 = (𝟒𝟔𝟗𝟒. 𝟎𝟓)10
Answer:
X = (761)8 Y = (2205)6
• In 10-bits:
(110100)2 => (52)10
• In signed 2’s Complement:
(110100)2
• In signed 1’s Complement:
(001011)1
Answer:
X= Y=
X = -0111010 Y = 01000001
X = 10111010 Y=
Answer:
Answer:
X = (+458)10
Y = (-480)10
X + Y = 458 – 480
Step 01: 9’s Complement of 480 is obtained by subtracting each digit from 9.
999 − 480 = 519
Step 02: Now add 1 to the 9’s Complement to obtain 10’s Complement,
519 + 1 = 520.
Answer:
a. (-118.625)10 is represented in signed-2’s complement fixed point format as
(000010010010)2
b. The three elements that make up the number's 32-bit single precision IEEE 754
binary floating point representation:
Sign (1 bit) = 1 (a negative number)
Exponent (8 bits) = 1000 0101
Mantissa (23 bits) = 110 1101 0100 0000 0000 0000
Hence,
-118.625 in single-precision (32-bits) floating point is (1100 0010 1110 1101 0100
0000 0000 0000).
c. (-118.625) is represented in signed Binary Coded Decimal (BCD) as (1001 0001
1000.0110 0010 0101)BCD
A= 0 1 0 1 0 1 0 1
B= 0 0 1 1 0 0 1 1
C= 0 0 0 0 1 1 1 1
F= 0 1 1 1 1 1 1 1
A= 0 1 0 1 0 1 0 1
B= 0 0 1 1 0 0 1 1
C= 0 0 0 0 1 1 1 1
G= 1 1 1 1 1 11 0