How to practice Theory of Computation

Attempt a question, record the concept and assumptions, then check the available answer. Rework mistakes after revising the relevant concepts. Topic tags can overlap; review the question context.

Questions 1–10 of 83. Imported answers require independent review unless marked reviewed.

Topic practice 83 questionsPage 1 of 9

Question 13

Open question
CS2MCQ1 markNeeds review
Which one of the following statements is equivalent to the following assertion?
Turing machine

decides the language

Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 25

Open question
CSMSQ1 markNeeds review
Consider the following grammar where

is the start symbol, and

and

are terminal symbols.

Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 26

Open question
CSMSQ1 markNeeds review
Let

be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet.
Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to

?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 29

Open question
CS2MSQ1 markNeeds review
Which of the following grammars is/are ambiguous?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 47

Open question
CS2MSQ2 marksNeeds review
Consider the following two finite automata

and

.
Diagram for Computer Science and Information Technology question 47

Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 48

Open question
CS2MSQ2 marksNeeds review
Let

and let

.
Which of the following constraints ensure(s) that the language

is context-free?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 51

Open question
CSMSQ2 marksNeeds review
Let

and

be two languages over a finite alphabet, such that

and

are regular languages. Which of the following statements is/are always true?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 52

Open question
CSMSQ2 marksNeeds review
Consider the following context-free grammar

.

In the above grammar,

is the start symbol,

and

are terminal symbols, and

and

are non-terminal symbols.
Let

be the language generated by the grammar

. For a string

, let

be the number of

’s in

and

be the number of

’s in

.
Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 19

Open question
CSMCQ1 markNeeds review
Consider the following context-free grammar

, where

,

, and

are the variables (non-terminals),

and

are the terminal symbols,

is the start variable, and the rules of

are described as:

Which ONE of the languages

is accepted by

?
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 24

Open question
CSMCQ1 markNeeds review
Which ONE of the following languages is accepted by a deterministic pushdown automaton?
Your answerChoose one option.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer