Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which of the following addressing modes permi... Start Learning for Free
Which of the following addressing modes permits relocation without any change whatsoever in the code?

  • a)
    Indirect addressing

  • b)
    Indexed addressing

  • c)
    PC relative addressing

  • d)
    PC relative addressing

Correct answer is option 'D'. Can you explain this answer?
Verified Answer
Which of the following addressing modes permits relocation without any...
PC relative addressing mode:


The effective memory address is obtained by computing an offset from the current PC. No matter where the code is loaded in memory, the offsets are always the same so the code needs no modification. In this addressing, there is absolutely no change in code needed.


Therefore the answer is Option 4 i.e, PC relative Addressing
View all questions of this test
Most Upvoted Answer
Which of the following addressing modes permits relocation without any...
PC relative addressing permits relocation without any change whatsoever in the code.

Explanation:
- PC relative addressing is a type of addressing mode used in computer architecture and assembly language programming.
- In PC relative addressing, the operand of an instruction is the address of the desired data or instruction relative to the current value of the program counter (PC).
- The program counter is a register that stores the address of the next instruction to be executed.
- In PC relative addressing, the address calculation is performed by adding the operand value to the current value of the PC.
- This allows for the relocation of the code without any change in the code itself.
- When the code is relocated to a different memory location, the value of the PC will change accordingly.
- However, since the operand is relative to the PC, the instruction will still access the correct data or instruction, regardless of the relocation.
- This is because the relative offset remains the same, regardless of the absolute address of the instruction.
- PC relative addressing is particularly useful in situations where code needs to be loaded into different memory locations, such as in a dynamic linking or loading scenario.
- It allows for easy relocation of the code without the need to modify the instructions themselves.
- Other addressing modes, such as indirect addressing, indexed addressing, and base register addressing, may require modifications to the code when the code is relocated to a different memory location.
- Therefore, PC relative addressing is the addressing mode that permits relocation without any change whatsoever in the code.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer?
Question Description
Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following addressing modes permits relocation without any change whatsoever in the code?a)Indirect addressingb)Indexed addressingc)PC relative addressingd)PC relative addressingCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev