GATE Computer ScienceHardGATE CS · ISRO
A Mealy machine detects the sequence 1011 with overlap allowed and outputs 1 when the last four inputs are 1011. For the input stream 1011011101101011 (leftmost first), how many 1s does it output?
- A. 5
- B. 3
- C. 4
- D. 6
Correct answer: C. 4
Checking each window of four bits, the pattern 1011 ends at 4 positions (overlapping occurrences count).
More Digital Logic questions
- A 3-bit synchronous machine Q2Q1Q0 uses D flip-flops with D2 = Q1, D1 = Q0 and D0 = (Q2 ⊕ Q1)′. Starting from 001, how many distinct…
- A 5-input function F(A,B,C,D,E) is 1 exactly when the unsigned number ABCDE (A is the MSB, 0 counts as divisible) is divisible by 3 or by…
- What is the minimum total number of literals in a sum-of-products expression for F(A,B,C,D) = Σm(0,2,3,5,7,8,10,11,13,15) with don't-cares…
- How many Boolean functions of four variables are monotone (changing an input from 0 to 1 never changes the output from 1 to 0), including…
- How many Boolean functions of four variables are both monotone and self-dual?
- How many Boolean functions of four variables are symmetric (the output depends only on how many inputs are 1)?