1
GATE CSE 2024 Set 2
MCQ (Single Correct Answer)
+1
-0.33

Consider the following two sets:

Set X

P. Lexical Analyzer

Q. Syntax Analyzer

R. Intermediate Code Generator

S. Code Optimizer

Set Y

1. Abstract Syntax Tree

2. Token

3. Parse Tree

4. Constant Folding

Which one of the following options is the correct match from Set X to Set Y?

A

P – 4; Q – 1; R – 3; S – 2

B

P – 2; Q – 3; R – 1; S – 4

C

P – 2; Q – 1; R – 3; S – 4

D

P – 4; Q – 3; R – 2; S – 1

2
GATE CSE 2011
MCQ (Single Correct Answer)
+1
-0.3
In a compiler, keywords of a language are recognized during
A
parsing of the program
B
the code generation
C
the lexical analysis of the program
D
dataflow analysis
3
GATE CSE 2010
MCQ (Single Correct Answer)
+1
-0.3
Which data structure in a compiler is used for managing information about variables and their attributes?
A
Abstract syntax tree
B
Symbol table
C
Semantic stack
D
Parse table
4
GATE CSE 2009
MCQ (Single Correct Answer)
+1
-0.3
Match all items in Group 1 with correct options from those given in Group 2.

Group 1

P. Regular expression
Q. Pushdown automata
R. Dataflow analysis
S. Register allocation

Group 2

1. Syntax analysis
2. Code generation
3. Lexical analysis
4. Code optimization
A
P - 4. Q - 1, R - 2, S - 3
B
P - 3, Q - 1, R - 4, S - 2
C
P - 3, Q - 4, R - 1, S - 2
D
P - 2, Q - 1, R - 4, S - 3
GATE CSE Subjects
Software Engineering
Web Technologies
EXAM MAP
Medical
NEET
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
CBSE
Class 12