S1: Symbol table is accessed only during lexical analysis and syntax analysis.
S2: Errors “a variable is used before its declaration” are detected in semantic analysis phase.
Select the correct option.
S1: Context free grammar can be used for both lexical analysis and syntax analysis.
S2: Type checking is done by lexical analyser, i.e, type checking is done before parsing phase.
Select the correct option.


S→A%B
A→ C | A*C
B→D%B | D
C→id
D→id
Select the correct option
S→SA | A
A→T | a
T→TA | ϵ
Select the wrong option
A→Ax | yA | y
How to convert the given grammar into LL(1) grammar.
Note: String between two $ is considered as one token, for ex: $pqpp$ is one token.
Select the regular expression which breaks the given string into the given tokens.

int main ( ) { /*Line 1*/
int A, B; /*Line 2*/
fro (A=0, A<B, A++); /*Line 3*/
}
Identify the compilers response for line 3 while creating the object code.
Void main()
{
int final-value;
int num=2;
int Total=5;
int 1var=2;
5=num;
total=Num*1;
if(total=5)
{
total=total+1
}
}
Choose the correct option, about the errors in this program.
S→Aw | x
A→Ay | Sz |y
The resulting grammar after elimination left recursion
S→S+S | S×S | id | ϵ
Select the option which is not correct.