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. A variable is called an _________ variable if its value is altered within the loop by a loop-invariant value.

Invariant 
induction
strength 
loop

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

3. The rule section is enclosed in?

%%
$$
%%%%
$$$$

4. The non terminal that gives null will said to have a null production

TRUE
FALSE
Can be true or false
Can not say

5. Final state is represented by?

Square
Circle
Double Circlue
Rhombus

6. If an error occurs, what interpreter do?

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

7. Concatenation (.) has the ________ highest precedence

first
second
third
fourth

8. Which symbol table implementation is based on the property of locality of reference?

Linear list
Search tree
Hash Table
Self Organisation

9. What is meant by compositional semantics?

Determining the meaning
Logical connectives
Semantics
All of the above

10. x * 2 can be replaced by x << 1 is an example of?

Algebraic expression simplification
Accessing machine instructions
Strength reduction
Code Generator

Results