Theory of Computation Quiz

Theory of Computation Quiz

University

10 Qs

quiz-placeholder

Similar activities

Recursive and Recursively enumerable language

Recursive and Recursively enumerable language

University

10 Qs

Turing Machine

Turing Machine

University

13 Qs

4th TAFL Quiz for B. Tech +MCA

4th TAFL Quiz for B. Tech +MCA

University

15 Qs

Quiz3_DivideConquer_GreedyApproach

Quiz3_DivideConquer_GreedyApproach

University

10 Qs

FLA-Unit quiz

FLA-Unit quiz

University

10 Qs

Final Exam - Automata

Final Exam - Automata

University

15 Qs

Primitive Recursive Function

Primitive Recursive Function

University

10 Qs

UNIT V TOC

UNIT V TOC

University

10 Qs

Theory of Computation Quiz

Theory of Computation Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Mrs.MATHU 1429

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?