Addressing Modes


Question 1
A stack organized computer is characterised by instructions with
A
indirect addressing
B
direct addressing
C
zero addressing
D
index addressing
ISRO CSE 2020   Computer Organization
Question 2
An array of 2 two byte integers is stored in big endian machine in byte addresses as shown below. What will be its storage pattern in little endian machine ?
\begin{array}{c|c}\text{Address}& \text{Data}\\\hline0 \times 104&78\\0 \times 103&56\\0 \times 102&34\\0 \times 101&12\end{array}
A
\begin{array}{c|c}\text{Address}& \text{Data}\\\hline0 \times 104&12\\0 \times 103&56\\0 \times 102&34\\0 \times 101&78\end{array}
B
\begin{array}{c|c}\text{Address}& \text{Data}\\\hline0 \times 104&12\\0 \times 103&34\\0 \times 102&56\\0 \times 101&78\end{array} \\
C
\begin{array}{c|c}\text{Address}& \text{Data}\\\hline0 \times 104&56\\0 \times 103&78\\0 \times 102&12\\0 \times 101&34\end{array} \\
D
\begin{array}{c|c}\text{Address}& \text{Data}\\\hline0 \times 104&56\\0 \times 103&12\\0 \times 102&78\\0 \times 101&34\end{array}
ISRO CSE 2020   Computer Organization


Question 3
The immediate addressing mode can be used for
1. Loading internal registers with initial values
2. Perform arithmetic or logical operation on data contained in instructions
Which of the following is true?
A
Only 1
B
Only 2
C
Both 1 and 2
D
Immediate mode refers to data in cache
ISRO CSE 2020   Computer Organization
Question 4
The most appropriate matching for the following pairs:
\begin{array}{|l|l|l|l|} \hline \text{X.} & \text{Indirect Addressing} & i. & \text{Loop} \\ \hline \text{Y.} & \text{Immediate Addressing} & ii. & \text{Pointers} \\ \hline \text{Z.} & \text{Auto Decrement Addressing} & iii. & \text{Constants} \\ \hline \end{array}
A
X-iii, Y-ii, Z-i
B
X-ii, Y-iii, Z-i
C
X-iii, Y-i, Z-ii
D
X-ii, Y-i, Z-iii
ISRO CSE 2017   Computer Organization
Question 5
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC- relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence.

If the target of the branch instruction is i, then the decimal value of the Offset is __________
A
-16
B
-12
C
-8
D
16
GATE CSE 2017 SET-1   Computer Organization


There are 5 questions to complete.

5 thoughts on “Addressing Modes”

Leave a Comment