Regular Languages questions

Q7

GATE CS 2020 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following regular expressions represents the set of all binary strings with an odd number of 1’s?
Show answer without attempting

Answer: Marks to all

Q8

GATE CS 2020 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Consider the following statements.

I. If L1∪L2L_1 \cup L_2 is regular, then both L1L_1 and L2L_2 must be regular.
II. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: D

Q32

GATE CS 2020 CSRegular LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages.

L1={wxyx∣w,x,y∈(0+1)+}L_1 = \{wxyx \mid w, x, y \in (0+1)^+\}
L2={xy∣x,y∈(a+b)∗,∣x∣=∣y∣,x≠y}L_2 = \{xy \mid x, y \in (a+b)^*, |x| = |y|, x \ne y\}

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

Answer: A

Q51

GATE CS 2020 CSRegular LanguagesNAT2 marks
Consider the following language.

L={x∈{a,b}∗∣number of a’s in x is divisible by 2 but not divisible by 3}L = \{x \in \{a, b\}^* \mid \text{number of } a\text{'s in } x \text{ is divisible by 2 but not divisible by 3}\}

The minimum number of states in a DFA that accepts LL is __________.
Show answer without attempting

Answer: 6

0/40 correct0 marks

Related topics in Theory of Computation