Flip-flops, counters and registers
Electronics · 19 questions and templates for IIT JAM Physics, in order from warm-up to top rank. Check each answer, then read the full solution.
Loading questions… (they need JavaScript; nothing you type is sent anywhere)
Written questions with solutions
The same questions as a list, so you can print them or read without the practice box. Templates (fresh numbers) appear only in the practice box above.
-
MCQWarm-up
For an SR latch built from two cross-coupled NOR gates, which input combination is not allowed?Answer and solution
Answer: C
With both inputs 1, both NOR outputs are forced to 0, so and are no longer complements; and when both inputs return to 0 together the final state depends on which gate is faster. holds the state. (For a NAND latch the forbidden pair is on its active-low inputs.)Why people get this wrong: is the memory (hold) condition for a NOR latch.
-
MCQWarm-up
An edge-triggered JK flip-flop has . At each active clock edge its output- toggles (changes to the opposite state)
- resets to 0
- sets to 1
- stays the same
Answer and solution
Answer: A
The JK characteristic equation gives for . This is how a JK flip-flop becomes a T flip-flop and a divide-by-2.Why people get this wrong: Thinking is forbidden as in the SR latch; resolving that problem is the reason the JK exists.
-
MCQWarm-up
The minimum number of flip-flops for a binary counter that counts through 12 states (mod-12) is- 3
- 12
- 6
- 4
Answer and solution
Answer: D
flip-flops give states. , so 4 are needed (4 of the 16 states unused).Why people get this wrong: A ring counter would need 12 and a Johnson counter 6, but the question asks for a binary counter.
-
NATWarm-up
A Johnson (twisted-ring) counter is built with 5 flip-flops. The number of distinct states in its normal sequence is ______.Answer and solution
Answer: 10
In a Johnson counter the complement of the last output is fed back to the first. Ones fill in from one end and then zeros: states for . A plain ring counter with one circulating 1 has only .Why people get this wrong: Confusing it with the ring counter (5) or a binary counter (32).
-
MCQWarm-up
The characteristic equation of a D flip-flop isAnswer and solution
Answer: B
At the clock edge the output takes the value of , whatever it was before. So . is the T flip-flop with .Why people get this wrong: The D flip-flop has no hold input: holding needs fed back (or a clock enable).
-
MSQWarm-up
Which statements comparing ripple (asynchronous) and synchronous counters are correct?- In a synchronous counter every flip-flop is clocked by the same clock
- In a ripple counter the propagation delays add up along the chain
- Decoding the outputs of a ripple counter can give short false pulses (glitches)
- Synchronous counters need no logic gates at all
Answer and solution
Answer: A, B, C
Ripple counters clock each flip-flop from the previous output, so the last one changes delays after the clock and passes through wrong intermediate states (011 goes to 010, 000, then 100). A synchronous counter changes all bits together, but it needs gates to decide which bits toggle.Why people get this wrong: Synchronous counters trade gates for speed and clean outputs.
-
MCQWarm-up
A state machine has 10 states. With one-hot encoding (exactly one flip-flop set per state), it needs- flip-flops
- flip-flops
- flip-flops
- flip-flops
Answer and solution
Answer: B
One-hot gives each state its own flip-flop, so 10 states need 10 flip-flops. Binary encoding would need only , but one-hot makes the next-state and output logic simpler and faster, which is why it is common in FPGAs.Why people get this wrong: 4 is the binary-encoded count; the question fixes the encoding.
-
NATStandard
A 4-bit binary ripple counter is clocked at kHz. The frequency of the square wave at its most significant output is ______ kHz.Answer and solution
Answer: 1 kHz
Each flip-flop divides by 2, so the fourth output runs at kHz, with a 50% duty cycle.Why people get this wrong: Dividing by 4 (the number of flip-flops) instead of .
-
MCQStandard
The characteristic equation of a JK flip-flop isAnswer and solution
Answer: C
From the table: holds (), sets, resets, toggles. The K-map of against simplifies to : set when 0 if , stay 1 unless .Why people get this wrong: Check the toggle case: must give .
-
MCQStandard
To make a T flip-flop from a JK flip-flop, connect- and
- and
- and
Answer and solution
Answer: B
With : gives hold, gives toggle, exactly the T flip-flop. , gives a D flip-flop instead.Why people get this wrong: , is the JK-to-D conversion.
-
NATStandard
A 4-bit ripple up-counter has its asynchronous clear driven by a NAND gate whose inputs are and ( is the least significant bit). Starting from 0000, it cycles through how many stable states?Answer and solution
Answer: 10
The first count with is 1010 = 10. As soon as it appears the counter clears to 0000, so 1010 lasts only a few nanoseconds. Stable states: 0 to 9: a decade (mod-10) counter.Why people get this wrong: Counting the momentary state 1010 as an eleventh state.
-
MCQStandard
A level-triggered JK flip-flop with suffers the race-around condition when- the clock is high for longer than the flip-flop's propagation delay, so it toggles more than once per pulse
- the clock is too slow overall
- the inputs change after the clock goes low
- it is replaced by an edge-triggered device
Answer and solution
Answer: A
While the clock is high the flip-flop is transparent: it toggles, the new output feeds back through , and toggles it again, repeatedly, until the clock falls. The final state is unpredictable. Master-slave and edge-triggered designs allow only one change per clock.Why people get this wrong: The fix is a short sampling window, not a slower clock.
-
MCQStandard
What distinguishes a D latch from an edge-triggered D flip-flop?- The latch has no enable input
- The latch can only store a 1
- The latch is transparent: its output follows for as long as the enable is active, while the flip-flop samples only at the clock edge
- There is no difference in behaviour
Answer and solution
Answer: C
A latch is level sensitive; a flip-flop is edge sensitive. In a pipeline of latches clocked together, data could race through several stages in one clock phase; flip-flops prevent that.Why people get this wrong: Both store one bit; the difference is when they listen to the input.
-
MCQStandard
A ring counter of 6 flip-flops holds a single 1 that circulates, clocked at MHz. The waveform at any one flip-flop output has- frequency MHz and duty cycle
- frequency MHz and duty cycle
- frequency MHz and duty cycle
- frequency MHz and duty cycle
Answer and solution
Answer: A
The single 1 returns to the same flip-flop every 6 clocks, so each output repeats at MHz. It is high for 1 clock out of 6: duty cycle . (A Johnson counter of the same length would give 50% duty at MHz.)Why people get this wrong: A 50% duty cycle belongs to the Johnson (twisted-ring) counter.
-
NATExam level
A seconds counter showing 00 to 59 in BCD is built as a decade counter (units digit) whose carry clocks a mod-6 counter (tens digit), each with the fewest flip-flops possible. The total number of flip-flops is ______.Answer and solution
Answer: 7
A decade counter needs flip-flops and a mod-6 counter : in all. A single binary mod-60 counter would need only , but its output would not be BCD and would need conversion before driving a display.Why people get this wrong: is right for a binary counter, not for two separate BCD digits.
-
MCQHard
A mechanical switch bounces several times when pressed. A common way to get one clean transition is- feed it to a T flip-flop
- use a single-pole double-throw switch driving an SR latch
- connect it directly to a counter
- add a second switch in series
Answer and solution
Answer: B
The first contact with one throw sets (or resets) the latch; bounces on that same contact only repeat the same command, and the moving contact cannot reach the other throw during the bounce. The output changes once. (An RC filter plus Schmitt trigger is the other classic fix.)Why people get this wrong: A T flip-flop would toggle on every bounce.