
Theory of Computation Quiz
Authored by Mrs.MATHU 1429
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following languages over the alphabet {0,1} is described by the regular expression: (0+1)*0(0+1)*0(0+1)*?
The set of all strings containing the substring 00.
The set of all strings containing at most two 0’s.
The set of all strings containing at least two 0’s.
The set of all strings that begin and end with either 0 or 1.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let L be a language defined over an alphabet ∑,then the language of strings , defined over ∑, not belonging to L denoted by LC or L. is called :
Non regular language of L
Complement of the language L
None of the given
All of above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Languages are proved to be regular or non regular using pumping lemma.
True
False
Not always true
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will be used for text searching application-?
NFA
DFA
PDA
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following strings is not generated by the following grammar? S → SaSbS ε
aabb
abab
aababb
aaabb
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is wrong?
Any regular language has an equivalent context-free grammar.
Some non-regular languages can’t be generated by any context-free grammar
Intersection of context free language and a regular language is always context-free
All languages can be generated by context- free grammar
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For s Є (0+1)* let d(s) denote the decimal value of s(e.g.d(101)) = 5 Let L = {s Є (0+1)* d(s) mod 5=2 and d(s) mod 7 != 4} Which one of the following statements is true?
L is recursively enumerable, but not recursive
L is recursive, but not context-free
L is context-free, but not regular
L is regular
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?