GATE 2009
60 questions
MCQ 601-mark 60
Questions 36–40 of 60
Two products are sold from a vending machine, which has two push buttons P1
and P2.
When a buttons is pressed, the price of the corresponding product is displayed in a 7-segment display.
If no buttons are pressed, '0' is displayed signifying 'Rs 0'.
If only P1 is pressed, '2' is displayed, signifying 'Rs. 2'
If only P2 is pressed '5' is displayed, signifying 'Rs. 5'
If both P1 and P2 are pressed, ' ' E is displayed, signifying 'Error'
The names of the segments in the 7-segment display, and the glow of the display for '0', '2', '5' and 'E' are shown below.
Consider
(1) push buttons pressed/not pressed in equivalent to logic 1/0 respectively.
(2) a segment glowing/not glowing in the display is equivalent to logic 1/0 respectively.
What are the minimum numbers of NOT gates and 2-input OR gates required to design the logic of the driver for this 7-Segment display
When a buttons is pressed, the price of the corresponding product is displayed in a 7-segment display.
If no buttons are pressed, '0' is displayed signifying 'Rs 0'.
If only P1 is pressed, '2' is displayed, signifying 'Rs. 2'
If only P2 is pressed '5' is displayed, signifying 'Rs. 5'
If both P1 and P2 are pressed, ' ' E is displayed, signifying 'Error'
The names of the segments in the 7-segment display, and the glow of the display for '0', '2', '5' and 'E' are shown below.
Consider
(1) push buttons pressed/not pressed in equivalent to logic 1/0 respectively.
(2) a segment glowing/not glowing in the display is equivalent to logic 1/0 respectively.
What are the minimum numbers of NOT gates and 2-input OR gates required to design the logic of the driver for this 7-Segment display
Answer: (D)
Let be the buttons (1 = pressed). Read the glowing segments from the figure:
shows 0: a, b, c, d, e, f glow; g is off.
shows 2: a, b, d, e, g glow; c and f are off.
shows 5: a, c, d, f, g glow; b and e are off.
shows E: a, d, e, f, g glow; b and c are off.
Segment functions, in the order 00, 10, 01, 11:
a = 1 and d = 1 always (just wired to logic 1, no gate).
b = 1,1,0,0, so .
c = 1,0,1,0, so .
e = 1,1,0,1, so .
f = 1,0,1,1, so .
g = 0,1,1,1, so .
Gates: the two NOT gates give and (these also drive c and b directly). The three OR gates give e, f and g. Total: 2 NOT and 3 OR.
Answer: (D)
shows 0: a, b, c, d, e, f glow; g is off.
shows 2: a, b, d, e, g glow; c and f are off.
shows 5: a, c, d, f, g glow; b and e are off.
shows E: a, d, e, f, g glow; b and c are off.
Segment functions, in the order 00, 10, 01, 11:
a = 1 and d = 1 always (just wired to logic 1, no gate).
b = 1,1,0,0, so .
c = 1,0,1,0, so .
e = 1,1,0,1, so .
f = 1,0,1,1, so .
g = 0,1,1,1, so .
Gates: the two NOT gates give and (these also drive c and b directly). The three OR gates give e, f and g. Total: 2 NOT and 3 OR.
Answer: (D)
Two products are sold from a vending machine, which has two push buttons P1
and P2.
When a buttons is pressed, the price of the corresponding product is displayed in a 7-segment display.
If no buttons are pressed, '0' is displayed signifying 'Rs 0'.
If only P1 is pressed, '2' is displayed, signifying 'Rs. 2'
If only P2 is pressed '5' is displayed, signifying 'Rs. 5'
If both P1 and P2 are pressed, ' ' E is displayed, signifying 'Error'
The names of the segments in the 7-segment display, and the glow of the display for '0', '2', '5' and 'E' are shown below.
Consider
(1) push buttons pressed/not pressed in equivalent to logic 1/0 respectively.
(2) a segment glowing/not glowing in the display is equivalent to logic 1/0 respectively.
If segments a to g are considered as functions of P1 and P2, then which of the following is correct
When a buttons is pressed, the price of the corresponding product is displayed in a 7-segment display.
If no buttons are pressed, '0' is displayed signifying 'Rs 0'.
If only P1 is pressed, '2' is displayed, signifying 'Rs. 2'
If only P2 is pressed '5' is displayed, signifying 'Rs. 5'
If both P1 and P2 are pressed, ' ' E is displayed, signifying 'Error'
The names of the segments in the 7-segment display, and the glow of the display for '0', '2', '5' and 'E' are shown below.
Consider
(1) push buttons pressed/not pressed in equivalent to logic 1/0 respectively.
(2) a segment glowing/not glowing in the display is equivalent to logic 1/0 respectively.
If segments a to g are considered as functions of P1 and P2, then which of the following is correct
Answer: (B)
The table gives each segment for , which show 0, 5, 2 and E. Read each column:
So , and options (A) and (C), which give , are wrong.
, so is true. Option (D) says . At this is 1, but e is 0, so it is wrong.
Only option (B) is correct.
Answer: (B)
What are the minimum number of 2-to-1 multiplexers required to generate a
2-input AND gate and a 2-input Ex-OR gate
Answer: (A)
A 2-to-1 MUX gives .
AND gate (1 MUX): take . Then .
XOR gate (2 MUX): XOR needs as well as B. MUX 1 makes the inverter: gives . MUX 2 uses , so .
One MUX is not enough for XOR, because with only A, B, 0 and 1 available as inputs, no single MUX gives : the complement of B is needed. So the minimum is 1 MUX for AND and 2 MUX for XOR.
Answer: (A)
AND gate (1 MUX): take . Then .
XOR gate (2 MUX): XOR needs as well as B. MUX 1 makes the inverter: gives . MUX 2 uses , so .
One MUX is not enough for XOR, because with only A, B, 0 and 1 available as inputs, no single MUX gives : the complement of B is needed. So the minimum is 1 MUX for AND and 2 MUX for XOR.
Answer: (A)
What are the counting states () for the counter shown in the figure below
Answer: (A)
Circuit (read it with , , ; both flip-flops get the same clock on its falling edge):
A JK flip-flop holds when , resets when , and toggles when . Starting from the state :
State 00: , so toggles to 1. , so toggles to 1. Next state: 11.
State 11: , so holds 1. , so resets to 0. Next state: 10.
State 10: , so toggles to 0. , so stays 0. Next state: 00.
The sequence is 00, 11, 10, 00, 11, 10, ..., that is 11, 10, 00, 11, 10, ... The state 01 is never reached (it goes to 00).
Other options: (B), (C) and (D) all need a transition that does not exist, for example 11 goes to 10 and not to 01, and 00 goes to 11 and not to 01.
Answer: (A)
Refer to the NAND and NOR latches shown in the figure. The inputs ()
for both latches are first made (0, 1) and then, after a few seconds, made (1, 1).
The corresponding stable outputs () are
Answer: (C)
NAND latch: , .
(0, 1): forces . Then . Outputs (1, 0).
(1, 1): the NAND latch holds, since and keep (1, 0). Outputs (1, 0).
NOR latch: , .
(0, 1): forces . Then . Outputs (1, 0).
(1, 1): a 1 on each gate input forces both outputs to 0. Outputs (0, 0).
So NAND gives (1, 0) then (1, 0), and NOR gives (1, 0) then (0, 0). Option (A) has NAND (0, 1) for the first input, but forces . Options (B) and (D) fail for the NOR latch: with (1, 1) both outputs must be 0, and with (0, 1) the output is (1, 0).
Answer: (C)
(0, 1): forces . Then . Outputs (1, 0).
(1, 1): the NAND latch holds, since and keep (1, 0). Outputs (1, 0).
NOR latch: , .
(0, 1): forces . Then . Outputs (1, 0).
(1, 1): a 1 on each gate input forces both outputs to 0. Outputs (0, 0).
So NAND gives (1, 0) then (1, 0), and NOR gives (1, 0) then (0, 0). Option (A) has NAND (0, 1) for the first input, but forces . Options (B) and (D) fail for the NOR latch: with (1, 1) both outputs must be 0, and with (0, 1) the output is (1, 0).
Answer: (C)