Difficulty: Easy
Correct Answer: 5
Explanation:
Introduction / Context:
Binary counters implemented with flip-flops have a number of states equal to 2^n, where n is the number of flip-flops (bits). Determining the number of flip-flops needed for a target modulus is a foundational skill for digital timing and sequencing design.
Given Data / Assumptions:
Concept / Approach:
Find the smallest n such that 2^n ≥ 32. Because 2^5 = 32, five flip-flops are exactly sufficient and produce the required modulus without wasted states.
Step-by-Step Solution:
Verification / Alternative check:
Simulate a 5-bit counter; it cycles through 00000 to 11111 (32 states) before repeating.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing decimal modulus with binary powers; forgetting that extra states appear if n is larger than necessary.
Final Answer:
5
Discussion & Comments