unit--3
unit--3
Q.
Question (s) Marks BL CO
No
UNIT – III
1 a. Classify the data types in digital computers 1M
b. What are the different number systems 1M
c. Represent +6132.789 as a floating-point number 1M
d. Why should the sign of the remainder after a
1M
division is same as the sign of the dividend.
e. What are the different ways of representing a
1M
negative number?
a. Explain (r-1) complement in decimal and binary
2 3M
number systems
b. Explain how a 2’s complement subtraction is 3M
performed.
a. Find the 1’s and 2’s complement of the following 3M
eight-digit binary number
a. 10101110 b. 10000001
b. What is the purpose of Decimal Arithmetic Unit? 3M
c. State the addition algorithm. 3M
a. Explain the representation of Floating-point
3 5M
numbers
b. Explain the register organization for floating point 5M
operations.
c. Discuss how decimal numbers are represented 5M
using fixed point representation.
d. Discuss the different types of representation of 5M
signed numbers.
e. Explain BCD Adder. 5M
a. Using 2’s complement method solve the following 10M
i. -75 +26
4
ii. 46 - 14
iii. – 6 – 13
b. Explains Booths Multiplication Algorithm with a 10M
numerical example
ANSWERS:
1d). Why should the sign of the remainder after a division is same as the sign of
the dividend.
Ans:
The binary number system with radix=2 has 1’complemenet and 2’s complement.
For 1’s complement, we subtract each bit from 1 and for 2’s complement, 1 is added to
1’s complement of the number
2c). Find the 1’s and 2’s complement of the following eight-digit binary number
i. 10101110 ii. 10000001
Ans:
1’s complement is obtained by subtracting each bit of the number from 1.
2’s complement is obtained by adding 1 to 1’s complement of the number.
i.
A = 1 0 1 0 1 1 1 0
1’s(A) = 0 1 0 1 0 0 0 1
SR 22
2’s(A) = 1’s(A) + 1 = 0 1 0 1 0 0 1 0
ii. A = 1 0 0 0 0 0 0 1
1’s(A) = 0 1 1 1 1 1 1 0
2’s(A) = 1’s(A) + 1 = 0 1 1 1 1 1 1 1
The first part is called as mantissa which consist of sign followed by the fixed-
point number and the second part called as exponent defines the position of the
decimal/binary point
Floating point numbers take the form m x re. Where, m is mantissa, r is radix of
the number and e is the actual position of the decimal/binary point.
If the mantissa is represented as 8-bits and exponent as 6-bits. Then the above
number is represented as 01001110 x 2 +4.
3c). Discuss how decimal numbers are represented using fixed point
representation
Ans:
In addition to the sign, a number may have a binary (or decimal) point. The
position of the binary point is needed to represent fractions, integers, or mixed integer-
fraction numbers. The representation of the binary point in a register is complicated by
the fact that it is characterized by a position in the register. The fixed-point method
assumes that the binary point is always fixed in one position. The two positions most
widely used are (1) a binary point in the extreme left of the register to make the' stored
number a fraction, and (2) a binary point in the extreme right of the register to make the
stored number an integer. In either case, the binary point is not actually present, but
its presence is assumed from the fact that the number stored in the register is treated
as a fraction or as an integer. The floating-point representation uses a second register
to store (l. number that designates the position of the decimal point in the first register
A positive number is represented with same value in all the above 3 forms
A negative number is represented as follows
Sign magnitude form: the MSB =1 and remaining bits form the magnitude and
are in true binary
Sign 2’s complement form: MSB=1, remaining bits form the 2’s complement of
magnitude
Sign 1’s complement form: MSB=1, remaining bit form the 1’s complement of
magnitude
Example:
SR 22
4c). Draw and explain the hardware for signed – magnitude addition and
subtraction
Ans: