NEW
Font size
WorksheetsCompiler Design
Total questions: 15
Worksheet time: 7mins
Which of the following is NOT a translator?
Assembler
Compiler
Interpreter
Executable
Translates low level assembly language mnemonic into machine code
Assembler
Compiler
Interpreter
This phase scans the source code as a stream of characters and converts it into meaningful lexemes.
Lexical Analyzer
Syntax Analyzer
Semantic Analyzer
Code Generator
Stage of compilation that removes redundant code and replaces inefficient code.
Lexical Analysis
Syntax Analysis
Semantic Analysis
Code Generation
Code Optimisation
Stage of compilation that checks a sequence of tokens is valid.
Lexical Analysis
Syntax Analysis
Semantic Analysis
Code Generation
Code Optimisation
Which of the following is false:
INTERPRETED programs run slower than COMPILED programs
ASSEMBLY LANGUAGE is easier to read then MACHINE CODE
COMPILED programs are easier to debug
MACHINE CODE programs are usually HARDWARE SPECIFIC
Which of these is not a stage in the compilation process:
LEXICAL ANALYSIS
CODE OPTIMISATION
OBJECT CODE GENERATION
SOURCE CODE GENERATION
