1.

How many strings of length less than 4 contains the language described by the regular expression (x+y)*y(a+ab)*?(a) 7(b) 10(c) 12(d) 11This question was posed to me during an online exam.This intriguing question comes from Regular Grammar topic in division Contextfree Grammar and Syntax Analysis of Compiler

Answer»

Correct OPTION is (d) 11

The explanation: String of LENGTH 0 = 1

string of length 1 = 4

string of length 2 = 3

string of length 3 = 3.



Discussion

No Comment Found

Related InterviewSolutions