
Compilation stages
Computers
10th - 12th Grade
Used 87+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if there are no errors tokens are converted into object code. Code is optimised at this stage
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.
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?
Similar Resources on Wayground
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
10 questions
Bài 29 NHẬN BIẾT LỖI CHƯƠNG TRÌNH
Quiz
•
10th Grade
10 questions
Ôn tập chủ đề 5. Giải quyết vấn đề với sự trợ giúp của máy tính
Quiz
•
12th Grade
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
12 questions
Text File Pop Quiz
Quiz
•
11th Grade
11 questions
65. Logic - Logic Gates and Circuits Quiz
Quiz
•
9th - 12th Grade
10 questions
Technical Terms - Internet (A-Z) - Avatar
Quiz
•
12th Grade
10 questions
Technical Terms - Internet (A-Z) - W3C
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade