GATE 2006
81 questions
MCQ 811-mark 81
Questions 46–50 of 81
For the circuit shown in figures below, two 4 - bit parallel - in serial - out shift registers loaded with the data shown are used to feed the data to a full adder. Initially, all the flip - flops are in clear state. After applying two clock pulse, the output of the full-adder should be
Answer: (D)
The registers shift out the LSB first. Top register 1011 gives . Bottom register 0011 gives . The D flip-flops copy these bits at each clock. The lower flip-flop stores the carry: it copies at each clock, and its Q is . It starts cleared, so at first.
Full adder: , .
After the 1st clock: , so .
The carry flip-flop now takes .
After the 2nd clock: , so .
So and .
Answer: (D)
Full adder: , .
After the 1st clock: , so .
The carry flip-flop now takes .
After the 2nd clock: , so .
So and .
Answer: (D)
The point P in the following figure is stuck at 1. The output f will be
Answer: (D)
Follow the signal forward, starting from P stuck at 1:
- P = 1 goes into a NAND gate used as an inverter. Its output is 0.
- This 0 is one input of the next NAND gate. If any input of a NAND is 0, its output is 1. The lower branch (which depends on B and C) does not matter.
- The next NAND gets A and 1 as inputs, so its output is .
- The last NAND, used as an inverter, gives .
A 4-bit D/A converter is connected to a free -running 3-bit UP counter,
as shown in the following figure. Which of the following waveforms will be
observed at ?
Answer: (B)
is tied to ground, and the counter outputs go to the other inputs. (The bottom DAC input, labelled in the figure, is .) So the DAC input is . For the 3-bit counter running through all 8 states:
The output is proportional to this decimal value. So it climbs in single steps 0, 1, 2, 3, then jumps by 5 steps to 8, climbs 9, 10, 11, and then at the next clock the counter wraps to 000 and the output falls back to 0. The cycle repeats.
This is a staircase with one big jump in the middle and one drop at the end of each cycle. A and D come down in steps in the middle of a cycle, which an up-counter cannot do, and C has no big jump, so only B matches.
Answer: (B)
The output is proportional to this decimal value. So it climbs in single steps 0, 1, 2, 3, then jumps by 5 steps to 8, climbs 9, 10, 11, and then at the next clock the counter wraps to 000 and the output falls back to 0. The cycle repeats.
This is a staircase with one big jump in the middle and one drop at the end of each cycle. A and D come down in steps in the middle of a cycle, which an up-counter cannot do, and C has no big jump, so only B matches.
Answer: (B)
Following is the segment of a 8085 assembly language program
LXI SP, EFFF H
CALL 3000 H
:
:
:
3000 H : LXI H, 3CF4
PUSH PSW
SPHL
POP PSW
RET
On completion of RET execution, the contents of SP is
LXI SP, EFFF H
CALL 3000 H
:
:
:
3000 H : LXI H, 3CF4
PUSH PSW
SPHL
POP PSW
RET
On completion of RET execution, the contents of SP is
Answer: (B)
LXI SP, EFFFH
CALL 3000 H
CALL does a push and a jump:
Stack pointer after CALL:
Steps of the routine at 3000H:
CALL 3000 H
CALL does a push and a jump:
Stack pointer after CALL:
Steps of the routine at 3000H:
An I/O peripheral device shown in Fig. (b) below is to be interfaced to an 8085
microprocessor. To select the I/O device in the I/O address range D4H - D7H,
its chip-select () should be connected to the output of the decoder shown in figure (a)
below :
Answer: (B)
The I/O range D4H to D7H in binary is , so .
The AND gate has inputs . For D4H to D7H, , so and the decoder is selected for this whole range.
The decoder inputs are (MSB), and (LSB). Here , so output 5 is the one that goes active. go to the peripheral and take all four values 00 to 11 within the range.
So must be connected to output 5.
Answer: (B)
The AND gate has inputs . For D4H to D7H, , so and the decoder is selected for this whole range.
The decoder inputs are (MSB), and (LSB). Here , so output 5 is the one that goes active. go to the peripheral and take all four values 00 to 11 within the range.
So must be connected to output 5.
Answer: (B)