
Compiler Design Quiz CSE 1
Authored by Srishti Sharma
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
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The intermediate code generation phase translates from:
Source code to machine code
Lexical tokens to syntax tree
Syntax tree to intermediate code
Intermediate code to optimized code
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which phases focus on generating and optimizing the target code?
Lexical Analysis and Syntax Analysis
Semantic Analysis and Code Optimization
Code Generation and Optimization
All of the above
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which phases are primarily concerned with analyzing the source code?
Lexical Analysis and Code Optimization
Lexical Analysis, Syntax Analysis, and Semantic Analysis
Semantic Analysis and Code Generation
Code Generation and Optimization
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The symbol table stores information about:
Keywords only
Operators only
Variables, functions, and data types
Code statements
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Code optimization focuses on improving:
Readability
Maintainability
Performance
Security
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the primary function of a compiler?
Converts high-level language into machine code
Interprets source code at runtime
Compresses files for storage
Manages memory allocation
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which symbol is commonly used to represent 'end of input' in parsing tables?
*
$
#
&
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?