...
Question 1270 – Nielit Scientist-B CS 2016 march
May 27, 2024
Question 1274 – Nielit Scientist-B CS 2016 march
May 27, 2024
Question 1270 – Nielit Scientist-B CS 2016 march
May 27, 2024
Question 1274 – Nielit Scientist-B CS 2016 march
May 27, 2024

Question 1273 – Nielit Scientist-B CS 2016 march

A certain processor supports only the immediate and the direct addressing modes. Which of the following programming language features cannot be implemented on this processor?

Correct Answer: D

Question 9 Explanation: 
→ Pointer access requires indirect addressing which can be simulated with indexed addressing or register indirect addressing but not with direct and immediate addressing.
→ An array and record access needs a pointer access. So, options (A), (B) and (C) cannot be implemented on such a processor.
→ Now to handle recursive procedure we need to use stack. A local variable inside the stack will be accessed as *(SP+Offset) which is nothing but a pointer access and requires indirect addressing. Usually this is done by moving the SP value to the base register and then using base register addressing to avoid unnecessary memory access for indirect addressing but not possible with just direct and immediate addressing.
A
Pointers
B
Arrays
C
Records
D
All of these
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!