Match the following according to input (from the left column) to the compiler…

PYQ GATE 2017

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

P. Syntax treei. Code generatorQ. Character streamii. Syntax analyserR. Intermediate representationiii. Semantic analyserS. Token streamiv. Lexical analyser\begin{array}{|l|l|}\hline \text{P. Syntax tree} & \text{i. Code generator} \\\hline \text{Q. Character stream} & \text{ii. Syntax analyser} \\\hline \text{R. Intermediate representation} & \text{iii. Semantic analyser} \\\hline \text{S. Token stream} & \text{iv. Lexical analyser} \\\hline \end{array}

  1. A.

    P-ii; Q-iii; R-iv; S-i\text{P-ii; Q-iii; R-iv; S-i}

  2. B.

    P-ii; Q-i; R-iii; S-iv\text{P-ii; Q-i; R-iii; S-iv}

  3. C.

    P-iii; Q-iv; R-i; S-ii\text{P-iii; Q-iv; R-i; S-ii}

  4. D.

    P-i; Q-iv; R-ii; S-iii\text{P-i; Q-iv; R-ii; S-iii}

Attempted by 713 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…