in Compiler Design retagged by
6,901 views
34 votes
34 votes

Match the following:$$\begin{array}{ll|ll}\hline \text{P.} & \text{Lexical analysis} & \text{1.} & \text{Graph coloring} \\\hline  \text{Q.} & \text{Parsing} & \text{2.}& \text{DFA minimization} \\\hline   \text{R.}& \text{Register allocation} & \text{3.}  & \text{Post-order traversal} \\\hline  \text{S.} & \text{Expression evaluation} &\text{4.}  & \text{Production tree}  \\\hline \end{array}$$

  1. $\text{P-2, Q-3, R-1, S-4}$
  2. $\text{P-2, Q-1, R-4, S-3}$
  3. $\text{P-2, Q-4, R-1, S-3}$
  4. $\text{P-2, Q-3, R-4, S-1}$
in Compiler Design retagged by
6.9k views

3 Answers

43 votes
43 votes
Best answer
  1. Regular expression uses FA & Regular Sets.
  2. Expression can be evaluated with postfix Traversals.
  3. Register allocation can be modeled by graph coloring.
  4. The parser constructs a production tree.

So, answer is C.

edited by

2 Comments

For Minimum no of registers required problem we can estimate it by graph coloring method
14
14
1
1
19 votes
19 votes

Answer: C

edited by

1 comment

Answer is C.
3
3
1 vote
1 vote
Answer Is C

Simple way to eliminating We Know that

Expression evaluation Is stack Based So we Analyses Post Order so we Left With Two Options C and B

For Production Tree We Get  Parsing

So Answer Is C

1 comment

In that case you can directly eliminate all by seeing that for Q-4 , there is only 1 option C :
1
1
Answer:

Related questions