Moore-and-Mealy-Machine

Question 1
The major difference between a Moore and a Mealy machine is that
A
the output of the former depends on the present state and the current input
B
the output of the former depends only on the present state
C
the output of the former depends only on the current input
D
none of the above
       Theory-of-Computation       Moore-and-Mealy-Machine       NIELIT Technical Assistant_2016_march
Question 2
Consider a Moore machine M whose digraph is :

Then L(M), the language accepted by the machine M, is the set of all strings having :
A
two or more b’s.
B
three or more b’s.
C
two or more a’s.
D
three or more a’s.
       Theory-of-Computation       Moore-and-Mealy-Machine       UGC NET CS 2007-Dec-Paper-2
Question 2 Explanation: 
In the given state diagram it can be clearly noticed that the minimum string that is accepted by the moore machine M is "bb". So the language can contain 0 or more number of a's and 2 or more number of b's.
There are 2 questions to complete.
PHP Code Snippets Powered By : XYZScripts.com