0% found this document useful (0 votes)
63 views

Chapter 1: Introduction To Compiling

The document contains a list of 16 multiple choice questions about the different phases and components of compilation. It discusses topics like lexical analysis, syntax analysis, semantic analysis, code generation, optimization, and the outputs and roles of compilers, assemblers, linkers, and loaders. The correct answers are not provided.

Uploaded by

Atharva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Chapter 1: Introduction To Compiling

The document contains a list of 16 multiple choice questions about the different phases and components of compilation. It discusses topics like lexical analysis, syntax analysis, semantic analysis, code generation, optimization, and the outputs and roles of compilers, assemblers, linkers, and loaders. The correct answers are not provided.

Uploaded by

Atharva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Digital Technique Mrs.

Sunita M Dol, CSE Dept

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

Walchand Institute of Technology, Solapur Page 1


Digital Technique Mrs. Sunita M Dol, CSE Dept

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

Walchand Institute of Technology, Solapur Page 2


Digital Technique Mrs. Sunita M Dol, CSE Dept

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

Walchand Institute of Technology, Solapur Page 3

You might also like