Appendix . Multiple Choice Questions (Set I)

In each of the following questions, choose the correct answer from the four choices provided.

1.

The following grammar

G = (N, T, P, S)

N = {S, A, B}

T = {a, b, c}

P : SaSa

  • SaAa

  • AbB

  • BbB

  • Bc is

  1. is type 3

  2. is type 2 but not type 3

  3. is type 1 but not type 2

  4. is type 0 but not type 1

2.

The following grammar

G = (N, T, P, S)

N = {S, A, B, C, D, E}

T = {a, b, c}

P : SaAB

 

AB

CD

 

CD

CE

 

C

aC

 

C

b

 

bE

bc is

  1. is type 3

  2. is type 2 but not type 3

  3. is type 1 but not type 2

  4. is type 0 but not type 1

3.

The following grammar

G = (N, T, P, S)

N = {S, A, B, C}

T = {a, b, c}

P : SaS

  • AbB

  • BcC

  • Ca is

  1. is type 3

  2. is type 2 but not type 3

  3. is type 1 but not type 2

  4. is type 0 but not type 1

4.

The following grammar

G = (N, T, P, S)

N = {S, A, B, C

Get Introduction to Formal Languages, Automata Theory and Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.