Answer: D
Correct answer: 8
A decoder activates exactly one output for each combination of its inputs, so \( n \) input lines give \( 2^{n} \) outputs. With three inputs that is \[ 2^{3} = 8. \] Such a device is called a 3-to-8 decoder. Its principal use is address decoding: the address lines of a processor are fed to a decoder whose outputs act as chip-select signals, so that exactly one memory or peripheral device responds to any given address. Decoders usually have an enable input, which allows several to be cascaded to decode a larger address space. The inverse device is an encoder, which takes \( 2^{n} \) inputs and produces an \( n \)-bit code. A priority encoder resolves the case of several inputs being active at once by responding to the highest, which is how interrupt controllers work. A related device is the seven-segment decoder, which converts a four-bit BCD digit into the seven signals that drive a display.