GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2020

GATE 2020 · CS · MCQ · 1 mark · Compiler Design › Semantic Analysis

GATE 2020 Computer Science and Information Technology question: Consider the following statements. I. Symbol table is accessed only during lexical…

Consider the following statements.

I. Symbol table is accessed only during lexical analysis and syntax analysis.

II. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment.

III. Errors violating the condition 'any variable must be declared before its use' are detected during syntax analysis.

Which of the above statements is/are TRUE?

  1. (A)

    I only

  2. (B)

    I and III only

  3. (C)

    II only

  4. (D)

    None of I, II, and III

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion