GateAI
Runtime Environments

GATE CSE 2014 Set 2 · Q18

MCQ1 markEasy

Time

Which one of the following is **NOT** performed during compilation?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) Dynamic memory allocation

Runtime Environments
  • Dynamic 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Runtime Environments in GATE CSE

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 Environments

More from GATE CSE 2014 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 2 · Q18 · MCQ

Which one of the following is NOT performed during compilation?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.