Skip to content
Related Articles

Related Articles

Improve Article

GATE | GATE-CS-2017 (Set 2) | Question 12

  • Last Updated : 01 Sep, 2021
Geek Week

Match the following according to input(from the left column) to the compiler phase(in the right column) that process it:

(A) P -> (ii), Q -> (iii), R -> (iv), S -> (i)
(B) P -> (ii), Q -> (i), R -> (iii), S -> (iv)
(C) P -> (iii), Q -> (iv), R -> (i), S -> (ii)
(D) P -> (i), Q -> (iv), R -> (ii), S -> (iii)

Answer: (C)

Explanation: P – iii Syntax tree is input to semantic analyser

Q – iv┬áCharacter stream is input to lexical analyser.

R – i Intermediate code is input to code generator

S -ii  Token stream is input to syntax analyser.

Therefore option C

Quiz of this Question

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :