GATE CS 2017 (Afternoon) — Question 5

Compiler DesignLexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)MCQ1 mark · −1/3 if wrongEasy

Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it: List-I (P) Syntax tree (Q) Character stream (R) Intermediate representation (S) Token stream List-II (i) Code generator (ii) Syntax analyzer (iii) Semantic analyzer (iv) Lexical analyzer
  1. A
    P \(\rightarrow\) (ii), Q \(\rightarrow\) (iii), R \(\rightarrow\) (iv), S \(\rightarrow\) (i)
  2. B
    P \(\rightarrow\) (ii), Q \(\rightarrow\) (i), R \(\rightarrow\) (iii), S \(\rightarrow\) (iv)
  3. C
    P \(\rightarrow\) (iii), Q \(\rightarrow\) (iv), R \(\rightarrow\) (i), S \(\rightarrow\) (ii)
  4. D
    P \(\rightarrow\) (i), Q \(\rightarrow\) (iv), R \(\rightarrow\) (ii), S \(\rightarrow\) (iii)
Practise the full 2017-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAWhat rank do your marks get?GATE score, likely All-India Rank and qualifying marks for your category.
Practise more on Lexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)Timed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group