- Type
- Quiz
- Course
- CS402 Theory of Automata
- Size
- PDF 868 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 35. Download the file for all 35 pages.
Consider the following CFG: S->a|Xb|aYa X->Y|^ (NOTE: ^ means NULL) Y->b|X Which Non-terminals are nullable?
A. X
B. Y C. Z D. S,X and Y
The CFG S--> aSa | bSb | a | b | ^ represents ___________ language.
A. EQUAL
B. ODD-ODD C. EVEN-EVEN D. PALINDROME
The structure given below is called _________ S -> aaBm A -> Asia B -> sub A. RE B. TG
C. CFG
D. PDA
One language can have ______ CFG(s). A. Only one B. At most one C. At least one
D. More than one
Consider the Following CFG: (NOTE: ^ means NULL) S-Xa XaX|bX|^ Above give a CFG can be represented by RE
A. a*b*a
B. a*b* C. (a+b)*a D. a(a+b)*a
The tree which produces all the strings of a language is called
A. Derivation tree B. Ambiguous tree
C. Total language tree Page 96
D. Non ambiguous tree
The language of all strings partition ∑* into ___________ class(es).
A. Two
B. Five C. Four D. Three
There is at least one production in CFG that has one _________ on its left side. A. Terminal
B. Non terminal Page 87
C. Unit production D. Null production
The CFG that generates the regular language is called _______. A. finite automata B. regular expression
C. regular grammar Google
D. non-regular grammar
Prime is a ______________ language. A. Finite
B. Regular Page 75
C. Non-regular D. Both context free and regular
Which of the following cannot be represented by a regular expression?
Correct answer: String of 0’s with a prime length
"CFG" stands for __________________. A. Context Free Graph B. Context Finite Graph
C. Context Free Grammar Page 87
D. Context Finite Grammar
In pref(Q in R), Q is _______ to/than R. A. Equal B. Smaller C. Greater
D. Not equal Page 79
The operators like (* , +) in the parse tree are considered as ________.
A. Terminals Page 93
B. Productions C. Intermediates D. non-terminals
Related CS402 files
All CS402 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.