Regular Languages questions

Q16

GATE CS 2016 CS-1Regular LanguagesMCQ1 mark−1/3 if wrong
Which of the following languages is generated by the given grammar?
S⟶aS∣bS∣ϵS \longrightarrow aS \mid bS \mid \epsilon
Show answer without attempting

Answer: D

Q18

GATE CS 2016 CS-1Regular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?
Show answer without attempting

Answer: B

Q16

GATE CS 2016 CS-2Regular LanguagesNAT1 mark
The number of states in the minimum sized DFA that accepts the language defined by the regular expression
(0+1)∗(0+1)(0+1)∗(0+1)^*(0+1)(0+1)^*
is _________.
Show answer without attempting

Answer: 2.0

Q17

GATE CS 2016 CS-2Regular LanguagesMCQ1 mark−1/3 if wrong
Language L1L_1 is defined by the grammar: S1→aS1b∣εS_1 \to aS_1b \mid \varepsilon
Language L2L_2 is defined by the grammar: S2→abS2∣εS_2 \to abS_2 \mid \varepsilon

Consider the following statements:
PP: L1L_1 is regular
QQ: L2L_2 is regular

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

Answer: C

Q42

GATE CS 2016 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the following two statements:

I. If all states of an NFA are accepting states then the language accepted by the NFA is Σ∗\Sigma^*.
II. There exists a regular language AA such that for all languages BB, A∩BA \cap B is regular.

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

Answer: B

0/50 correct0 marks

Related topics in Theory of Computation