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,ε}

Leave a Reply

Your email address will not be published. Required fields are marked *