if there are no errors tokens are converted into object code. Code is optimised at this stage

Compilation stages

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Used 79+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lexical analysis
syntax analysis
semantic analysis
code generation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
the program is checked to ensure it conforms to the syntax rules. for example an error would appear if a semi-colon was missing
Lexical analysis
syntax analysis
semantic analysis
code generation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
the program is converted from a sequence of characters into a series of tokens by removing white space at this stage
Lexical analysis
syntax analysis
semantic analysis
code generation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Varibles are checked that they are used properly and the that operations such as (+ - / and *) have been correctly used at this stage
Lexical analysis
syntax analysis
semantic analysis
code generation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
THere are 4 main stages of comilation. Code generation is
Comments and unneeded spaces are removed. Remaining code is turned in to tokend and. A symbol table is created which holds the addresses of variables, labels and subroutines.
Tokens are checked to see if they match the spelling and grammar expected. This is done by parsing each token to determine if it uses the correct syntax for the programming language. If syntax errors are found, error messages are produced.
Variables are checked to ensure that they have been properly declared, used and are the correct data type. Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Machine code is generated. Code optimisation to run as fast as possible. redundant data is removed.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
THere are 4 main stages of comilation. Semantic analysis is
Comments and unneeded spaces are removed. Remaining code is turned in to tokend and. A symbol table is created which holds the addresses of variables, labels and subroutines.
Tokens are checked to see if they match the spelling and grammar expected. This is done by parsing each token to determine if it uses the correct syntax for the programming language. If syntax errors are found, error messages are produced.
Variables are checked to ensure that they have been properly declared, used and are the correct data type. Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Machine code is generated. Code optimisation to run as fast as possible. redundant data is removed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
THere are 4 main stages of comilation. Syntax Analysis is
Comments and unneeded spaces are removed. Remaining code is turned in to tokend and. A symbol table is created which holds the addresses of variables, labels and subroutines.
Tokens are checked to see if they match the spelling and grammar expected. This is done by parsing each token to determine if it uses the correct syntax for the programming language. If syntax errors are found, error messages are produced.
Variables are checked to ensure that they have been properly declared, used and are the correct data type. Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Machine code is generated. Code optimisation to run as fast as possible. redundant data is removed.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
THere are 4 main stages of comilation. Lexical Analysis is
Comments and unneeded spaces are removed. Remaining code is turned in to tokend and. A symbol table is created which holds the addresses of variables, labels and subroutines.
Tokens are checked to see if they match the spelling and grammar expected. This is done by parsing each token to determine if it uses the correct syntax for the programming language. If syntax errors are found, error messages are produced.
Variables are checked to ensure that they have been properly declared, used and are the correct data type. Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Machine code is generated. Code optimisation to run as fast as possible. redundant data is removed.
Similar Resources on Quizizz
12 questions
Errors in Python

Quiz
•
9th - 12th Grade
11 questions
Computational Thinking

Quiz
•
12th Grade
12 questions
Programming - Output

Quiz
•
KG - 12th Grade
9 questions
Testing

Quiz
•
9th - 11th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
Key Terms Python

Quiz
•
12th Grade
12 questions
Syntax and Logic Errors

Quiz
•
9th - 11th Grade
10 questions
Arduino Basic Programming

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade