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.

A_PROGRAMMING_LANGUAGE_IS_TO_BE_DESIGNED_TO_RUN_ON_A_MACHINE_THAT_DOES_NOT_HAVE_A_BIG_MEMORY.?$

A. Prefer a 2 pass compiler
B. Prefer an interpreter
C. Not support recursion
D. All of the mentioned
Answer» E.
2.

Which_of_the_following_system_software_resides_in_main_memory_always?$

A. Text editor
B. Assembler
C. Linker
D. Loader
Answer» E.
3.

In a two pass assembler the object code generation is done during th?

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

An example of intermediate language is

A. SNOBOL
B. PASCAL
C. COBOL
D. UNCOL
Answer» E.
5.

Bottom up parsing involves

A. Shift reduce
B. Handle pruning
C. None of the mentioned
D. Both of the mentioned
Answer» E.
6.

Predictive parsers can be

A. Recursive
B. Constructive
C. Non recursive
D. Both a and b
Answer» B. Constructive
7.

The linker

A. Is same as the loader
B. Create a load module
C. Both of the mentioned
D. None of the mentioned
Answer» C. Both of the mentioned
8.

Parsing is also known as

A. Lexical analysis
B. Syntax analysis
C. Semantic analysis
D. Code generation
Answer» C. Semantic analysis
9.

Which of the following is not a feature of compiler?

A. Converts it into machine code
B. None of the mentioned
C. Slow for debugging
D. Execution time is more
Answer» E.