Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Compiler

Quick practice

Question 1 of 5

Consider the following grammar.

S → aB | aAb 

A → bAb | a 

B → aB | ε

How many parse trees exist to generate the string aab from the above grammar? 

A

3

B

4

C

1

D

2

Get unlimited practice with GATE - CSIT, DSAI & Interview Preparation subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go