ISRO | ISRO CS 2020 | Question 20
Given the grammar:
s → T * S⏐T
T → U + T⏐U
U → a⏐b
Which of the following statement is wrong ?
(A) Grammar is not ambiguous
(B) Priority of + over * is ensured
(C) Right to left evaluation of * and + happens
(D) None of these
Answer: (D)
Explanation: Following points can be drawn from above grammar :
- * is right associative.
- + is right associative.
- Priority of + is higher than *.
- Grammar is not ambiguous since preferences are defined.
So, option (D) is true.
Quiz of this Question
Last Updated :
03 Sep, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...