Compiler-Design
October 7, 2023NIC-NIELIT Scientist-B 2020
October 7, 2023Compiler-Design
Question 36 |
Which of the following grammar rules violate the requirements of an operator grammar? P,Q,R are nonterminals, and r,s,t are terminals.
- (i) P → Q R
(ii) P → Q s R
(iii) P → ε
(iv) P → Q t R r
(i) only | |
(i) and (iii) only | |
(ii) and (iii) only | |
(iii) and (iv) only |
Question 36 Explanation:
Operator values doesn’t contains nullable values and two adjacent non-terminals on RHS production.
i) On RHS it contains two adjacent non-terminals.
ii) Have nullable values.
i) On RHS it contains two adjacent non-terminals.
ii) Have nullable values.
Correct Answer: B
Question 36 Explanation:
Operator values doesn’t contains nullable values and two adjacent non-terminals on RHS production.
i) On RHS it contains two adjacent non-terminals.
ii) Have nullable values.
i) On RHS it contains two adjacent non-terminals.
ii) Have nullable values.
Subscribe
Login
0 Comments