GATE 2004
199 questions
MCQ 1991-mark 199
Questions 61–65 of 199
A circuit outputs a digit in the form of 4 bits. 0 is represented by 0000, 1 by 0001,..., 9 by 1001. A combinational circuit is to be designed which takes these 4 bits as input and outputs 1 if the digit 5, and 0 otherwise. If only AND, OR and NOT gates may be used, what is the minimum number of gates required?
Answer: (B)
From the question, the truth table is:
The digits 10 to 15 never occur, so those rows are don't cares and can be used to make bigger groups. From this truth table we get sub cubes. They are formed from these minterms: , and
So,
This needs one OR gate for , one AND gate with , and one OR gate with . That is OR gates and AND gate, so gates. Fewer is not possible with 2-input gates: depends on all four inputs, and each 2-input gate joins only two signals, so at least 3 gates are needed.
Answer: (B)
Consider the partial implementation of a 2-bit counter using T flip-flops following the sequence 0-2-3- 1-0, as shown below.
To complete the circuit, the input X should be
To complete the circuit, the input X should be
Answer: (D)
The counter goes through , that is . For a T flip-flop, (it toggles only when the bit must change). Here is the next state.
From the table, when , so (XNOR). This is the gate already drawn in the figure.
when , so .
The input X is , so . Option (C) is the XNOR, which is , not .
Answer: (D)
From the table, when , so (XNOR). This is the gate already drawn in the figure.
when , so .
The input X is , so . Option (C) is the XNOR, which is , not .
Answer: (D)
In an SR latch made by cross-coupling two NAND gates, if both S and R inputs are set to 0, then it will result in
Answer: (C)
A NAND gate outputs 1 whenever at least one of its inputs is 0.
In the cross-coupled NAND latch, and . With , each gate has a 0 input, so both outputs are 1 whatever the other output is: and . This is steady and does not depend on any timing, so it is not indeterminate while the inputs stay at 00. But the outputs are not complements of each other, so is a forbidden input.
The state becomes indeterminate only when both inputs are then changed to 1 together. Then both gates try to go to 0 and the final state depends on which gate acts first. That is a different step, not the result of itself, which is why option (D) is not the choice.
Answer: (C)
In the cross-coupled NAND latch, and . With , each gate has a 0 input, so both outputs are 1 whatever the other output is: and . This is steady and does not depend on any timing, so it is not indeterminate while the inputs stay at 00. But the outputs are not complements of each other, so is a forbidden input.
The state becomes indeterminate only when both inputs are then changed to 1 together. Then both gates try to go to 0 and the final state depends on which gate acts first. That is a different step, not the result of itself, which is why option (D) is not the choice.
Answer: (C)
The number is equivalent to
Answer: (A)
Octal to binary to hex:
Binary to base 4:
So, option (A).
Binary to base 4:
So, option (A).
Using a 4-bit 2's complement arithmetic, which of the following additions will result in an overflow?
I. 1100 + 1100
II. 0011 + 0111
III. 1111 + 0111
I. 1100 + 1100
II. 0011 + 0111
III. 1111 + 0111
Answer: (B)
In 4-bit two's complement the range is -8 to +7. Overflow happens when the true sum is outside this range.
I. 1100 + 1100 = (-4) + (-4) = -8. The 4-bit result is 1000, which is -8. It fits, so there is no overflow (there is a carry out, but also a carry into the sign bit).
II. 0011 + 0111 = 3 + 7 = 10, which is more than 7. The 4-bit result is 1010, which reads as -6. Two positive numbers gave a negative result, so this overflows.
III. 1111 + 0111 = (-1) + 7 = 6. The 4-bit result is 0110, which is 6. A negative and a positive number never overflow.
Only II overflows.
Answer: (B)
I. 1100 + 1100 = (-4) + (-4) = -8. The 4-bit result is 1000, which is -8. It fits, so there is no overflow (there is a carry out, but also a carry into the sign bit).
II. 0011 + 0111 = 3 + 7 = 10, which is more than 7. The 4-bit result is 1010, which reads as -6. Two positive numbers gave a negative result, so this overflows.
III. 1111 + 0111 = (-1) + 7 = 6. The 4-bit result is 0110, which is 6. A negative and a positive number never overflow.
Only II overflows.
Answer: (B)