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. If an SDT uses only synthesized attributes, it is called as?

T-attributed SDT
A-attributed SDT
S-attributed SDT
R-attributed SDT

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

a
INC a
DEC a
MUL a

3. System program such a compiler are designed so that they are ________

Re-enterable
Non-Usable
Serially usable
None of the above

4. Dead code plays no role in any program operation and therefore it can simply be eliminated.

TRUE
FALSE
Can be true or false
Can not say

5. Which of the following is true?

In Short Syntax Analysis Generates Parse Tree.
Syntax analyser does not check the type of the operand.
Symbol table is created by the compiler which contains the list of lexemes or tokens.
All of the above

6. Optimization can be categorized broadly into ____ types.

2
3
4
5

7. A variable is called an _________ variable if its value is altered within the loop by a loop-invariant value.

Invariant 
induction
strength 
loop

8. In the input file, In which section Anything written in this brackets is copied directly to the file lex.yy.c?

Rules Section
Definition Section
User Code Section
None of the above

9. If an error occurs, what compiler do?

terminate program
stops execution
reads the whole program even if it encounters errors
give warning

10. 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

Results