GATE 2005
203 questions
MCQ 2031-mark 203
Questions 71–75 of 203
The hexadecimal representation of is:
Answer: (A)
Convert octal to binary, then to hex:
Correct Answer: A.
Correct Answer: A.
The range of integers that can be represented by an n bit 2's complement number system is:
Answer: (A)
In an n-bit 2's complement number, the smallest value is 100..0 and the largest value is 011..1. So the range runs from up to .
Answer: to
Answer: to
Match each of the high level language statements given on the left hand side with the most natural addressing modes from those listed on the right hand side.
1 A[I] = B[J]; a Indirect addressing
2 while (*A++); b Indexed addressing
3 int temp = *x; c Autoincrement Answer: (C)
Match each statement with the way its operand is reached:
1. : the element of B is found from the base address of B plus the index j, so this is indexed addressing (b).
2. : the pointer A is used to read the value and is then moved to the next item, so this is auto-increment addressing (c).
3. : x holds the address of the value, so the value is read through x. This is indirect addressing (a).
So the pairs are (1, b), (2, c), (3, a).
Answer: (C)
1. : the element of B is found from the base address of B plus the index j, so this is indexed addressing (b).
2. : the pointer A is used to read the value and is then moved to the next item, so this is auto-increment addressing (c).
3. : x holds the address of the value, so the value is read through x. This is indirect addressing (a).
So the pairs are (1, b), (2, c), (3, a).
Answer: (C)
An instruction set of a processor has 125 signals which can be divided into 5 groups of mutually exclusive signals as follows:
Group 1 : 20 signals, Group 2 : 70 signals, Group 3 : 2 signals, Group 4 : 10 signals, Group 5 : 23 signals.
How many bits of the control words can be saved by using vertical microprogramming over horizontal microprogramming?
Group 1 : 20 signals, Group 2 : 70 signals, Group 3 : 2 signals, Group 4 : 10 signals, Group 5 : 23 signals.
How many bits of the control words can be saved by using vertical microprogramming over horizontal microprogramming?
Answer: (B)
Horizontal: each control signal gets its own bit in the control word. So the control word is bits.
Vertical: the signals in a group are mutually exclusive, so only one signal in a group is active at a time. So each group can be stored as a binary code and a decoder ( to ) turns the code back into one active signal. A group of signals needs bits:
- Group 1:
- Group 2:
- Group 3:
- Group 4:
- Group 5:
Vertical control word: bits.
Bits saved: .
Answer: (B)
Vertical: the signals in a group are mutually exclusive, so only one signal in a group is active at a time. So each group can be stored as a binary code and a decoder ( to ) turns the code back into one active signal. A group of signals needs bits:
- Group 1:
- Group 2:
- Group 3:
- Group 4:
- Group 5:
Vertical control word: bits.
Bits saved: .
Answer: (B)
A hardwired CPU uses 10 control signals to , in various time steps to , to implement 4 instructions to as shown below:
Which of the following pairs of expressions represent the circuit for generating control signals and respectively?
indicates that the control signal should be generated in time step if the instruction being executed is or )
Which of the following pairs of expressions represent the circuit for generating control signals and respectively?
indicates that the control signal should be generated in time step if the instruction being executed is or )
Answer: (D)
For each signal, list the (time step, instruction) pairs in the table where it is used. Then OR them together.
: used in by all four instructions, and in only by and . It is not used in .
Option A has only in , so it is wrong.
:
- : none.
- : and .
- : only.
- : and .
- : and .
Option B misses the and terms. Option C wrongly puts in and misses . Only D matches both.
Answer: (D)
: used in by all four instructions, and in only by and . It is not used in .
Option A has only in , so it is wrong.
:
- : none.
- : and .
- : only.
- : and .
- : and .
Option B misses the and terms. Option C wrongly puts in and misses . Only D matches both.
Answer: (D)