CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following grammar rules violate the requirements of an operator grammar?
P, Q, R are non terminals and r, s, t are terminals.

(i) PQ R
(ii) PQ s R
(iii) Pε
(iv) PQ t R r

A
(ii) and (iii) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(iii) and (iv) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(i) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(i) and (iii) only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D (i) and (iii) only
In operator grammar the grammar has the property that no production side is ε or it doesn't contain adjacent non terminals.

So PQR and Pε violate the requirements of an operator grammar.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Properties of Operators: Commutative Associative and Distributive
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon