All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 08 · MOCK TEST

Mock 6 – Turing Machines, Decidability & Chomsky Hierarchy

Unit 8: Theory of Computation and Compilers · 29 questions · about 34 minutes. Press End Mock any time to see your score and the correct answers.

All 10 topic-wise mocks in this unit
0 / 29 answered 00:00
Q1. Arrange the following families of languages from specialization to generalization, defined over alphabet Σ:
A. Family of all regular languages
B. Family of all Turing acceptable languages
C. Family of all Turing decidable languages
D. Family of all context free languages
Choose the correct answer from the options given below:
Q2. Match List I with List II
List IList II
A. Type 3 GrammarI. V → (V ∪ Σ)*
B. Type 2 GrammarII. αVβ → α(V ∪ Σ)⁺β, where α, β ∈ (V ∪ Σ)*
C. Type 1 GrammarIII. (V ∪ Σ)* → (V ∪ Σ)*
D. Type 0 GrammarIV. V → VΣ | Σ
Q3. Match List I with List II
List IList II
A. Type-0 GrammarI. Linear Grammar
B. Type-1 GrammarII. GNF
C. Type-2 GrammarIII. x → y, |x| ≤ |y|; x, y ∈ (V ∪ T)*
D. Type-3 GrammarIV. Recursively Enumerable
Q4. If L₁ and L₂ are context-free languages, which one of the following is true about L₁ ∩ L₂?
Q5. Arrange the following language classes in ascending order of their expressive power, as defined by the Chomsky hierarchy:
(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted grammars (recursively enumerable)
Choose the correct answer from the options given below:
Q6. Consider the following statements:
A. The set of Turing machine codes for TMs that accept all inputs that are palindromes (possibly along with other inputs) is decidable.
B. The language of codes for TMs M that, when started with blank tape, eventually write a 1 somewhere on the tape is undecidable.
C. The language accepted by a TM M, L(M), is always recursive.
D. Post's correspondence problem is undecidable.
Choose the correct answer from the options given below:
Q7. The transition function δ in a multi-tape Turing machine (k tapes) is defined as:
Q8. Consider two instances X and Y of the Post Correspondence Problem, each with lists A and B of three strings over {0, 1}. Which of the following is true?

X

iList AList B
11111
21011110
3100

Y

iList AList B
110101
201111
3101011
Q9. Consider the following properties of recursively enumerable sets:
(A) Finiteness
(B) Context-freedom
(C) Emptiness
Which of the following is true?
Q10. Match List I with List II.
Choose the correct answer from the options given below:
List IList II
A. Type 0I. Finite automata
B. Type 1II. Turing machine
C. Type 2III. Linear bounded automata
D. Type 3IV. Pushdown automata
Q11.

Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy:

(A) Context-free languages

(B) Context-sensitive languages

(C) Regular languages

(D) Unrestricted Grammars

Q12.

A. The set of turning machine codes for TM's that accept all inputs that are palindromes (possible along with some other inputs) is decidable

B. The language of codes for TM's M that when started with blank tape, eventually write a 1 somewhere on the tape is undecidable

C. The language accepted by a TMM is LM is always recursive

D. Post's correspondence problem is undecidable

Q13.

Consider the following statements:

(A) For every regular language, we can design Turing Machine

(B) For every context free language, we can design Turing Machine Which of the following is correct?

Q14.

The transition function ' ' in multi-tape Turing machine is defined as:

Q15.

Consider two PCP instances over {0, 1}, each with lists A and B of three strings. X: A = (1, 10111, 10), B = (111, 10, 0). Y: A = (10, 011, 101), B = (101, 11, 011). Which is true?

Q16.

Match List I with List II. List I: (A) Type 0, (B) Type 1, (C) Type 2, (D) Type 3. List II: (I) Finite automata, (II) Turing machine, (III) Linear bounded automata, (IV) Pushdown automata.

Q17.

Statement I: CFLs are closed under homomorphism. Statement II: CFLs are closed under complement. Which is correct?

Q18.

Which of the following concepts can be used to identify loops?

A. Depth first ordering

B. Dominators

C. Reducible graphs

Q19.

Match List I with List II (L_R regular, L_CF context-free, L_REC recursive, L_RE recursively enumerable). List I: A. Recursively enumerable language, B. Recursive language, C. Context-free language. List II: I. complement(L_REC) ∪ L_RE, II. complement(L_CF) ∪ L_REC, III. L_R* ∩ L_CF.

Q20.

Given below are two statements: L ∧ L = ϕ

Statement I : The problem "Is 1 2 ? " is L undecidable for context sensitive languages 1 L and 2. ∈

Statement II : The problem "Is W L?" is decidable W for context sensitive language L, (where is a string). In the light of the above statements, choose the correct answer from the options given below

Q21.

Consider the following language families : L ≡ The context - free languages 1 L ≡ The context - sensitive languages 2 L 3 ≡ The recursively enumerable languages L ≡ The recursive languages 4 Which one of the following options is correct? L ⊆ L ⊆ L ⊆ L

Q22.

Consider the following statements : S

1 : These exists no algorithm for deciding if any M M two Turing machines 1 and 2 accept the same language. S M M

2 : Let 1 and 2 be arbitrary Turing ⊆ L (M ) machines. The problem to determine 2 is undecidable. Which of the statements is (are) correct? S

Q23.

Let A = {001, 0011, 11, 101} and B = {01, 111, 111, 010}; C = {00, 001, 1000} and D = {0, 11, 011}. Which pairs have a Post correspondence solution?

Q24.

Which of the following problems is/are decidable problem(s) (recursively enumerable) on turing M machine ? G L(G) = ϕ

(a) is a CFG with M M

(b) There exist two TMs 1 and 2 such that L(M) ⊆ {L (M ) ∪ L (M )} = 1 2 language of TMs all ω 2|ω|

(c) M is a TM that accepts using at most cells of tape

Q25.

For a statement L ⊆ Σ∗ A language is recursive if there exists M some turing machine . Which of the following conditions is satisfied for ω any string ? ω ∈ L M ω M

Q26.

Consider the following problems :

(i) Whether a finite state automaton halts on all inputs ?

(ii) Whether a given context free language is regular?

(iii) Whether a Turing machine computes the product of two numbers? Which one of the following is correct?

Q27.

Which of the following problems is decidable for recursive languages L?

Q28.

Context-sensitive language can be recognized by a :

Q29.

Consider the statements: S₁: There exists no algorithm for deciding whether any two Turing machines M₁ and M₂ accept the same language. S₂: The problem of determining whether a Turing machine halts on any input is undecidable. Which of the following options is correct?