Engineering, Management, Agriculture and Veterinary MCQs are now live. FPSC, PPSC, EPE, IELTS & GRE coming soon.

Digital Electronics & Microprocessors: Combinational Circuits

Electrical Engineering · Digital Electronics & Microprocessors

30 questions, each with the answer and a worked solution.

Practice interactively and track your score →
Question 1

What are the outputs of a half adder?

  1. Sum = A ⊕ B and Carry = A · B
  2. Sum = AB and Carry = A + B
  3. Sum = A + B and Carry = A ⊕ B
  4. Sum = A′B and Carry = AB′
Show answer & solution

Answer: (A) Sum = A ⊕ B and Carry = A · B

A half adder adds two bits.

Question 2

How many inputs does a full adder have?

  1. Four
  2. One
  3. Two
  4. Three: A, B and carry-in
Show answer & solution

Answer: (D) Three: A, B and carry-in

It produces sum and carry-out.

Question 3

How can a full adder be constructed from half adders?

  1. Using one AND gate
  2. Using one half adder
  3. Using two half adders and one OR gate
  4. Using three half adders only
Show answer & solution

Answer: (C) Using two half adders and one OR gate

The OR gate combines the two carries.

Question 4

What is the main disadvantage of a ripple carry adder?

  1. It cannot add
  2. It is too fast
  3. It uses too few gates
  4. Carry propagation delay increases with the number of bits
Show answer & solution

Answer: (D) Carry propagation delay increases with the number of bits

Carry look-ahead adders reduce this delay.

Question 5

What does a multiplexer do?

  1. Selects one of several input lines and passes it to a single output
  2. Distributes one input to many outputs
  3. Converts binary to decimal
  4. Stores data
Show answer & solution

Answer: (A) Selects one of several input lines and passes it to a single output

Select lines choose the input.

Question 6

How many select lines does an 8-to-1 multiplexer need?

  1. 2
  2. 3
  3. 4
  4. 8
Show answer & solution

Answer: (B) 3

2³ = 8 inputs.

Question 7

What does a demultiplexer do?

  1. Directs one input to one of several outputs according to select lines
  2. Combines many inputs into one
  3. Adds numbers
  4. Stores bits
Show answer & solution

Answer: (A) Directs one input to one of several outputs according to select lines

It is the reverse of a multiplexer.

Question 8

How many outputs does a 3-to-8 line decoder have?

  1. 3
  2. 6
  3. 8
  4. 16
Show answer & solution

Answer: (C) 8

A decoder activates one of 2ⁿ outputs.

Question 9

What does an encoder do?

  1. Stores data
  2. Converts an active input line into a binary code
  3. Adds two numbers
  4. Converts binary code into one active output
Show answer & solution

Answer: (B) Converts an active input line into a binary code

A 8-to-3 encoder gives a 3-bit code.

Question 10

What is the advantage of a priority encoder?

  1. It works only with one input
  2. It produces decimal outputs
  3. It ignores all inputs
  4. It outputs the code of the highest-priority active input when several are active
Show answer & solution

Answer: (D) It outputs the code of the highest-priority active input when several are active

It is used for interrupt handling.

Question 11

What does a digital comparator do?

  1. Adds numbers
  2. Stores numbers
  3. Compares two binary numbers and indicates greater than, less than or equal
  4. Counts pulses
Show answer & solution

Answer: (C) Compares two binary numbers and indicates greater than, less than or equal

Magnitude comparators are used in control logic.

Question 12

Which device converts a BCD input into signals to drive a seven-segment display?

  1. BCD-to-seven-segment decoder
  2. Comparator
  3. Shift register
  4. Multiplexer
Show answer & solution

Answer: (A) BCD-to-seven-segment decoder

Each output drives one segment.

Question 13

What is a parity generator?

  1. A clock
  2. A circuit that produces a parity bit for a group of data bits
  3. A memory
  4. A counter
Show answer & solution

Answer: (B) A circuit that produces a parity bit for a group of data bits

It is built from XOR gates.

Question 14

What are the outputs of a half subtractor with inputs A and B?

  1. Difference = A′B and Borrow = A ⊕ B
  2. Difference = AB and Borrow = A + B
  3. Difference = A + B and Borrow = AB
  4. Difference = A ⊕ B and Borrow = A′B
Show answer & solution

Answer: (D) Difference = A ⊕ B and Borrow = A′B

The borrow is 1 when A = 0 and B = 1.

Question 15

What is a combinational circuit?

  1. A circuit with memory
  2. A circuit whose outputs depend only on present inputs
  3. A circuit with a clock only
  4. A circuit using flip-flops
Show answer & solution

Answer: (B) A circuit whose outputs depend only on present inputs

Adders, decoders and multiplexers are combinational.

Question 16

Why can a multiplexer be used to implement any Boolean function?

  1. Its data inputs can be set to 0, 1 or variables to generate any truth table
  2. It uses analog signals
  3. It contains flip-flops
  4. It has memory
Show answer & solution

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.

Question 17

How many 4-to-1 multiplexers are needed to build a 16-to-1 multiplexer?

  1. 4
  2. 5
  3. 8
  4. 16
Show answer & solution

Answer: (B) 5

Four first-level MUXes feed one second-level MUX.

Question 18

What is a carry look-ahead adder?

  1. A counter
  2. A subtractor
  3. An adder that generates carries in parallel to reduce delay
  4. An adder with ripple carry
Show answer & solution

Answer: (C) An adder that generates carries in parallel to reduce delay

It uses generate and propagate signals.

Question 19

What is a code converter?

  1. A clock generator
  2. A memory chip
  3. A counter
  4. A circuit that converts data from one binary code to another, such as binary to Gray
Show answer & solution

Answer: (D) A circuit that converts data from one binary code to another, such as binary to Gray

Code converters are combinational circuits.

Question 20

How many full adders are needed to add two 8-bit numbers in a ripple carry adder?

  1. 2
  2. 4
  3. 8
  4. 16
Show answer & solution

Answer: (C) 8

One full adder per bit position.

Question 21

What is a hazard (glitch) in combinational logic?

  1. A memory error
  2. A permanent fault
  3. A power failure
  4. A brief unwanted output pulse caused by unequal path delays
Show answer & solution

Answer: (D) A brief unwanted output pulse caused by unequal path delays

Redundant terms in K-maps can remove static hazards.

Question 22

What is the output of a 2-to-1 multiplexer when its select line S = 1 with inputs I0 and I1?

  1. I1
  2. I0
  3. I0 + I1
  4. 0
Show answer & solution

Answer: (A) I1

Y = S′I0 + SI1.

Question 23

How many 2-input AND gates are needed in a 2-to-4 line decoder?

  1. 2
  2. 3
  3. 4
  4. 8
Show answer & solution

Answer: (C) 4

Each output is one minterm of the two inputs.

Question 24

What is the main use of a decoder in microprocessor systems?

  1. Generating clocks
  2. Address decoding to select memory or I/O chips
  3. Counting pulses
  4. Storing data
Show answer & solution

Answer: (B) Address decoding to select memory or I/O chips

Chip select signals come from decoders.

Question 25

What is the output of a 4-bit magnitude comparator when A = 1010 and B = 1001?

  1. A < B
  2. A = B
  3. Undefined
  4. A > B
Show answer & solution

Answer: (D) A > B

10 is greater than 9.

Question 26

What is the purpose of the enable input in a decoder?

  1. To store data
  2. To set the clock
  3. To activate or disable all outputs
  4. To change the number of outputs
Show answer & solution

Answer: (C) To activate or disable all outputs

Enable inputs allow decoders to be cascaded.

Question 27

What does a BCD adder do?

  1. Adds binary numbers only
  2. Adds two BCD digits and corrects results above 9 by adding 6
  3. Stores BCD digits
  4. Subtracts numbers
Show answer & solution

Answer: (B) Adds two BCD digits and corrects results above 9 by adding 6

The correction gives a valid BCD result with carry.

Question 28

What is a programmable logic array (PLA)?

  1. A device with programmable AND and OR arrays for implementing logic functions
  2. A memory chip only
  3. An analog filter
  4. A counter
Show answer & solution

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.

Question 29

What is an FPGA?

  1. A fixed logic gate
  2. A memory only
  3. A field-programmable gate array of configurable logic blocks and interconnections
  4. A power transistor
Show answer & solution

Answer: (C) A field-programmable gate array of configurable logic blocks and interconnections

FPGAs are programmed using hardware description languages.

Question 30

What is the output of a full adder for A = 1, B = 1 and carry-in = 1?

  1. Sum = 1 and carry = 0
  2. Sum = 0 and carry = 1
  3. Sum = 0 and carry = 0
  4. Sum = 1 and carry = 1
Show answer & solution

Answer: (D) Sum = 1 and carry = 1

1 + 1 + 1 = 3 = binary 11.

Practice these 30 questions interactively →