Difficulty: Easy
Correct Answer: 3
Explanation:
Introduction / Context:
 Microcontrollers often have limited I/O. Encoders allow multiple sources to be represented as a smaller set of lines. An 8-to-3 priority encoder outputs a 3-bit code corresponding to the highest-priority active input, reducing the required MCU input pins.
Given Data / Assumptions:
Concept / Approach:
 An 8-to-3 encoder maps 8 inputs to a 3-bit binary index (since 2^3 = 8). With priority, if multiple inputs assert simultaneously, the highest-priority one determines the output code. The MCU reads the 3-bit value to know which source is active, conserving pins.
Step-by-Step Solution:
Verification / Alternative check:
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Discussion & Comments