Explore topic-wise MCQs in Compilers.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

SEMANTIC_ANALYSER_IS_USED_FOR??$

A. Generating Object code
B. Maintaining symbol table
C. Generating Object code & Maintaining symbol table
D. None of the mentioned
Answer» D. None of the mentioned
2.

WHAT_DOES_A_SYNTACTIC_ANALYSER_DO??$

A. Maintain Symbol Table
B. Collect type of information
C. Create parse tree
D. None of the mentioned
Answer» D. None of the mentioned
3.

By whom is the symbol table created?

A. Compiler
B. Interpreter
C. Assembler
D. None of the mentioned
Answer» B. Interpreter
4.

In Short Syntax Analysis Generates Parse Tree

A. True
B. False
Answer» B. False
5.

Suppose One of the Operand is String and other is Integer then it does not throw error as it only checks whether there are two operands associated with ‘+’ or not .$

A. True
B. False
Answer» B. False
6.

Type checking is normally done during?

A. Lexical Analysis
B. Syntax Analysis
C. Syntax Directed Translation
D. Code generation
Answer» D. Code generation
7.

Output file of Lex is _____ the input file is Myfile?

A. Myfile.e
B. Myfile.yy.c
C. Myfile.lex
D. Myfile.obj
Answer» C. Myfile.lex
8.

Which of the following system software resides in the main memory always

A. Text Editor
B. Assembler
C. Linker
D. Loader
Answer» E.
9.

A system program that combines the separately compiled modules of a program into a form suitable for execution?

A. Assembler
B. Compiler
C. Linking Loader
D. Interpreter
Answer» D. Interpreter
10.

Select a Machine Independent phase of the compiler

A. Syntax Analysis
B. Intermediate Code generation
C. Lexical Analysis
D. All of the mentioned
Answer» E.