GATE 2022: Compiler Design Quiz-11
Attempt now to get your rank among 321 students!
Question 1
Question 2
Question 3
Find the language generated by the following grammar:
{S → AB, A → aA|a, B → bB|b}
Question 4
S1 : Interpreters process program according to the logical flow of control through the program.
S2 : Interpreter translates and executes the error-free first instruction before it goes to the second.
S3 : Interpreter processing time is less compared with compiler.
S4 : LISP and Prolog are interpreted languages.
Question 5
A) Redeclaration of an identifier.
B) Unbalanced parenthesis.
C) Array index out of bounds.
D) Divide by
E) Mistype the constant integer “Count12” as “Count 12”.
F) Dereference of null pointer.
G) Use of uninitialized variable.
Let the number of Syntactic error from the above list be x, number of lexical errors from the above list be y and the number of static semantic errors be z. Then x-(y+z) = ____
Question 6
Consider the following CFG.
How many states in SLR (1) parsing construction?
Question 7
Question 8
A = Set of all LL (1) grammars
B = Set of all LR (0) grammars
C = Set of all LL (0) grammars
D = Set of all LR (1) grammars
Which of the following is correct?
Question 9
S -> ABa/BAc
A -> d/e/epsilon
B -> f/epsilon
Which of the following is true regarding the FIRST() & FOLLOW() function of LL(1) parser?
Question 10
A -> A+A/A-A/B
B -> B*B/B -B
After eliminating the left factoring is -
Question 11
int main() {
char 2ac/d;
int b;
b=b+1;
printf("%d",b);
}
Question 12
Question 13
Question 14
Question 15
- 321 attempts
- 0 upvotes
- 0 comments