Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Theory of Computation

Quick practice

Question 1 of 5

Which is the correct CFG for this language: \mathrm{a^{n} b^{m} c^{n} d^{m}} where n ,m >=1?

A

\mathrm{S} \rightarrow \mathrm{A B}

\mathrm{A} \rightarrow \mathrm{a A b} / \mathrm{a b}

\mathrm{B} \rightarrow \mathrm{b B c} / \mathrm{b c}

B

\mathrm{S} \rightarrow \mathrm{aSd} / \mathrm{aAd}

\mathrm{A} \rightarrow \mathrm{bAc} / \mathrm{bc}

C

None

D

\mathrm{S} \rightarrow \mathrm{aSc} / \mathrm{aAc}

\mathrm{A} \rightarrow \mathrm{a A b} \mathrm{ /ab }

Get unlimited practice with GATE - CSIT, DSAI & Placements 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