MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ addressing mode is most suitable to change the normal sequence of execution of instructions.
A
Relative
B
Indirect
C
Index with Offset
D
Immediate
Explanation: 

Detailed explanation-1: -Explanation: The relative addressing mode is used for this since it directly updates the PC.

Detailed explanation-2: -Detailed Solution. Indexed addressing mode is best suited to access the elements of an array of contiguous memory locations. Here, the effective address is calculated as the sum of the contents of Index Register SI or DI and the displacement.

Detailed explanation-3: -2. Unconditional Branch Instruction: It causes an unconditional change of execution sequence to a new location.

Detailed explanation-4: -An addressing mode specifies how to calculate the effective memory address of an operand by using information held in registers and/or constants contained within a machine instruction or elsewhere.

Detailed explanation-5: -Relative addressing is the technique of addressing instructions and data areas by designating their location in relation to the location counter or to some symbolic location. This type of addressing is always in bytes-never in bits, words, or instructions.

There is 1 question to complete.