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 :

Click on Discuss to view users comments.

Write your comments here:



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 :

Click on Discuss to view users comments.

Write your comments here:



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 :

Click on Discuss to view users comments.

Write your comments here:



24:  

Resolution of externally defined symbols is performed by

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

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



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 :

Click on Discuss to view users comments.

swara said: (9:25am on Friday 24th May 2013)
how 23132 comes?
Mrugesh said: (6:27am on Tuesday 24th September 2013)
Given answer is correct but rule 3) S----> Sz { print " 3 " ) is wrong it should be3) W----> Sz { print " 3 " )
Dinesh said: (11:13pm on Wednesday 14th October 2015)
rule first is S->xxS so s->Sz----3 ->Szz---3 ->xxSzz--1 ->xxxxSzz--1 ->xxxxyzz--2answer must be 33112

Write your comments here: