0% found this document useful (0 votes)
13 views3 pages

Assignment1 Number Base System

The document contains a series of assignments related to binary, decimal, hexadecimal, and octal number systems, including conversions, arithmetic operations, and representations of negative numbers. It includes tasks such as finding complements, performing additions and subtractions, and converting between different numeral systems. The document concludes with various examples and answers for each task.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Assignment1 Number Base System

The document contains a series of assignments related to binary, decimal, hexadecimal, and octal number systems, including conversions, arithmetic operations, and representations of negative numbers. It includes tasks such as finding complements, performing additions and subtractions, and converting between different numeral systems. The document concludes with various examples and answers for each task.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 1: Prepared By: Utkarsa Dahal 12.

Find l's and 2's complements of the following binary


Number Base System: numbers:
1. Convert the following binary numbers to equivalent (i) 0.101 (ii) 10.011 (iii) 100.11 (iv) 101.1
decimal numbers: [Ans. (i) 1.010, 1.011 (ii) 01.100, 01.101 (iii) 011.00, 011.01
(i) 11010 (ii) 1011001 (iii) 1001011 (iv) 10011010 (iv) 010.0, 010.1]
[Ans. (i) 26 (ii) 89 (iii) 75 (iv) 154]
13. Perform the following subtractions of binary numbers
2. Convert the following decimal numbers to equivalent using 2's complements:
binary numbers: (i) 1101 - 1001 (ii) 101 - 111 (iii) 101 - 0.11 (iv) 0.11 - 0.101
(i) 19 (ii) 43 (iii) 154 (iv) 97. [Ans. (i) 0100 (ii) -10 (iii) 100.01 (iv) 0.001]
Ans. (i) 10011 (ii) 101011 (iii) 10011010 (iv) 1100001]
14. How is a negative number represented? Represent - 5 in
3. Convert the following binary fractions to equivalent binary number:
decimal fractions: [Ans: Signed-magnitude representation 10101
(i) 0.1011 (ii) 0.1010 (iii) 0.011 (iv) 0.0101 Signed l's complement representation 11010
Ans. (i) 0.6875 (ii) 0.625 (iii) 0.375 (iv) 0.3125] Signed 2's complement representation 11011]

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]

40. A data scientist is analyzing sensor data from a scientific


experiment. The sensor data includes an octal error code,
5671. Convert this octal error code to binary for error
correction. [Ans. 101110111001]
***The End***

You might also like