WorksheetsCompiler and Interpreter
Total questions: 20
Worksheet time: 10mins
Which one of the following is a top-down parser?
Recursive descent parser.
Operator precedence parser.
An LR(k) parser.
An LALR(k) parser
Which of the following system software resides in the main memory always
Text Editor
Assembler
Linker
Loader
By whom is the symbol table created?
Compiler
Interpreter
Assembler
None of the mentioned
What does a Syntactic Analyser do?
Maintain Symbol Table
Collect type of information
Create parse tree
None of the mentioned
What is Syntax Analyser also known as
Hierarchical Analysis
Hierarchical Parsing
None of the mentioned
Hierarchical Analysis & Parsing
Translates low level assembly language mnemonic into machine code
Assembler
Compiler
Interpreter
Program is translated line by line as the program is running
Assembler
Compiler
Interpreter
Which of the following is NOT a translator?
Assembler
Compiler
Interpreter
Executable
Program is translated line by line as the program is running
Assembler
Compiler
Interpreter
What is machine code?
Instructions and data in binary
Serial number of the CPU
Instructions and data in human readable form
Instructions and data in assembly code mnemonics
What is the problem writing machine code?
Quick to learn
Easy to debug
Easy to read
Hard to remember the binary codes Hard to remember the binary codes
Select a Machine Independent phase of the compiler
Syntax Analysis
Intermediate Code generation
Lexical Analysis
All of the mentioned
What is a MNEMONIC?
A single action that can be performed by a computer.
A symbol that represents an instruction in assembly code.
A high level language keyword.
A register used inside a CPU A register used inside a CPU.
What is the problem writing machine code?
Quick to learn
Easy to debug
Easy to read
Hard to remember the binary codes Hard to remember the binary codes
