Home
Aim
Theory
(current)
Pretest
Procedure
Simulation
Posttest
References
PRETEST
1. What is the 3rd phase in compiler design?
a. Semantic Analysis
b. Intermidiate code generation
c. Lexical Analysis
d. None of these
2. Which of these is an invalid expressions?
a. array[2] = 1 + “string”
b. int a = a + 5
c. float a = “shashank”
d. String s = “sad” * 5
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
4. What will be the value of "a" after this expressions is evalusted - "float a = 4"?
a. 4
b. 4.0
b. Error
b. None of these
5. 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
Submit