...
Compiler-Design
October 7, 2023
NIC-NIELIT Scientist-B 2020
October 7, 2023
Compiler-Design
October 7, 2023
NIC-NIELIT Scientist-B 2020
October 7, 2023

Compiler-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
A
(i) only
B
(i) and (iii) only
C
(ii) and (iii) only
D
(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.
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!