Addressing Modes MCQ Quiz in मराठी - Objective Question with Answer for Addressing Modes - मोफत PDF डाउनलोड करा
Last updated on Mar 8, 2025
Latest Addressing Modes MCQ Objective Questions
Top Addressing Modes MCQ Objective Questions
Addressing Modes Question 1:
In case the code is position-dependent, the most suitable addressing mode is:
Answer (Detailed Solution Below)
Addressing Modes Question 1 Detailed Solution
If the code is position-dependent, then a suitable addressing mode is a relative addressing mode.
The effective address is computed from X (PC, X bytes away from the address pointed by the program counter.
Relative addressing mode uses a program counter and indexed addressing mode uses and general-purpose register.
Addressing Modes Question 2:
Consider a cache memory organization with m lines in which the cache is divided into v sets, each of which consists of k lines. The set associative mapping technique reduces to direct mapping when:
Answer (Detailed Solution Below)
Addressing Modes Question 2 Detailed Solution
Answer: Option 1
Explanation:
We have given a cache memory organization with m lines in which the cache is divided into v sets, each of which consists of k lines.
Consider m = 8, v = 4, k = 2
Representation for this organization is:
To reduce it to direct mapping:
Make v = m, because in both direct mapping and set associative mapping, we have to take the mod operation to find the line number and set number respectively.
Also, make k = 1, because each set starts behaving like a line as in the case of direct mapping.
Addressing Modes Question 3:
The skip instruction is ________ instruction.
Answer (Detailed Solution Below)
Addressing Modes Question 3 Detailed Solution
The skip instruction does not need an address field and is therefore a zero-address instruction.
A conditional skip instruction will skip the next instruction if the condition is met. This is accomplished by incrementing the program counter during the execute phase in addition to its being incremented during the fetch phase.
If the condition is not met, control proceeds with the next instruction in sequence where the programmer inserts an unconditional branch instruction.
Addressing Modes Question 4:
What is the addressing mode used in the instruction PUSH B?
Answer (Detailed Solution Below)
Addressing Modes Question 4 Detailed Solution
PUSH B:
- Store the contents of register pair BC on top two locations of the stack
- Address are defined by stack pointer
- So, it is register indirect addressing mode
Addressing Modes Question 5:
In a system the contents of PC, Base register, Register R1, and Register R2 has contents 80, 140, 20, and 40, respectively. Content of R2 is used as the displacement value. What is the effective address computed using the Base addressing and the Relative - Base addressing modes, respectively?
Answer (Detailed Solution Below)
Addressing Modes Question 5 Detailed Solution
Base addressing:
The operand’s offset is the sum of an 8 bit or 16-bit displacement and the contents of the base register BX or BP.
Effective address = Base register + Content = 140 + 40 = 180
PC relative base addressing:
The effective address for a PC - relative instruction address is the offset parameter added to the address of the next instruction. This offset is usually signed to allow reference to code both before and after the instruction.
Effective address = Program Counter + Base register + Content = 80 + 140 + 40 = 260
Addressing Modes Question 6:
Which of the following is a group of bits that instructs the computer to perform a specific operation?
Answer (Detailed Solution Below)
Addressing Modes Question 6 Detailed Solution
An instruction code is a group of bits that instruct the computer to perform a specific operation.
The operation code of an instruction is a group of bits that define such operations as add, subtract, multiply, shift, and complement.
Addressing Modes Question 7:
The address field of an instruction specifies the address of a memory location that contains the address of the operand. What type of addressing mode is this?
Answer (Detailed Solution Below)
Addressing Modes Question 7 Detailed Solution
Answer: Option 3
Concept:
Implied/Implicit addressing mode:
In implied/implicit addressing mode the operand is hidden and the data to be operated is available in the instruction itself.
Register addressing mode:
It is the simplest addressing mode in which the source or destination is a data register or an address register. Content of the register provides the operand. Here, only one register reference is required to access the data.
Index addressing mode:
The address of the operand is obtained by adding to the contents of the general register (index register) a constant value. Index mode is used to access an array whose elements are in successive memory locations.
Direct addressing mode:
The data to be operated is available inside a memory location and that memory location is directly specified as an operand. The operand is directly available in the instruction itself.
Relative addressing mode:
Contents of the program counter are added to the address of an instruction to find the effective address.
Immediate addressing mode:
In this, the operand is specified in the instruction itself. It has an operand field and data is present in the address field of instruction.
Base addressing mode:
In this, an effective address is found by adding the displacement with the base register. It is a type of displacement addressing mode.
Indirect addressing mode:
The address field of an instruction specifies the address of a memory location that contains the address of the operand.
In this, the address field of instruction gives the address where an effective address is stored. It is helpful to handle pointers.
Absolute addressing mode:
In this, the address part specifies the effective address of the operand. It is also known as direct addressing. If A = contents of an address field in instruction then Effective address = A. It is used to declare global variables in a program and used for branch instructions.
PC relative base addressing mode:
The effective address for a PC - relative instruction address is the offset parameter added to the address of the next instruction. This offset is usually signed to allow reference to code both before and after the instruction.
Addressing Modes Question 8:
Relative mode of addressing is most relevant to writing
Answer (Detailed Solution Below)
Addressing Modes Question 8 Detailed Solution
Concept:
Relative addressing mode:
In this addressing mode, effective address is obtained by adding the next instruction address with the address field.
Effective address (EA) = PC + operand part
where PC is the program counter register
Therefore Relative mode of addressing is most relevant to writing position-independent code
Addressing Modes Question 9:
Which addressing mode the operands are specified implicitly in the definition of the instruction?
Answer (Detailed Solution Below)
Addressing Modes Question 9 Detailed Solution
In implied mode, the operands are specified implicitly in the definition of the instruction.
For example,
the instruction "complement accumulator" is an implied-mode instruction because the operand in the accumulator register is implied in the definition of the instruction.
In fact, all register reference instructions that use an accumulator are implied-mode instructions.
Important Points
Addressing modes of 8085:
Immediate addressing mode:
In immediate addressing mode, the source operand is always data. If the data is 8-bit, then the instruction will be of 2 bytes, if the data is of 16-bit then the instruction will be of 3 bytes.
Register addressing mode:
In register addressing mode, the data to be operated is available inside the register(s) and register(s) is(are) operands. Therefore, the operation is performed within various registers of the microprocessor.
Direct addressing mode:
Indirect addressing mode, the data to be operated is available inside a memory location and that memory location is directly specified as an operand. The operand is directly available in the instruction itself.
Register indirect addressing mode:
In register indirect addressing mode, the data to be operated is available inside a memory location and that memory location is indirectly specified by a register pair.
Implied/Implicit addressing mode:
In implied/implicit addressing mode the operand is hidden and the data to be operated is available in the instruction itself.
Addressing Modes Question 10:
Addressing mode in which the address field of instruction specifies a register in the CPU, whose contents given the address of the operand in memory is called......
Answer (Detailed Solution Below)
Addressing Modes Question 10 Detailed Solution
Addressing modes of 8085:
Immediate addressing mode:
In immediate addressing mode, the source operand is always data. If the data is 8-bit, then the instruction will be of 2 bytes, if the data is of 16-bit then the instruction will be of 3 bytes.
Register addressing mode:
In register addressing mode, the data to be operated is available inside the register(s) and register(s) is(are) operands. Therefore, the operation is performed within various registers of the microprocessor.
Direct addressing mode:
Indirect addressing mode, the data to be operated is available inside a memory location and that memory location is directly specified as an operand. The operand is directly available in the instruction itself.
Register indirect addressing mode:
In register indirect addressing mode, the data to be operated is available inside a memory location and that memory location is indirectly specified by a register pair.
Implied/Implicit addressing mode:
In implied/implicit addressing mode the operand is hidden and the data to be operated is available in the instruction itself.