Which one of the following is NOT performed during compilation?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2014 Set 2 · Q18
Time
Select one answerSingle correct
Solution
Official answer: A) Dynamic memory allocation
Runtime EnvironmentsDynamic memory allocation happens at execution time (runtime) when memory is allocated from the heap using functions like malloc(), calloc(), or new. It cannot be performed at compile time.
Type checking is performed during the semantic analysis phase of compilation.
Symbol table management is handled throughout all phases of the compiler.
Inline expansion is a code optimization technique performed by the compiler.
Therefore, dynamic memory allocation is NOT performed during compilation. The correct option is (A).
Try the question first, then check your work.
Examiner trap
Consider which of these operations must wait until program execution because sizes or paths are unknown beforehand.
This Runtime Environments previous year question is Q18 of the GATE CSE 2014 Set 2 paper. Find more GATE CSE PYQs on Runtime Environments in Compiler Design, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Runtime Environments PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Runtime Environments has 7 GATE CSE PYQs across 7 papers from 2012 to 2023. 4 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2014 Set 2.
How GATE tests Runtime EnvironmentsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.