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.

What is Pass 2?

A. Assemble instruction and generate data
B. Perform processing of assembler
C. Write the object program
D. All of the mentioned
Answer» E.
2.

Which loader function is accomplished by loader?

A. Reallocation
B. Allocation
C. Linking
D. Loading
Answer» E.
3.

The table created by lexical analysis to describe all literals used in the source program is?

A. Terminal table
B. Literal table
C. Identifier table
D. Reductions
Answer» C. Identifier table
4.

A linker is given object module for a set of programs that were compiled separately. What is not true about an object module?

A. Object code
B. Relocation bits
C. Names and locations of all external symbols denied in the object module
D. Absolute addresses of internal symbols
Answer» E.
5.

Software that measures, monitors, and controls events are ___________

A. System S/w
B. Real Time software
C. Scientific software
D. Business Software
Answer» C. Scientific software
6.

Which of the following is true for machine language?

A. Continuous execution of program segments
B. Depicting flow of data in a system
C. A sequence of instructions which solves a problem
D. The language which interacts with the computer using only the binary digits 1 and 0
Answer» E.
7.

Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?

A. O(1)
B. O(long)
C. O(n)
D. O(long)
Answer» D. O(long)
8.

Dividing a project into segments and smaller units in order to simplify design and programming efforts is called?

A. Modular approach
B. Top down approach
C. Bottom up approach
D. Left right approach
Answer» B. Top down approach
9.

In what module multiple instances of execution will yield the same result even if one instance has not terminated before the next one has begun?

A. Non usable module
B. Serially usable
C. Re-enter-able
D. None of the mentioned
Answer» D. None of the mentioned
10.

The segment base is specified using the register named is?

A. ORG instructions
B. TITLE instruction
C. ASSUME instruction
D. SEGMENT instruction
Answer» B. TITLE instruction