GATE 2008
185 questions
MCQ 1851-mark 52 · 2-mark 133
Questions 51–55 of 185
Consider the following state diagram and its realization by a JK flip flop
The combinational circuit generates J and K in terms of x, y and Q.
The Boolean expressions for J and K are :
The combinational circuit generates J and K in terms of x, y and Q.
The Boolean expressions for J and K are :
Answer: (D)
Read the state diagram. In state the input or keeps the state at , and or moves it to . In state the same happens the other way round. Fill the table using the JK excitation table (d means don't care):
The K-maps for and are:
Both maps give and . So the flip-flop toggles when and holds when .
Answer: (D)
The two numbers given below are multiplied using the Booth's algorithm.
Multiplicand : 0101 1010 1110 1110
Multiplier: 0111 0111 1011 1101
How many additions/Subtractions are required for the multiplication of the above two numbers?
Multiplicand : 0101 1010 1110 1110
Multiplier: 0111 0111 1011 1101
How many additions/Subtractions are required for the multiplication of the above two numbers?
Answer: (B)
Add a on the right of the multiplier, :
Take overlapping pairs from the right. The pair means subtract (), the pair means add (), and or means no operation.
For to , the pairs are:
10, 01, 10, 11, 11, 11, 01, 10, 11, 11, 11, 01, 10, 11, 11, 01
The pairs (subtractions) are at , so there are 4. The pairs (additions) are at , so there are 4. All other pairs are and need no operation.
So the total is additions and subtractions.
Answer: (B)
Take overlapping pairs from the right. The pair means subtract (), the pair means add (), and or means no operation.
For to , the pairs are:
10, 01, 10, 11, 11, 11, 01, 10, 11, 11, 11, 01, 10, 11, 11, 01
The pairs (subtractions) are at , so there are 4. The pairs (additions) are at , so there are 4. All other pairs are and need no operation.
So the total is additions and subtractions.
Answer: (B)
The following bit pattern represents a floating point number in IEEE 754 single precision format
1 10000011 101000000000000000000000
The value of the number in decimal form is
1 10000011 101000000000000000000000
The value of the number in decimal form is
Answer: (C)
Split the pattern as sign, exponent and mantissa: .
The sign bit is , so the number is negative.
The exponent bits are . IEEE single precision uses a bias of , so the exponent is .
The mantissa bits are . A leading is implied before the point, so the mantissa is .
The value is .
Note: the pattern as printed has 24 bits after the exponent, one more than the 23-bit mantissa field of single precision. The extra bit is a trailing 0, so it does not change the value.
Answer: (C)
The sign bit is , so the number is negative.
The exponent bits are . IEEE single precision uses a bias of , so the exponent is .
The mantissa bits are . A leading is implied before the point, so the mantissa is .
The value is .
Note: the pattern as printed has 24 bits after the exponent, one more than the 23-bit mantissa field of single precision. The extra bit is a trailing 0, so it does not change the value.
Answer: (C)
Let r denote number system radix. The only value(s) of r that satisfy the equation is / are
Answer: (D)
So every integer makes this true. But has to be larger than , because the digit appears in and the radix must be larger than every digit. (D) is the most suitable answer
In the IEEE floating point representation the hexadecimal value 0x00000000 corresponds to
Answer: (D)
Write in bits: all 32 bits are . So the sign bit is , the 8 exponent bits are all and the 23 mantissa bits are all .
In IEEE-754 single precision, an exponent field of all 0s is reserved for special values, and a normalized number never uses it. A normalized number has exponent field from to and an implied leading , so it can never be zero. The special values are:
- exponent all 0s, mantissa all 0s: zero ( if the sign bit is , if it is )
- exponent all 0s, mantissa non-zero: a denormalized number
- exponent all 1s, mantissa all 0s: or by the sign bit
- exponent all 1s, mantissa non-zero: NaN
So is the special value .
(A) and (B) are wrong because normalized values are not stored with an all-0 exponent field; the smallest normalized number, , is . (C) is wrong because zero is not a normalized value.
Answer: (D)
In IEEE-754 single precision, an exponent field of all 0s is reserved for special values, and a normalized number never uses it. A normalized number has exponent field from to and an implied leading , so it can never be zero. The special values are:
- exponent all 0s, mantissa all 0s: zero ( if the sign bit is , if it is )
- exponent all 0s, mantissa non-zero: a denormalized number
- exponent all 1s, mantissa all 0s: or by the sign bit
- exponent all 1s, mantissa non-zero: NaN
So is the special value .
(A) and (B) are wrong because normalized values are not stored with an all-0 exponent field; the smallest normalized number, , is . (C) is wrong because zero is not a normalized value.
Answer: (D)