
Compiler Design Quiz I June 18
Authored by Suganya Ram
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the use of a symbol table in compiler design?
Finding name’s scope
Type checking
Keeping all of the names of all entities
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A compiler is preferable to an interpreter because
Debugging can be faster and easier
If one changes a statement, only that statement needs re-compilation
It is much helpful in the initial stages of program development
It can generate stand alone programs that often take less time for execution
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
A top-down parser generates
Left-most derivation in reverse
Right-most derivation in reverse
Left-most derivation
Right –most derivation
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following parsers is the most powerful?
SLR
LALR
Canonical LR
Operator-precedence
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Synthesized attribute can be easily simulated by a
LR grammar
LL grammar
Ambiguous grammar
Left recursive grammar
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The lexical analyzer takes ____ as input and produces a list of ___ of output.
Source code, tokens
Machine code, Source code
Tokens, source code
Token, Target code
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
__________ reads a program, analyze it, and attempts to discover potential bugs without running the program.
Structure editor
Interpreters
Pretty printers
Static checker
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?