1.

A binary string is divisible by 4 if and only if it ends with:(a) 100(b) 1000(c) 1100(d) 0011I got this question in an online quiz.The above asked question is from Applications of DFA in portion Finite Automata of Automata Theory

Answer»

The correct answer is (a) 100

Explanation: If the STRING is DIVISIBLE by four, it surely ENDS with the substring ‘100’ while a binary string divisible by 2 would surely end with the substring ‘10’.



Discussion

No Comment Found

Related InterviewSolutions