Multiple Choice
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. The relationship between n1 and n2 is:
A) n1 is necessarily less than n2
B) n1 is necessarily equal to n2
C) n1 is necessarily greater than n2
D) none of these
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the intermediate code given below:<br>1) i
Q2: Consider the following C code segment.<br>For (i
Q3: Consider the grammar with the following translation
Q4: Consider the following expressionu<br>*v+a-b*c<br>Which one of the
Q6: In multi-programmed systems, it is advantageous if
Q7: Which of the following statement(s) regarding a
Q8: Incremental-Compiler is a compiler<br>A)which is written in
Q9: Shift-Reduce parsers perform the following:<br>A)Shift step that
Q10: A language L allows declaration of arrays
Q11: Which of the following grammar rules violate