Skip to content

UGC NET CS 2017Theory of Computation and Compilers › Run Time SystemVerified

UGC NET CS 2017 PYQ: Heap allocation is required for languages that

Heap allocation is required for languages that

  1. A
    Use dynamic scope rules
  2. B
    Support dynamic data structures
    Correct answer
  3. C
    Support recursion
  4. D
    Support recursion and dynamic data structures

Answer

(B) Support dynamic data structures

Approach

Recall what each language feature needs at run time: recursion needs a stack, dynamic scope rules need a display/access link, and dynamic data structures need heap allocation.

Reviewed by UGC IQ Editorial Team.