NEW
Font size
WorksheetsCompiler
Total questions: 10
Worksheet time: 5mins
Assembler is used as a translator for?
Low level language
High Level Language
COBOL
C
Which of the following is true about interpreters?
They translate the entire program at once
They generate an intermediate code before execution
They are faster than compilers
They execute the program line by line
What is the role of a loader in the execution of a program?
Allocate memory to the program
Translate assembly code to machine code
Optimize the program for better performance
Convert high-level language code to low-level code
Which of the following are Lexemes?
Identifiers
Constants
Keywords
All of the mentioned
Which phase of the compiler is responsible for syntax analysis?
Lexical Analysis
Semantic Analysis
Syntax Analysis
Code Generation
What is the purpose of a symbol table in compiler design?
Store information about the source code
Translate high-level code to low-level code
Optimize the program for memory usage
Execute the program line by line
Does the compiler program translate the whole source code in one step?
No
Depends on the Compiler
Don't Know
Yes
Which of the following file is an output of the assembler?
Program file
Object file
Data File
Task File
What is the linker?
It is always used before the program execution.
It is required to create the load module.
It is the same as the loader
None of the above
Which computer program accepts the high-level language and converts it into assembly language?
Interpreter
Linker
Assembler
Compiler
