Classical

Compiler Design - Lexical analysis & Parsing

16:  

Compiler can diagnose

A. grammatical errors only
B. logical errors only
C. grammatical as well as logical errors
D. None of these
 
 

Option: A

Explanation :


17:  

A simple two-pass assembler does which of the following in the first pass ?

A. It allocates space for the literals
B. It computes the total length of the program
C. It builds the symbol table for the symbols and their values.
D. All of these
 
 

Option: D

Explanation :


18:  

A system program that set-up an executable program in main memory ready for execution is

A. assembler
B. linker
C. loader
D. text editor
 
 

Option: C

Explanation :


19:  

A compiler is a program that

A. places programs into memory and prepares them for execution.
B. automates the translation of assembly language into machine language.
C. accepts a program written in a high level language and produces an object program.
D. None of these
 
 

Option: C

Explanation :


20:  

A programmer, by mistake, writes an instruction to divide, instead of a multiply, such error can be detected by a/an

A.

compiler

B.

interpreter

C.

compiler or interpreter test

D.

None of these

 
 

Option: D

Explanation :




Suggest an improvement