GATE Computer ScienceHardGATE CS (PYQ pattern)
A Mealy machine has states A (start), B, C and one input X; entries are next state / output. A: X=0 → A/0, X=1 → B/0. B: X=0 → C/0, X=1 → B/1. C: X=0 → A/1, X=1 → B/0. For every input sequence, its output after a bit is 1 exactly when
- A. the last two bits are 11 or the last three bits are 001
- B. the last two bits are 11 or 00
- C. the last three bits are 111 or 100
- D. the last two bits are 11 or the last three bits are 100
Correct answer: D. the last two bits are 11 or the last three bits are 100
B means 'last bit 1', C means 'last two bits 10', A means 'neither' (start, or after 00, or after 100). From B a 1 outputs 1 (pattern 11); from C a 0 outputs 1 (pattern 100). Nothing else outputs 1, so overlapping 11 and 100 are detected (e.g. 1100 outputs 0101).
More Digital Logic questions
- A 3-bit register Q2Q1Q0 is clocked synchronously with D2 = Q1, D1 = Q0 and D0 = (Q2 + Q1)' (NOR). Starting at 000 it follows a repeating…
- A Moore machine has states A to H, start state A and one input X. Each row lists: state, next state for X=0, next state for X=1, output. A…
- A Moore machine outputs 1 exactly when the last four serial input bits are 0101 or 1010 (overlapping allowed) and 0 otherwise, including…
- A circuit receives a BCD digit ABCD (A is the MSB; inputs 1010 to 1111 never occur and may be treated as don't-cares) and outputs F = 1…
- F(A,B,C,D) = 1 when exactly two or exactly three of the four inputs are 1. How many literals does its minimal sum-of-products contain…
- A 2-bit × 2-bit unsigned multiplier has inputs A1A0 and B1B0 and outputs P3P2P1P0. Each output is realised separately by its own minimal…