Compiler Design Quiz


Play this quiz that will help you to excel in Compiler Design certification exams, placements etc. This Compiler Design quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This test enables you to assess your knowledge of Compiler Design.

Take the Free Practice Test



Compiler Design MCQs

Practice Compiler Design MCQ Questions, which will help you to understand compiler related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Compiler Design Quiz

Try Free Compiler Design Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Compiler Design Quiz

1. In analyzing the compilation of PL/I program, the term Machine independent optimization is assosiated with

creation of more optical matrix
recognition of basic elements and creation of uniform symbols
recognization of basic syntactic construction through reductionsc
use of macro-processor to produce more optimal assembly code

2. When the parser starts constructing the parse tree from the start symbol and then tries to transform the start symbol to the input, it is called?

Recursive descent parsing
Backtracking
Top-down Parsing
Bottom-up Parsing

3. How many descriptors are used for track both the registers (for availability) and addresses (location of values) while generating the code?

2
3
4
5

4. In Algebraic expression simplification, a = a + 1 can simply be replaced by?

a
INC a
DEC a
MUL a

5. In which mechanism, the calling procedure passes the r-value of actual parameters and the compiler puts that into the called procedure’s activation record?

Pass by Reference
Pass by Name
Pass by Copy-restore
Pass by Value

6. Code generation can be considered as the?

first phase of compilation
second phase of compilation
third phase of compilation
final phase of compilation

7. Which of the following tool produces input for compilers?

Interpreter
Assembler
Loader
Preprocessor

8. What is true about Syntax Directed Definitions?

Syntax Directed Definitions + Semantic rules = CFG
Syntax Directed Definitions + CFG = Semantic rules
CFG + Semantic rules = Syntax Directed Definitions
None of the above

9. If R is regular language and Q is any language (regular/ non regular), then Pref (Q in R) is _____________

Non-regular
Equal
Infinite
Regular

10. Relocation is the process of replacing symbolic references or names of libraries with actual usable addresses in memory before running a program.

TRUE
FALSE
Can be true or false
Can not say

Results