Computer Science - Language Processors

Exercise :: 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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

28. 

Which table is a permanent databases that has an entry for each terminal symbol?

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.