Compiler Design MCQ Questions Answers Computer Engineering MCQ

Compiler Design MCQ Questions Answers Computer Engineering CSE

Compiler design is a critical aspect of computer science and software engineering, focused on the development of programs that convert high-level programming languages into machine code or intermediate representations. A deep understanding of compiler design principles is essential for professionals working in the field of software development. To enhance your knowledge and test your understanding, we’ve compiled a set of multiple-choice questions (MCQs) along with their answers related to compiler design.


1) Left Factoring is the process of factoring out the common ?

a) prefixed of alternates

b) suffixes of alternates

c) predictive parsing

d) none of the above

View Answer
Option – d)


2) Which of the following are language processors?

a) assembler

b) compilers

c) interpreters

d) all of the above

View Answer
Option – a)


3) Resolution is externally defined symbols is performed by

a) Linker

b) Loader

c) Compiler

d) Assembler

View Answer
Option – a)


4) The linker

a) is the same as loader

b) is required to create a load module

c) user source code as input

d) is always used before programs are executed

View Answer
Option – a)


5) Which of the following is used for grouping of characters into tokens?

a) parser

b) code optimization

c) code generator

d) scanner

View Answer
Option – d)


6) Which is a permanent data base in the general model of compiler?

a) literal table

b) indentifier table

c) terminal table

d) source code

View Answer
Option – d)


7) Which of the following system software resides in main memory always?

a) text editor

b) assembler

c) linker

d) all of the above

View Answer
Option – c)


8) Which of the following parsers is the most powerful?

a) Operator-precedence

b) canonical LR

c) LALR

d) SLR

View Answer
Option – b)


9) The translator is best described as

a)  application software

b) a system software

c) a hardware component

d) all of the above

View Answer
Option – b)


10) A bottom-up parser generates

a) right-most derivation

b) right-most derivation in reverse

c) left-most derivation

d) left-most derivation in reverse

View Answer
Option – b)