...
Question 11424 – Compiler-Design
May 17, 2024
Question 11460 – Compiler-Design
May 17, 2024
Question 11424 – Compiler-Design
May 17, 2024
Question 11460 – Compiler-Design
May 17, 2024

Question 11444 – Compiler-Design

Consider the grammar

S --> AbBaCc |ε
A --> aAb | ba
B --> bBC | cb
C --> cCa | ac 

Find the first() of S

Correct Answer: A

Question 326 Explanation: 
First(S) = First(A) ∪ {∊}
First(A) = {a,b}
∴ First(S) = {a,b} ∪ {∊}
= {a,b,∊}
A
{a, b, ε}
B
{ε}
C
{a,ε}
D
{a,b,c,ε}
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!!