Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
147 views
in Computer by (41.3k points)
closed by

For the grammar below, a partial LL(1) parsing table is also presented along with the grammar. Entries that need to be filled are indicated as E1, E2, and E3. ε is the empty string, $ indicates end of input, and I separates alternate right hand sides of productions. S

The First and Follow sets for the non-terminals A and B are 

(A) FIRST( A) = {a, b, E} = FIRST (B) 

FOLLOW(A) = {a, b} 

FOLLOW(B) = {a, b, $} 

(B) FIRST(A) = {a, b, $} 

FIRST(B) = {a, b, E} 

FOLLOW(A) = {a, b} 

FOLLOW(B) ={$} 

(C) FIRST(A) = {a, b, E} = FIRST(B) 

FIRST(A) = {a, b} 

FOLLOW(B) = Φ

(D) FIRST(A) ={a, b,} = FIRST(B) 

FIRST(A) = {a, b} 

FOLLOW(B) ={a, b}

1 Answer

+1 vote
by (44.8k points)
selected by
 
Best answer

(A) FIRST( A) = {a, b, E} = FIRST (B) 

FOLLOW(A) = {a, b} 

FOLLOW(B) = {a, b, $} 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...