Time Left - 12:00 mins
Compiler Design : Nuclear Quiz 1
Attempt now to get your rank among 359 students!
Question 1
A syntax tree:
Question 2
Which of the following derivations does a top-down parser use while parsing an input string?
Question 3
Find the total number of tokens generated in the following statement.
printf(“\n Square of %d is %d “,a, b);
Question 4
In a compiler _______________ checks every character of the source text.
Question 5
What are the strings generated by the following grammar:
S → aA / bB
A → a / b
B → c / d
Question 6
Which of the following is operator precedence grammar
1) E → E + E |E * E | id
2) S → A+B; A → a; B → b | ϵ
Question 7
A three-address code has _________ address locations to calculate the expression.
Question 8
Which of the following is not a machine-independent code optimization technique?
Question 9
Which parser is the most powerful:
Question 10
If in a parse tree, node value is determined by the attribute value at child nodes then it is called as:
- 359 attempts
- 1 upvote
- 2 comments
Jul 25GATE & PSU CS