Explore topic-wise MCQs in Compilers.

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

1.

In Lex, a class is complemented by first placing ____________

A. ^
B. OR
C.
D. NOT
Answer» B. OR
2.

Loading process can be divided into two programs. The first is binder the other is ____________

A. Linkage editor
B. Module Loader
C. Relocate
D. None of the mentioned
Answer» C. Relocate
3.

Yacc is available as a command on the ____________

A. MINIX
B. UNIX
C. DOS
D. None of the mentioned
Answer» C. DOS
4.

Output file of the Lex is _________ is the input file is Sam.

A. sam
B. sam.yy.c
C. sam.lex
D. sam.obj
Answer» C. sam.lex
5.

Which of the following type of software should be used if you need to create, edit and print documents?

A. Word processing
B. Spreadsheet
C. Desktop publishing
D. UNIX
Answer» B. Spreadsheet
6.

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

A. Assembler
B. Linking loader
C. Cross compiler
D. Load and Go
Answer» C. Cross compiler
7.

Pick the machine independent phase of the compiler.

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

In Two pass assembler the object code generation is done during the ______________

A. Second pass
B. First pass
C. Zeroth pass
D. Not done by assembler
Answer» B. First pass
9.

In a two pass assembler, adding literals to literal table and address resolution of local symbols are done using?

A. First pass and second respectively
B. Both second pass
C. Second pass and first respectively
D. Both first pass
Answer» E.