Regular Languages questions

Q23

GATE CS 2024 CS-1Regular LanguagesMSQ1 mark
Let L1,L2L_1, L_2 be two regular languages and L3L_3 a language which is not regular. Which of the following statements is/are always TRUE?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q50

GATE CS 2024 CS-1Regular LanguagesMSQ2 marks
Consider the 5-state DFA MM accepting the language L(M)⊂(0+1)∗L(M) \subset (0 + 1)^* shown below. For any string w∈(0+1)∗w \in (0 + 1)^* let n0(w)n_0(w) be the number of 0′s0's in ww and n1(w)n_1(w) be the number of 1′s1's in ww.
Which of the following statements is/are FALSE?
Question figure
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q61

GATE CS 2024 CS-1Regular LanguagesNAT2 marks
Consider the following two regular expressions over the alphabet \{0,1\}:
r=0∗+1∗r = 0^* + 1^*
s=01∗+10∗s = 01^* + 10^*
The total number of strings of length less than or equal to 5, which are neither in rr nor in ss, is _________
Show answer without attempting

Answer: 44

Q22

GATE CS 2024 CS-2Regular LanguagesMCQ1 mark−1/3 if wrong
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
Question figure
Show answer without attempting

Answer: A

Q41

GATE CS 2024 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Let MM be the 5-state NFA with ϵ\epsilon-transitions shown in the diagram below.

Which one of the following regular expressions represents the language accepted by MM ?
Question figure
Show answer without attempting

Answer: B

Q62

GATE CS 2024 CS-2Regular LanguagesNAT2 marks
Let L1L_1 be the language represented by the regular expression b∗ab∗(ab∗ab∗)∗b^*ab^*(ab^*ab^*)^* and L2={w∈(a+b)∗∣∣w∣≤4}L_2 = \{ w \in (a + b)^* \mid |w| \le 4\}, where ∣w∣|w| denotes the length of string ww. The number of strings in L2L_2 which are also in L1L_1 is ___________
Show answer without attempting

Answer: 15

0/60 correct0 marks

Related topics in Theory of Computation