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. When the lexical analyzer read the source-code, it scans the code?

line by line
word by word
letter by letter
reads the whole program

2. A set of tokens, known as?

non-terminals
terminal symbols
productions 
start symbol

3. Consider the production of the grammar S->AA A->aa A->bb Describe the language specified by the production grammar.

L = {aaaa,aabb,bbaa,bbbb}
L = {abab,abaa,aaab,baaa}
L = {aaab,baba,bbaa,bbbb}
L = {aaaa,abab,bbaa,aaab}

4. The basic limitation of finite automata is that

it can’t remember arbitrary large amount of information
it sometimes recognize grammar that are not regular
it sometimes fails to recognize regular grammar
None of the above

5. Optimization can be categorized broadly into ____ types.

2
3
4
5

6. Which of the following is used to link all the parts of the program together for execution?

loader
linker
memory
preprocessor

7. The output of an assembler is called?

data file
task file
object file
program file

8. A compiler for a high-level language that runs on one machine and produces code for a different machine is called

optimizing compiler
one pass compiler
cross compiler
multipass compiler

9. ___________ is a tool that depicts the structure of basic blocks, helps to see the flow of values flowing among the basic blocks, and offers optimization too.

DAG
CAG
SAG
PAG

10. In how many types parsing is divided?

2
3
4
5

Results