Language Processors – Section 2

26. In analyzing the compilation of PL/I program, the term “Machine independent optimization” is associated with

A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code

Correct Answer:  C. creation of more optional matrix

27. The function(s) of the Syntax phase is/ are:

A. to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs
B. to build a literal table and an identifier table
C. to build a uniform symbol table
D. to parse the source program into the basic elements or tokens of the language

Correct Answer:  A. to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs

28. Which table is a permanent database that has an entry for each terminal symbol?

A. Terminal table
B. Literal table
C. Identifier table
D. Reductions

Correct Answer:  A. Terminal table

29. Indicate which of the following is not true about an interpreter?

A. Interpreter generates an object program from the source program
B. Interpreter is a kind of translator
C. Interpreter analyses each source statement every time it is to be executed
D. All of the above

Correct Answer:  A. Interpreter generates an object program from the source program

30. When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed

A. loader
B. linker
C. bootstrap loader
D. None of the above

Correct Answer:  C. bootstrap loader

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?