Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
161 views
in Computer by (114k points)
closed by
Which of the following addressing mode is best suited to access elements of an array of contiguous memory locations ?
1. Indexed addressing mode
2. Base Register addressing mode
3. Relative address mode
4. Displacement mode

1 Answer

0 votes
by (113k points)
selected by
 
Best answer
Correct Answer - Option 1 : Indexed addressing mode

The correct answer is option 1

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.

Accessing registers is much faster than accessing memory locations.

So, when an operation is performed on elements of an array, the execution is much faster.

Base Register addressing mode: In this mode effective address is calculated by adding base register value to address field value.

Relative Address mode: In this mode, effective address is calculated by adding accumulator and value in address part of the instruction.

Displacement mode: In this mode, the address of the operand is formed by adding the displacement to the contents of the specified register in the instruction.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...