GATE 2002
48 questions
MCQ 481-mark 48
Questions 26–30 of 48
If the input to the ROM in figure are 8-4-2-1 BCD numbers,
then the outputs are
Answer: (B)
The decoder makes one line active for BCD input n. Every cross on that line connects it to a Y row, so that Y output is 1; a Y row with no cross on stays 0 (it is pulled to ground by its resistor). Reading the crosses gives this truth table (the weights written above the Y columns are 2, 4, 2, 1):
Check with weights 2-4-2-1: , , , , . Every output is worth the input digit with these weights.
So the ROM changes 8-4-2-1 BCD to 2-4-2-1 BCD. It is not gray code (gray code of 2 is 0011, but here it is 0010) and not excess-3 (excess-3 of 0 is 0011, but here it is 0000).
Answer: (B)
Check with weights 2-4-2-1: , , , , . Every output is worth the input digit with these weights.
So the ROM changes 8-4-2-1 BCD to 2-4-2-1 BCD. It is not gray code (gray code of 2 is 0011, but here it is 0010) and not excess-3 (excess-3 of 0 is 0011, but here it is 0000).
Answer: (B)
Consider the following assembly language program.
MVI B,87H
MOV A,B
START: JMP NEXT
MVI B,00H
XRA B
OUT PORT1
HLT
NEXT: XRA B
JP START
OUT PORT2
HLT
The execution of the above program in an 8085 microprocessor will result in
MVI B,87H
MOV A,B
START: JMP NEXT
MVI B,00H
XRA B
OUT PORT1
HLT
NEXT: XRA B
JP START
OUT PORT2
HLT
The execution of the above program in an 8085 microprocessor will result in
Answer: (B)
Trace of the program:
MVI B, 87H gives B = 87H, and MOV A, B gives A = 87H.
JMP NEXT jumps over the lines after START (MVI B, 00H, XRA B, OUT PORT1, HLT) to NEXT.
First pass: XRA B gives . The result is 00000000, so the sign flag S = 0 (positive).
JP means jump if positive (S = 0), so it jumps back to START. JMP NEXT runs again.
Second pass: XRA B gives , so S = 1 (negative).
Now JP does not jump, and execution goes on to OUT PORT2, which sends A = 87H to PORT2. Then HLT stops the program.
OUT PORT1 is never reached, and there is no infinite loop.
Answer: (B)
MVI B, 87H gives B = 87H, and MOV A, B gives A = 87H.
JMP NEXT jumps over the lines after START (MVI B, 00H, XRA B, OUT PORT1, HLT) to NEXT.
First pass: XRA B gives . The result is 00000000, so the sign flag S = 0 (positive).
JP means jump if positive (S = 0), so it jumps back to START. JMP NEXT runs again.
Second pass: XRA B gives , so S = 1 (negative).
Now JP does not jump, and execution goes on to OUT PORT2, which sends A = 87H to PORT2. Then HLT stops the program.
OUT PORT1 is never reached, and there is no infinite loop.
Answer: (B)
The transfer function of a system is . For a unit step input to the system the approximate settling time for 2% criterion is
Answer: (B)
Poles are at and . The DC gain is .
The pole at has a time constant of 0.01 s, 100 times faster than the pole at (time constant 1 s). Its effect dies out almost at once, so the pole at is the dominant one.
Near the dominant pole, , so .
This is a first-order system with time constant s. Its step response is .
For the 2% criterion, gives .
Option (C) 1 s is only one time constant (63% of the final value). Option (D) 0.01 s is the time constant of the fast pole.
Answer: (B)
The pole at has a time constant of 0.01 s, 100 times faster than the pole at (time constant 1 s). Its effect dies out almost at once, so the pole at is the dominant one.
Near the dominant pole, , so .
This is a first-order system with time constant s. Its step response is .
For the 2% criterion, gives .
Option (C) 1 s is only one time constant (63% of the final value). Option (D) 0.01 s is the time constant of the fast pole.
Answer: (B)
Consider a system with the transfer function . Its damping ratio will be 0.5 when the value of k is
Answer: (C)
Divide the denominator by to get the standard form , where is the damping ratio and the natural frequency:
Check: for , and , so . The zero at does not change the damping ratio, which comes from the denominator.
Answer: (C)
Check: for , and , so . The zero at does not change the damping ratio, which comes from the denominator.
Answer: (C)
The characteristic polynomial of a system is
.
The system is
.
The system is
Answer: (C)
The row is all zeros. Take the auxiliary polynomial from the row, , and use its derivative (coefficients 4, 4) in the row.
The row is zero again. Take from the row and use (coefficient 2) in the row; then . The first column (2, 1, 4, 1, 2, 1) has no sign change, so there is no RHP root.
A zero row appearing twice means repeated roots on the imaginary axis. Factor: , with roots and , each of the pair repeated twice.
Repeated roots on the imaginary axis give terms like that grow without bound. So the system is unstable, not marginally stable (marginal stability needs simple imaginary-axis roots).
Answer: (C)