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
- AUse dynamic scope rules
- BSupport dynamic data structuresCorrect answer
- CSupport recursion
- DSupport 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.