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

4

B

2

C

3

D

1

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