Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Question Bank for GATE Computer Science Engineering  >  Test: Finite Automata: Regular Languages- 1 - Computer Science Engineering (CSE) MCQ

Test: Finite Automata: Regular Languages- 1 - Computer Science Engineering (CSE) MCQ


Test Description

9 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: Finite Automata: Regular Languages- 1

Test: Finite Automata: Regular Languages- 1 for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: Finite Automata: Regular Languages- 1 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Finite Automata: Regular Languages- 1 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Finite Automata: Regular Languages- 1 below.
Solutions of Test: Finite Automata: Regular Languages- 1 questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: Finite Automata: Regular Languages- 1 solutions in Hindi for Question Bank for GATE Computer Science Engineering course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Finite Automata: Regular Languages- 1 | 9 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Finite Automata: Regular Languages- 1 - Question 1

Which of the following is false?

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 1

There are some NFA's for which no DFA can be constructed.
Explanation:

Option 3 is false because every NFA (Nondeterministic Finite Automaton) can be converted into an equivalent DFA (Deterministic Finite Automaton). This conversion is known as the subset construction or powerset construction.

The subset construction algorithm allows us to construct a DFA that recognizes the same language as a given NFA. Therefore, for any NFA, it is always possible to construct a DFA that accepts the same language.

Hence, the correct answer is 3. There are no NFAs for which no DFA can be constructed.

Test: Finite Automata: Regular Languages- 1 - Question 2

Let r= ab*c*and r= (a*b+c)*and r3 = (a+b+c)*. Then which of the following is true

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 2

ac ∈ L(r1), since we can take b* as ∈ and c* as c. ac ∈ L (r3), since (a + b + c ) * includes all combinations of a, b and c.
ac ∉ L(r2) since whenever (a * b + c)* is taken to include a, “a is always followed by b".
a*b = b, ab, aab, .... & so on.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Finite Automata: Regular Languages- 1 - Question 3

Let ∑ = {a, b}, r1 = a(a + b)* and r2 = b(a + b)*. Which of the following is true?

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 3

L(r1) is the set of all string starting with ‘a’.
L(r2) is the set of all starting with ‘b’.
Since any word belonging to ∑* either starts with “ a ” or starts with " b ” or is “∈ ” , therefore 

Test: Finite Automata: Regular Languages- 1 - Question 4

Which of the following statements are true?
(i) abcd ∈ L((b*a*)* (d*c*)*)
(ii) abcd ∈ L((d*c*b*a*)*)
(iii) abcd ∈ L((a*b*a*c*d*)*)

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 4

Note that
  gives all the combinations of a and b followed by all the combinations of c and d, for  
will generate all strings with combination of a, b, c, b and d.

Test: Finite Automata: Regular Languages- 1 - Question 5

Which of the following are regular languages?
(i) The language  w has an odd number of b’s}.
(ii) The language  w has an even number of b’s).
(iii) The language  has an even number of b’s and odd number of a’s).

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 5


As we can construct the DFA for the given languages, hence all of the given languages are regular.

Test: Finite Automata: Regular Languages- 1 - Question 6

Which of the following regular expression corresponds to the language of all strings over the alphabet {a, b) that contains exactly two a’s
(i) aa
(ii) ab*a
(iii) b* ab*a

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 6

Explanation:
A regular expression describes the language over some alphabet.
(i) aa: This regular expression matches the strings "aa" only. It does not cover the cases where there are b's in between or around the a's. So, it does not represent all strings over the alphabet {a, b} that contains exactly two a’s.
(ii) ab*a: This regular expression matches strings like "aa", "aba", "abba", etc. It allows for zero or more b's between two a's and hence, it corresponds to the language of all strings over the alphabet {a, b} that contains exactly two a’s.
(iii) b*ab*a: This regular expression matches strings like "aa", "aba", "abba", "baa", "baba", etc. It allows for zero or more b's before, between, and after two a's and hence, it corresponds to the language of all strings over the alphabet {a, b} that contains exactly two a’s.

Therefore, only (ii) and (iii) correctly represent the language of all strings over the alphabet {a, b} that contains exactly two a’s.

The correct answer is  (ii) and (iii) only.
 

Test: Finite Automata: Regular Languages- 1 - Question 7

Which of the following regular expression corresponds to the language of all strings over the alphabet {a, b} that do not end with ab?

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 7

Choice ‘a’ is incorrect since it does not include the string “a”, “b” and "∈” (all of which do not end with ab).
None of choices 'c' or ‘d ’ accept the string ‘a ’, So they can’t represent specified language.

Test: Finite Automata: Regular Languages- 1 - Question 8

What is regular expression corresponding to the language of strings of even lengths over the alphabet of {a, b}?

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 8

The regular expression corresponding to the language of strings of even lengths over the alphabet of {a, b} is ((a + b)2)* which is equivalent to (aa + bb + ba + ab)*. In choice (b) the string ‘ab’ is not present. In choice (c) the string ‘aa’ is not present. In choice (d) odd length strings are also acceptable.

Test: Finite Automata: Regular Languages- 1 - Question 9

How many minimum number of states are required in the DFA (over the alphabet {a, b}) accepting all the strings with the number of a’s divisible by 4 and number of b’s divisible by 5?

Detailed Solution for Test: Finite Automata: Regular Languages- 1 - Question 9

For DFA accepting all the strings with number of a’s divisible by 4; four states are required similarly for DFA accepting all the strings with number of b’s divisible by 5, five states are required and for their combination, states will be multiplied. So 5 x 4 = 20 states will be required.

63 videos|7 docs|165 tests
Information about Test: Finite Automata: Regular Languages- 1 Page
In this test you can find the Exam questions for Test: Finite Automata: Regular Languages- 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Finite Automata: Regular Languages- 1, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)