Classical

Compiler Design - Lexical analysis & Parsing

21:  

The computer language generally translated to pseudocode is

A. assembly
B. machine
C. pascal
D. FORTRAN
 
 

Option: A

Explanation :


22:  

A system program that combines separately compiled modules of a program into a form suitable for execution is

A. assembler
B. linking loader
C. cross compiler
D. None of these
 
 

Option: B

Explanation :


23:  

 In which way a macro processor for assembly language can be implemented?

A. Independent two-pass processor
B. Independent one-pass processor
C. Processor incorporated into pass 1 of a standard two pass assembler
D. All of these
 
 

Option: D

Explanation :


24:  

Resolution of externally defined symbols is performed by

A. Linker
B. Loader
C. Compiler
D. Interpreter
 
 

Option: A

Explanation :


25:  

 A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammer

S----> xxW ( PRINT "1")

S----> y { print " 2 " }

S----> Sz { print " 3 " )

What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules ?

A.

23131

B.

11233

C.

11231

D.

33211

 
 

Option: A

Explanation :




Suggest an improvement