The GATE Grind

GATE 2008 CS – Question 54

Compiler Design · Runtime Environments · 2 marks · Multiple choice

Which are true?

I. A language without globals or nested procedures, but permitting recursion, can use static storage allocation.

II. Multilevel access links/displays are needed only when procedures/functions nest.

III. Recursion cannot use dynamic storage allocation.

IV. Nested procedures and recursion require heap allocation and cannot use stack activation records.

V. Languages allowing a function to return another function cannot use stack-based activation-record allocation.

  1. II and V only
  2. I, III and IV only
  3. I, II and V only
  4. II, III and V only

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) II and V only

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Runtime Environments questions

All Runtime Environments questions →