
SLR 5 - Stages of Compilation
Authored by Neil Stephens
Computer Science
9th - 10th Grade

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
30 sec • 1 pt
What is the first stage of the compilation process?
Lexical analysis
Syntax analysis
Semantic analysis
Code generation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is removed during the lexical analysis process?
Object code
Logic errors
Syntax errors
Comments and white space
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of tokenisation in lexical analysis?
To identify the purpose of each element in the code
To check the syntax of the code
To generate object code
To optimise the code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the syntax analysis stage check?
That comments and white space are removed
That tokens are in the correct order and follow language rules
That object code is generated
That the code is optimised
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of semantic analysis?
To flag logic errors
To generate object code
To allocate tokens
To remove comments
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is created during the code generation stage?
Object code
Source code
Symbol table
Tokens
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a major distinguishing feature between compilation and interpretation?
Compilation flags logic errors
Compilation checks syntax
Compilation removes comments
Compilation produces a separate executable file
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?