Regular Languages questions

Q15

GATE CS 2014 CS-2Regular LanguagesMCQ1 mark−1/3 if wrong
If L1={an∣n≥0}L_1 = \{a^n \mid n \geq 0\} and L2={bn∣n≥0}L_2 = \{b^n \mid n \geq 0\}, consider

(I) L1⋅L2L_1 \cdot L_2 is a regular language
(II) L1⋅L2={anbn∣n≥0}L_1 \cdot L_2 = \{a^n b^n \mid n \geq 0\}

Which one of the following is CORRECT?
Show answer without attempting

Answer: A

Q36

GATE CS 2014 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Let L1={w∈{0,1}∗∣w has at least as many occurrences of (110)’s as (011)’s}L_1 = \{w \in \{0,1\}^* \mid w \text{ has at least as many occurrences of (110)'s as (011)'s}\}. Let L2={w∈{0,1}∗∣w has at least as many occurrences of (000)’s as (111)’s}L_2 = \{w \in \{0,1\}^* \mid w \text{ has at least as many occurrences of (000)'s as (111)'s}\}. Which one of the following is TRUE?
Show answer without attempting

Answer: A

Q15

GATE CS 2014 CS-3Regular LanguagesNAT1 mark
The length of the shortest string NOT in the language (over Σ={a,b}\Sigma = \{a, b\}) of the following regular expression is ______________.

a∗b∗(ba)∗a∗a^*b^*(ba)^*a^*
Show answer without attempting

Answer: 3

Q15

GATE CS 2014 CS-1Regular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following is TRUE?
Show answer without attempting

Answer: C

Q16

GATE CS 2014 CS-1Regular LanguagesMCQ1 mark−1/3 if wrong
Consider the finite automaton in the following figure.

What is the set of reachable states for the input string 0011?
Question figure
Show answer without attempting

Answer: A

Q36

GATE CS 2014 CS-1Regular LanguagesMCQ2 marks−2/3 if wrong
Which of the regular expressions given below represent the following DFA?

I) 0∗1(1+00∗1)∗0^*1(1+00^*1)^*
II) 0∗1∗1+11∗0∗10^*1^*1+11^*0^*1
III) (0+1)∗1(0+1)^*1
Question figure
Show answer without attempting

Answer: B

0/60 correct0 marks

Related topics in Theory of Computation