Write true ( T ) / false ( F )for each of the following statement

Write true ( T ) / false ( F )for each of the following statement
|

Write true ( T ) / false ( F )for each of the following statements:

A. Symbol table is used only in first phase of a compiler.

B. A pretty printer analyses a program and prints it in such a way that the structure of the program becomes early visible.

C. YACC build up LALR parsing table.

D. If a grammar is LALR( 1 ), it is not necessarily SLR( 1)

A. F T T T

B. F T T F

C. T T F T

D. T T T F

Please scroll down to see the correct answer and solution guide.

Right Answer is: A

SOLUTION

Statement A: False

Symbol table can be used during all phases of the compiler

Statement B: True

A pretty printer does analyse a program and print it in such a way that the structure of the program becomes early visible

Statement C: True

YACC is a tool to build the LALR parsing table

Statement D: True

If a grammar is LALR(1), then it is not necessary for it to be SLR(1).

Description: C:\Users\shrad\OneDrive\Desktop\Parsing.jpg