Multiple Choice
Consider the grammar defined by the following production rules, with twooperators ? and +
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?
A) + is left associative, while ? is right associative
B) + is right associative, while ? is left associative
C) Both + and ? are right associative
D) Both + and ? are left associative
Correct Answer:

Verified
Correct Answer:
Verified
Q4: From the given data below : a
Q5: In a compiler, keywords of a language
Q6: The lexical analysis for a modern computer
Q7: Which of the following statement(s) regarding a
Q8: The number of tokens in the following
Q10: The grammar S ? aSa | bS
Q11: Consider the following statements:<br>(I) The output of
Q12: Consider the following translation scheme. S ?
Q13: Consider the following grammar. S -> S
Q14: Consider the grammar S ? (S) |