...
GATE 2010
January 21, 2024
Question 10823 – APPSC-2016-DL-CS
January 22, 2024
GATE 2010
January 21, 2024
Question 10823 – APPSC-2016-DL-CS
January 22, 2024

Compiler-Design

Question 106

Which languages necessarily need heap allocation in the runtime environment?

A
Those that support recursion
B
Those that use dynamic scoping
C
Those that allow dynamic data structures
D
Those that use global variables
Question 106 Explanation: 
Dynamic memory is allocated on the heap by the system. So the languages which allow dynamic data structure require heap allocation at runtime.
Correct Answer: C
Question 106 Explanation: 
Dynamic memory is allocated on the heap by the system. So the languages which allow dynamic data structure require heap allocation at runtime.

Leave a Reply

Your email address will not be published. Required fields are marked *