What are the outputs of a half adder?
Show answer & solution
Answer: (A) Sum = A ⊕ B and Carry = A · B
A half adder adds two bits.
Electrical Engineering · Digital Electronics & Microprocessors
30 questions, each with the answer and a worked solution.
Practice interactively and track your score →What are the outputs of a half adder?
Answer: (A) Sum = A ⊕ B and Carry = A · B
A half adder adds two bits.
How many inputs does a full adder have?
Answer: (D) Three: A, B and carry-in
It produces sum and carry-out.
How can a full adder be constructed from half adders?
Answer: (C) Using two half adders and one OR gate
The OR gate combines the two carries.
What is the main disadvantage of a ripple carry adder?
Answer: (D) Carry propagation delay increases with the number of bits
Carry look-ahead adders reduce this delay.
What does a multiplexer do?
Answer: (A) Selects one of several input lines and passes it to a single output
Select lines choose the input.
How many select lines does an 8-to-1 multiplexer need?
Answer: (B) 3
2³ = 8 inputs.
What does a demultiplexer do?
Answer: (A) Directs one input to one of several outputs according to select lines
It is the reverse of a multiplexer.
How many outputs does a 3-to-8 line decoder have?
Answer: (C) 8
A decoder activates one of 2ⁿ outputs.
What does an encoder do?
Answer: (B) Converts an active input line into a binary code
A 8-to-3 encoder gives a 3-bit code.
What is the advantage of a priority encoder?
Answer: (D) It outputs the code of the highest-priority active input when several are active
It is used for interrupt handling.
What does a digital comparator do?
Answer: (C) Compares two binary numbers and indicates greater than, less than or equal
Magnitude comparators are used in control logic.
Which device converts a BCD input into signals to drive a seven-segment display?
Answer: (A) BCD-to-seven-segment decoder
Each output drives one segment.
What is a parity generator?
Answer: (B) A circuit that produces a parity bit for a group of data bits
It is built from XOR gates.
What are the outputs of a half subtractor with inputs A and B?
Answer: (D) Difference = A ⊕ B and Borrow = A′B
The borrow is 1 when A = 0 and B = 1.
What is a combinational circuit?
Answer: (B) A circuit whose outputs depend only on present inputs
Adders, decoders and multiplexers are combinational.
Why can a multiplexer be used to implement any Boolean function?
Answer: (A) Its data inputs can be set to 0, 1 or variables to generate any truth table
A 2ⁿ-to-1 MUX implements any n-variable function.
How many 4-to-1 multiplexers are needed to build a 16-to-1 multiplexer?
Answer: (B) 5
Four first-level MUXes feed one second-level MUX.
What is a carry look-ahead adder?
Answer: (C) An adder that generates carries in parallel to reduce delay
It uses generate and propagate signals.
What is a code converter?
Answer: (D) A circuit that converts data from one binary code to another, such as binary to Gray
Code converters are combinational circuits.
How many full adders are needed to add two 8-bit numbers in a ripple carry adder?
Answer: (C) 8
One full adder per bit position.
What is a hazard (glitch) in combinational logic?
Answer: (D) A brief unwanted output pulse caused by unequal path delays
Redundant terms in K-maps can remove static hazards.
What is the output of a 2-to-1 multiplexer when its select line S = 1 with inputs I0 and I1?
Answer: (A) I1
Y = S′I0 + SI1.
How many 2-input AND gates are needed in a 2-to-4 line decoder?
Answer: (C) 4
Each output is one minterm of the two inputs.
What is the main use of a decoder in microprocessor systems?
Answer: (B) Address decoding to select memory or I/O chips
Chip select signals come from decoders.
What is the output of a 4-bit magnitude comparator when A = 1010 and B = 1001?
Answer: (D) A > B
10 is greater than 9.
What is the purpose of the enable input in a decoder?
Answer: (C) To activate or disable all outputs
Enable inputs allow decoders to be cascaded.
What does a BCD adder do?
Answer: (B) Adds two BCD digits and corrects results above 9 by adding 6
The correction gives a valid BCD result with carry.
What is a programmable logic array (PLA)?
Answer: (A) A device with programmable AND and OR arrays for implementing logic functions
PAL devices have a programmable AND array and fixed OR array.
What is an FPGA?
Answer: (C) A field-programmable gate array of configurable logic blocks and interconnections
FPGAs are programmed using hardware description languages.
What is the output of a full adder for A = 1, B = 1 and carry-in = 1?
Answer: (D) Sum = 1 and carry = 1
1 + 1 + 1 = 3 = binary 11.