MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When we use auto increment or auto decrement, which of the following is/are true? 1) In both, the address is used to retrieve the operand and then the address gets altered 2) In auto increment, the operand is retrieved first and then the address altered 3) Both of them can be used on general purpose registers as well as memory locations
A
1, 2, 3
B
2
C
1, 3
D
2, 3
Explanation: 

Detailed explanation-1: -1) In both, the address is used to retrieve the operand and then the address gets altered2) In auto increment the operand is retrieved first and then the address altered3) Both of them can be used on general purpose registers as well as memory locationsa)1, 2, 3b)2c)1, 3d)2, 3Correct answer is option ā€˜Dā€™.

Detailed explanation-2: -When we use auto increment or auto decrements, which of the following is/are true? Explanation: In the case of, auto increment the increment is done afterward and in auto decrement the decrement is done first.

Detailed explanation-3: -The auto increment addressing mode is just the opposite of the auto decrement mode. In the case of auto increment mode, the content present in the register is initially incremented, and then the content that is incremented in the register is used in the form of an effective address.

Detailed explanation-4: -Auto-increment/decrement mode In this mode, the instruction specifies a register which points to a memory address that contains the operand. However, after the address stored in the register is accessed, the address is incremented or decremented, as specified.

Detailed explanation-5: -Explanation: Absolute mode: In this addressing mode, the address of location of the operand is given explicitly as a part of the instruction. This addressing mode is also known as direct addressing mode.

There is 1 question to complete.