mcqs chapter 1 introduction to compiling
TRANSCRIPT
Digital Technique Mrs. Sunita M Dol, CSE Dept
Walchand Institute of Technology, Solapur Page 1
Chapter 1: Introduction to Compiling
1. Which of the following is/ are parts of compilation
a. Analysis
b. Synthesis
c. Analysis & Synthesis
d. None of above
2. “Comments may appear in a special font ” is an example of
a. Structure Editor
b. Pretty printers
c. Static checker
d. Interpreter
3. “Certain variables might be used before being defined” is an example of
a. Structure Editor
b. Pretty printers
c. Static checker
d. Interpreter
4. Which of the following may detect that parts of the program can never be
executed?
a. Structure Editor
b. Pretty printers
c. Static checker
d. Interpreter
5. Analysis of source program consist of
a. Linear analysis
b. Hierarchical analysis
c. Semantic analysis
d. All of above
Digital Technique Mrs. Sunita M Dol, CSE Dept
Walchand Institute of Technology, Solapur Page 2
6. Output of compiler is
a. Source program
b. Relocatable machine code
c. Target assembly program
d. Absolute machine code
7. Output of Assembler is
a. Source program
b. Relocatable machine code
c. Target assembly program
d. Absolute machine code
8. Output of loader is
a. Source program
b. Relocatable machine code
c. Target assembly program
d. Absolute machine code
9. Output of link-editor is
a. Source program
b. Relocatable machine code
c. Target assembly program
d. Absolute machine code
10. Output of preprocessor is
a. Source program
b. Relocatable machine code
c. Target assembly program
d. Absolute machine code
11. In which phase identifiers entered into the symbol table?
a. Lexical Analysis
b. Syntax Analysis
c. Semantic Analysis
d. Intermediate Code Generation
Digital Technique Mrs. Sunita M Dol, CSE Dept
Walchand Institute of Technology, Solapur Page 3
12. Which of the following are compiler construction tools?
a. Parser generators
b. Scanner generators
c. Data flow engines
d. All of above
13. Which of the following is a phase of compilation
a. Lexical Analysis
b. Code generation
c. Static analysis
d. Both a & b
14. An ideal compiler should
a. Detect error
b. Detect & repair error
c. Detect, repair & correct error
d. None of these
15. Which of the following is/are phases of analysis
a. Lexical Analysis
b. Code generation
c. Code optimization
d. None of above
16. Which of the following phase of compilation process is an optional phase
a. Lexical analysis
b. Syntax analysis
c. Code optimization
d. Code generation