GATE | GATE-CS-2016 (Set 2) | Question 29

Match the following:

(P) Lexical analysis       (i) Leftmost derivation
(Q) Top down parsing       (ii) Type checking
(R) Semantic analysis      (iii) Regular expressions
(S) Runtime environments   (iv) Activation records

z1
(A) A
(B) B
(C) C
(D) D


Answer: (B)

Explanation: Lexical analysis uses Regular expression to recognize identifiers.

Top down parsing uses Left Most Derivation to generate the string the of the language.

Type checking is done at Semantic analysis phase of the compiler.

Activation records of a function are loaded into stack memory at Run time.

Quiz of this Question

My Personal Notes arrow_drop_up