Assignment1 Number Base System
Assignment1 Number Base System
4. Convert the following real binary numbers to equivalent 15. Convert the following hexadecimal numbers to equivalent
decimal numbers: decimal numbers:
(i) 1001.101 (ii) 1101.11 (iii) 11001.0101 (iv) 101001.1101 (i) 5A (ii) 1A5E (iii) AB7 (iv) 3A9 (v) 6B
[Ans. (i) 9.625 (ii) 13.75 (iii) 25.3125 (iv) 41.8125] [Ans. (i) 90 (ii) 6750 (iii) 2743 (iv) 937 (v) 107]
5. Convert the following decimal numbers to equivalent 16. Convert the following decimal numbers to equivalent
binary numbers: hexadecimal numbers:
(i) 17.71875 (ii) 50.7. (iii) 74.635 (iv) 100.5 (i) 70 (ii) 950 (iii) 10761 (iv) 6747 (v) 428
[Ans. (i) 10001.10111 (ii) 110010.1011001 (iii) [Ans. (i) 46 (ii) 3B6 (iii) 2A09 (iv) 1A5B (v) 1AC]
1001010.1010001 (iv) 1100100.10]
17. Convert the following decimal numbers to equivalent
7. Perform the following additions and check the result by octal numbers:
converting the binary numbers to decimal: (i) 63 (ii) 460 (iii) 2749 (iv) 201 (v) 3965
(i) 1100 + 1001 (ii) 101011 + 110010 (iii) 1011001 + 11010 [Ans, (i) 77 (ii) 714 (iii) 5725 (iv) 311 (v) 7575]
[Ans. (i) 10101 (ii) 1011101 (iii) 1110011]
18. Convert the following octal numbers to equivalent
8. Perform the following additions and check by converting decimal numbers:
the binary no. to decimal: (i) 72 (ii) 642 (iii) 5264 (iv) 704
(i) 101.011 + 11.110 (ii) 1011.1010 + 1000.011 (iii) [Ans. (i) 58 (ii) 418 (iii) 2740 (iv) 452]
11001.1011 + 10011.0110
[Ans. (i) 1001.001 (ii) 10100.00 (iii) 101101.0001] 19. Convert the following hexadecimal numbers to equivalent
binary numbers:
9. Perform the following subtractions and check the result by (I) 6BC (ii) 5D, (iii) F2E (iv) 4C3F (v) 6E
converting the binary numbers to decimal: [Ans, (i) 11010111100 (ii) 1011101 (iii) 111100101110 (iv)
(i) 1101 - 1001 (ii) 11001 - 10110 (iii) 10011010 - 1100001 100110000111111, (v) 101110]
[Ans. (i)100 (ii) 11 (iii) 111001]
20. Convert the following binary numbers to equivalent
10. Perform the following subtractions and check the result hexadecimal numbers:
by converting the binary numbers to decimal: (i) 10110110111 (ii) 10010101 (iii) 1111110 (iv) 1101001100
(i) 101.101 - 11.011 (ii) 1100.01 - 1001.11 (iii) 1011.1 - 100.11 (v) 101101
[Ans. (i) 10.01 (ii) 10.1 (iii) 110.11] [Ans. (i) 5B7 (ii) 95 (iii) 7E (iv) 34C (v) 2D]
11. Find 1's and 2's complements of the following binary 21. Convert the following octal numbers to equivalent binary
numbers: numbers:
(i) 1010 (ii) 11001 (iii) 000 (iv) 111 (i) 435 (ii) 637 (iii) 256 (iv) 134
[Ans. (i) 0101, 0110 (ii) 00110, 00111 (iii) 111, 000 (iv) 000, [Ans. (i) 100011101 (ii) 110011111 (iii) 10101110 (iv)
001] 1011100]
22. Convert the following binary numbers to equivalent octal 29. A computer stores a number in a 32-bit register using
numbers: floating-point representation.
(i) 100011101 (ii) 1100101 (iii) 10110111 (iv) 11010110 (a) Show the floating-point representation of BE20000016 in
[Ans. (i) 435 (ii) 145 (iii) 267 (iv) 326] computer storage
(b) Find the equivalent Hexadecimal value for the floating-
23. Convert the following hexadecimal numbers to equivalent point representation 11000001010101000000000000000000.
octal numbers: [Ans. Solve by yourself]
(i) 4B (ii) D9 (iii) 3F2 (iv) 5A3
[Ans. (i) 113 (ii) 331 (iii) 1762 (iv) 2643] 30. Show how computer stores 5.625 in 8-bit floating point
format.
24. Convert the following octal numbers to equivalent 31. Tom is programming a game, and he is tracking the player
hexadecimal numbers: score using Hexadecimal number. At the start of the game, the
(i) 134 (ii) 67 (iii) 1527 (iv) 4753 player scored 2A7F points. After completing a level, the player
[Ans. (i) 5C (ii) 37 (iii) 357 (iv) 9EB] earns 1B4D points. Find the player score after this level.
[Ans: 45CC]
25. Using the 2's complement in 8-bit register, perform the
following operations: 32. Given below are two statements:
a. (i) 4710 + 2310 (ii) 2710 –1310 (iii) 3710 –3910 (iv) –9710 –8910 Statement 1: The value of octal number 52 is 42 in the
(Express your answer in decimal base.) decimal/denary number system.
[Ans. (i)7010 (ii)1410 (iii) -210 (iv) -18610] Statement 2: The value of decimal/denary number 30 is 40 in
the octal number system.
b. (i) 478 + 238 (ii) 278 – 138 (iii) 338 – 358 (iv) –378 – 328 Which of the following is a true statement? Find the correct
(Express your answer in octal base.) result if the statement is false.
[Ans. (i) 728 (ii) 148 (iii) -28 (iv) -718] [Ans. Statement 1 is true and Statement 2 is false.
Statement 2 → 3010 = 368]
c. (i) A716 + B316 (ii) C216 – B316 (ii) 3A16 – 7F16 (ii) –EA16 – 8916
(Express your answer in decimal base.) 33. Find the 2’s complement representation of −34 in 8-bit
[Ans. Perform by your knowledge.] register.
[Ans. 10101110]
26. Find the value of X for the following equation.
a. 176.2510 – 101101.0112 + A2.C16 = X8 [Ans. 445.58] 34. The library has a website that customers can use to search
(Show your workings in octal base.) for a book. The website has a background color with the
Hexadecimal color code F92A. Two 8-bit binary registers, P and
b. 312.7510 – 11100.1012 + 1B.C16 = X8 [Ans. 471.58] Q, are used to represent the color code F9 and 2A. Find the
(Show your workings in decimal base.) equivalent binary representation of these registers.
[Ans. Solve by yourself]
c. 64.7510 – 1111.0012 + A0.516 = X8 [Ans. 321.748]
(Show your workings in hexadecimal base.)
35. Solve: 10011.1012 + 1001.112 = X2 [Ans: 11101.011]
27. A computer stores a number in a 16-bit register using
floating-point representation. Given that the first bit is 36. What will be the sign and magnitude representation of
reserved for the sign, followed by 6 bits for the exponent with −72 in 8-bit representation. [Ans. 11001000]
a bias of (+31) and the remaining bits are the mantissa has a
hidden bit. 37. A programmer is working on a web application and needs
(a) Show the floating-point representation of -28.75 in to set a timeout value in milliseconds. The timeout value is
computer storage given as B81C in Hexadecimal. Convert this value to denary to
(b) Find the equivalent decimal value for the floating-point
determine the timeout duration. [Ans. 47132]
representation 0100110011100000.
[Ans. Solve by yourself]
38. A network administrator is setting up MAC addresses for
28. A computer stores a number in a 32-bit register using network devices. The binary MAC address is
floating-point representation. Show the floating-point 101010101100110011001010. Convert this binary MAC
representation of -125.75 in computer storage. address to Hexadecimal for device identification.
[Ans. Solve by yourself] [Ans. AACCCA]
39. A denary/decimal base value of the MCFC tutorial class
venue is displayed on class timetable as 919810. Convert this
denary value to Hexadecimal to know the venue. [Ans. E0902]