Quiz: Logic Minimization and K-Maps
Test your understanding of Karnaugh maps, logic simplification, and optimization techniques with these questions.
1. What is the primary purpose of a Karnaugh map?
- To implement circuits on breadboards
- To visually simplify Boolean expressions
- To generate Verilog code automatically
- To measure propagation delay
Show Answer
The correct answer is B. A Karnaugh map (K-map) is a graphical method for simplifying Boolean expressions. It arranges truth table values in a grid where adjacent cells differ by one variable, making it easy to identify and group terms for simplification.
Concept Tested: Karnaugh Map
2. In a K-map, what property must adjacent cells have?
- They must both contain 1s
- They must differ by exactly one variable
- They must be in the same row
- They must have the same output value
Show Answer
The correct answer is B. Adjacent cells in a K-map differ by exactly one variable (one bit of the input). This adjacency property is what allows grouping—when you group adjacent 1s, the variable that changes is eliminated from the resulting term.
Concept Tested: Adjacent Cells
3. How many cells does a 4-variable K-map contain?
- 4
- 8
- 16
- 32
Show Answer
The correct answer is C. A K-map has one cell for each possible input combination. With 4 variables, there are 2⁴ = 16 combinations, so the K-map has 16 cells arranged in a 4×4 grid.
Concept Tested: K-Map 4 Variable
4. What is a "don't care" condition in a K-map?
- An error in the truth table
- An input combination that cannot occur or whose output doesn't matter
- A cell that must always be 0
- A grouping that cannot be simplified
Show Answer
The correct answer is B. Don't care conditions (marked X or d) represent input combinations where the output is unspecified—either because those inputs never occur or because the output value doesn't affect system behavior. They can be treated as 0 or 1 to help form larger groups.
Concept Tested: Don't Care Condition
5. What is a prime implicant?
- The smallest possible group in a K-map
- A group that cannot be combined with any other group to form a larger group
- A group that contains only 1s
- The first group identified in a K-map
Show Answer
The correct answer is B. A prime implicant is a product term (group of 1s) that cannot be combined with another term to eliminate a variable—it's maximal. You cannot make it larger while still covering only 1s.
Concept Tested: Prime Implicant
6. What makes a prime implicant "essential"?
- It covers the most minterms
- It is required to complete the design
- It covers at least one minterm not covered by any other prime implicant
- It uses the fewest variables
Show Answer
The correct answer is C. An essential prime implicant covers at least one minterm that no other prime implicant covers. It must be included in any minimal solution because there's no alternative way to cover that minterm.
Concept Tested: Essential Prime Implicant
7. What is the valid group size in a K-map?
- Any number of cells
- Only 1, 2, 4, 8, or 16 (powers of 2)
- Only even numbers
- Only odd numbers
Show Answer
The correct answer is B. K-map groups must contain 2ⁿ cells (1, 2, 4, 8, 16, etc.) and must be rectangular. This constraint ensures that each grouping eliminates exactly n variables from the product term.
Concept Tested: K-Map Grouping Rules
8. What is a static hazard in a combinational circuit?
- A circuit that never changes output
- A momentary glitch when the output should remain constant
- A permanent manufacturing defect
- A circuit with no inputs
Show Answer
The correct answer is B. A static hazard occurs when an output that should remain constant (either 0 or 1) momentarily glitches to the opposite value during an input transition. This happens due to unequal propagation delays through different circuit paths.
Concept Tested: Static Hazard
9. In K-map minimization, can groups wrap around edges?
- No, groups must be contained within the grid
- Yes, because edge cells are logically adjacent
- Only in 4-variable K-maps
- Only for don't care conditions
Show Answer
The correct answer is B. K-map edges wrap around because cells on opposite edges differ by only one variable. The top row is adjacent to the bottom row, and the leftmost column is adjacent to the rightmost column. Corner cells can even form a group of 4.
Concept Tested: K-Map Grouping Rules
10. What is the advantage of the Quine-McCluskey method over K-maps?
- It produces better results
- It is faster for 2-variable functions
- It can handle functions with more than 4-6 variables
- It requires no computation
Show Answer
The correct answer is C. While K-maps become impractical beyond 5-6 variables, the Quine-McCluskey algorithm is a tabular, systematic method that works for any number of variables. It's also easier to automate in software.
Concept Tested: Quine-McCluskey Method