1.

Which of the following x is accepted by the given DFA (x is a binary string ∑= {0,1})?(a) divisible by 3(b) divisible by 2(c) divisible by 2 and 3(d) divisible by 3 and 2This question was addressed to me during a job interview.I'd like to ask this question from The Language of DFA topic in portion Finite Automata of Automata Theory

Answer»

The CORRECT answer is (d) divisible by 3 and 2

Best EXPLANATION: The given DFA ACCEPTS all the BINARY STRINGS such that they are divisible by 3 and 2.Thus, it can be said that it also accepts all the strings which is divisible by 6.



Discussion

No Comment Found

Related InterviewSolutions