Unit 5 - Practice Quiz

ECE249 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is a combinational logic circuit that performs the addition of two single bits called?

Adders Easy
A. Decoder
B. Full Adder
C. Multiplexer
D. Half Adder

2 What are the two outputs of a Half Adder circuit?

Adders Easy
A. Quotient and Remainder
B. Sum and Carry
C. Input and Output
D. Sum and Borrow

3 A Full Adder is a combinational circuit that performs the arithmetic sum of how many input bits?

Adders Easy
A. One bit
B. Three bits
C. Four bits
D. Two bits

4 What are the two outputs of a Half Subtractor?

Subtractors Easy
A. Sum and Borrow
B. Difference and Carry
C. Sum and Carry
D. Difference and Borrow

5 A full subtractor is a combinational circuit that performs subtraction between __ bits.

Subtractors Easy
A. Four
B. Two
C. One
D. Three

6 What is the primary function of a digital magnitude comparator?

Comparators Easy
A. To add two binary numbers
B. To subtract two binary numbers
C. To select one input from many
D. To compare the magnitudes of two binary numbers

7 A standard 1-bit comparator has how many outputs?

Comparators Easy
A. 3
B. 1
C. 4
D. 2

8 A Multiplexer (MUX) is also known as a __.

Multiplexers and De-multiplexers Easy
A. Encoder
B. Data Distributor
C. Data Selector
D. Decoder

9 A multiplexer with 3 select lines can have a maximum of how many data input lines?

Multiplexers and De-multiplexers Easy
A. 9
B. 3
C. 6
D. 8

10 What is the primary function of a De-multiplexer (DEMUX)?

Multiplexers and De-multiplexers Easy
A. To convert one input to many outputs
B. To encode data
C. To convert many inputs to one output
D. To add data

11 A 1-to-4 De-multiplexer has how many select lines?

Multiplexers and De-multiplexers Easy
A. 4
B. 1
C. 3
D. 2

12 A decoder is a combinational circuit that converts binary information from 'n' input lines to a maximum of __ unique output lines.

Decoders Easy
A. 2n
B.
C.
D. n

13 A BCD-to-7-segment decoder is a common application used to drive what kind of device?

Decoders Easy
A. A motor
B. A speaker
C. A memory chip
D. A numeric display

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

Decoders Easy
A. 8 inputs, 8 outputs
B. 3 inputs, 3 outputs
C. 8 inputs, 3 outputs
D. 3 inputs, 8 outputs

15 Which combinational circuit performs the reverse operation of a decoder?

Encoders Easy
A. Encoder
B. Adder
C. Multiplexer
D. Comparator

16 An octal-to-binary encoder (8-to-3 encoder) has 8 input lines and how many output lines?

Encoders Easy
A. 1
B. 4
C. 8
D. 3

17 What is the main advantage of a priority encoder over a simple encoder?

Encoders Easy
A. It has fewer inputs
B. It is faster
C. It can handle multiple active inputs based on priority
D. It uses less power

18 What is the primary purpose of a parity bit?

Parity circuits Easy
A. Error detection
B. Data compression
C. Data encryption
D. Data storage

19 For the binary data 1010, what would the parity bit be for an even parity system?

Parity circuits Easy
A. 1
B. Cannot be determined
C. 0
D. Both 0 and 1

20 What kind of logic gate can be used to implement a simple odd parity generator?

Parity circuits Easy
A. NAND gate
B. XOR gate
C. OR gate
D. AND gate

21 In a full adder, if the inputs are A=1, B=1, and Carry-in ()=1, what are the values of the Sum (S) and Carry-out ()?

Adders Medium
A. S=1, =1
B. S=0, =0
C. S=1, =0
D. S=0, =1

22 In a carry lookahead adder, the 'propagate' signal () is generated for the stage. What does signify?

Adders Medium
A. The sum bit for the stage is 1.
B. The addition at the stage results in an overflow.
C. The stage will propagate a carry from the stage to the stage.
D. The stage will generate a carry-out regardless of the carry-in.

23 How many full adders (FAs) and half adders (HAs) are required to construct a 5-bit parallel adder?

Adders Medium
A. 5 HAs and 0 FAs
B. 3 FAs and 2 HAs
C. 4 FAs and 1 HA
D. 5 FAs and 0 HAs

24 To implement a 4-bit parallel subtractor for the operation using the 2's complement method, what components are needed in conjunction with a 4-bit parallel adder?

Subtractors Medium
A. Four inverters (NOT gates) and setting the initial carry-in () to 0.
B. Four inverters (NOT gates) and setting the initial carry-in () to 1.
C. A 4-bit comparator and four AND gates.
D. Four XOR gates and setting the initial carry-in () to 0.

25 For a full subtractor with inputs Minuend (A) = 0, Subtrahend (B) = 1, and Borrow-in () = 1, what are the outputs for Difference (D) and Borrow-out ()?

Subtractors Medium
A. D = 0, = 0
B. D = 0, = 1
C. D = 1, = 0
D. D = 1, = 1

26 What will be the outputs of a 2-bit magnitude comparator for the binary inputs A = 10 and B = 11?

Comparators Medium
A. , ,
B. , ,
C. , ,
D. , ,

27 To cascade two 4-bit comparators (IC 7485) to create an 8-bit comparator, how are the cascading inputs of the more significant 4-bit block connected?

Comparators Medium
A. The input is tied to HIGH, and the and inputs are tied to LOW.
B. They are connected directly to the bits of the input numbers.
C. They are connected to the corresponding outputs (, , ) of the less significant 4-bit block.
D. They are all tied to LOW (GND).

28 The logic expression for the output of a 1-bit comparator with inputs A and B is:

Comparators Medium
A.
B.
C.
D.

29 How can the Boolean function be implemented using an 8x1 multiplexer?

Multiplexers and De-multiplexers Medium
A. Connect A, B, C to select lines respectively, and connect data inputs to HIGH (1) and others to LOW (0).
B. Connect A, B, C to data inputs and use minterms as select lines.
C. Connect C to the select line, and use A and B to create logic for the data inputs.
D. Connect A, B, C to select lines respectively, and connect data inputs to HIGH (1) and others to LOW (0).

30 What is the minimum number of 2x1 multiplexers required to implement a 4x1 multiplexer?

Multiplexers and De-multiplexers Medium
A. 5
B. 3
C. 4
D. 2

31 In a 1-to-8 demultiplexer, if the data input line is HIGH, and the select lines are set to 110, which output line will be active (HIGH)?

Multiplexers and De-multiplexers Medium
A.
B.
C.
D.

32 Which of these devices can be used as a parallel-to-serial data converter?

Multiplexers and De-multiplexers Medium
A. Encoder
B. Multiplexer
C. Decoder
D. Demultiplexer

33 To implement the Carry-out () of a full adder using a 3-to-8 decoder (with inputs A, B, ) and an OR gate, which output lines from the decoder should be connected to the OR gate?

Decoders Medium
A. 2, 3, 4, 5
B. 0, 1, 2, 4
C. 1, 2, 4, 7
D. 3, 5, 6, 7

34 A BCD to 7-segment decoder is a combinational circuit that has:

Decoders Medium
A. 10 input lines and 7 output lines
B. 7 input lines and 4 output lines
C. 4 input lines and 10 output lines
D. 4 input lines and 7 output lines

35 Which of the following is a primary application of a decoder circuit?

Decoders Medium
A. Serial-to-parallel data conversion
B. Data selection
C. Implementing arithmetic functions
D. Address decoding for memory systems

36 In a 4-to-2 priority encoder, the inputs are , with having the highest priority. If inputs and are both HIGH simultaneously (and is LOW), what will be the binary output?

Encoders Medium
A. 00
B. 01
C. 10
D. 11

37 What is a major disadvantage of a standard encoder (non-priority encoder) that a priority encoder overcomes?

Encoders Medium
A. It requires more logic gates.
B. It can only handle a limited number of input lines.
C. It has a slower propagation delay.
D. Ambiguity when multiple inputs are active simultaneously.

38 For the 7-bit data word 1011001, what is the value of the parity bit if an even parity system is used?

Parity circuits Medium
A. 1
B. Parity cannot be determined.
C. It can be either 0 or 1.
D. 0

39 A parity checker circuit for an even parity system receives the 5-bit message 10101 (4 data bits and 1 parity bit). What does the checker's output indicate?

Parity circuits Medium
A. A double-bit error is detected.
B. The data is valid.
C. An error is detected.
D. No error is detected.

40 A parity generator circuit for an 8-bit data word can be constructed using a cascade of which type of logic gates?

Parity circuits Medium
A. NAND gates
B. XOR gates
C. AND gates
D. XNOR gates

41 A 16-bit Carry Lookahead Adder is constructed using four 4-bit CLA blocks and a lookahead carry generator. Assuming each 2-input gate has a delay of and a 3-input XOR for the sum has a delay of , what is the total delay to compute the sum bit ? (Assume propagate/generate signals for each bit are computed in , and all lookahead logic is implemented in two gate levels).

Adders Hard
A.
B.
C.
D.

42 When performing an 8-bit, 2's complement subtraction using an adder circuit (i.e., computing ), overflow is detected under which specific condition of the carries associated with the Most Significant Bit (MSB, bit 7)?

Subtractors Hard
A. The carry-in to the MSB () is equal to the carry-out of the MSB ().
B. The carry-out of the MSB () is 1, regardless of the carry-in.
C. The carry-in to the MSB () is not equal to the carry-out of the MSB ().
D. The carry-in to the MSB () is 0 and the carry-out of the MSB () is 1.

43 What are the correct data inputs ( to ) to implement the Boolean function using a single 8:1 MUX with A, B, and C as the select lines ( respectively)? The inputs must be connected to one of or $0$.

Multiplexers and De-multiplexers Hard
A.
B.
C.
D.

44 To construct a 5-to-32 decoder using four 3-to-8 decoders (with active-high enables) and one 2-to-4 decoder, how should the components be interconnected? Let the 5 input bits be .

Decoders Hard
A. Connect as common inputs to all 3-to-8 decoders. Use the 2-to-4 decoder to select the final output from the 3-to-8 decoders.
B. Connect to the 2-to-4 decoder, and use its outputs to enable three of the 3-to-8 decoders. are common inputs.
C. Connect to the 2-to-4 decoder, and use its four outputs to enable each of the four 3-to-8 decoders respectively. are common inputs to all 3-to-8 decoders.
D. Use the 2-to-4 decoder as a pre-decoder for inputs . Its outputs feed into the address lines of the 3-to-8 decoders.

45 In a cascadable 1-bit comparator for inputs A and B, the logic expression for the output 'A is less than B' () is given by . Here, is the 'less than' output from the previous, less significant bit stage. What are the correct Boolean expressions for X and Y?

Comparators Hard
A. ,
B. ,
C. ,
D. ,

46 For an 8-to-3 priority encoder with active-high inputs through (where has the highest priority) and outputs , what is the output if the inputs and are all asserted (set to 1) simultaneously, and all other inputs are 0?

Encoders Hard
A. The output is the logical OR of the codes for 6, 5, and 2.
B. 010
C. 110
D. 101

47 What single type of 2-input logic gate can be used to build a multi-bit parity generator or checker circuit?

Parity circuits Hard
A. OR
B. NAND
C. AND
D. XOR

48 A full adder is implemented using two 4:1 multiplexers and one inverter. One MUX generates the Sum () and the other generates the Carry-out (). If inputs A and B are connected to the select lines and of both MUXs, what are the correct data inputs for the MUX generating the Sum bit? Let be the carry-in.

Adders Hard
A. Inputs for MUX inputs respectively.
B. Inputs for MUX inputs respectively.
C. Inputs for MUX inputs respectively.
D. Inputs for MUX inputs respectively.

49 You need to implement a system that routes a single data line D to one of four outputs () based on select lines A and B, such that , , , . Can this be implemented with a single standard 1-to-4 demultiplexer?

Multiplexers and De-multiplexers Hard
A. Yes, by connecting to select line and B to .
B. Yes, by connecting A to select line , B to , and using external OR gates.
C. No, because the output terms are not mutually exclusive minterms of the select lines.
D. Yes, but it requires complex logic to drive the select lines from A and B.

50 To build a fast 24-bit magnitude comparator using only 4-bit magnitude comparator ICs (e.g., 7485), what is the minimum number of ICs required for a two-level (lookahead) cascading architecture?

Comparators Hard
A. 7 ICs
B. 12 ICs
C. 9 ICs
D. 6 ICs

51 A full subtractor with inputs A, B, and Bin (Borrow-in) is to be implemented using a 3-to-8 decoder and two additional gates. The outputs are Difference (D) and Borrow-out (Bout). Which gates are required?

Decoders Hard
A. Two 4-input AND gates.
B. A 4-input NAND gate for D and a 4-input NAND gate for Bout.
C. A 4-input OR gate for D and a 4-input OR gate for Bout.
D. A 4-input XOR gate for D and a 3-input AND gate for Bout.

52 Which of the following 8-bit 2's complement subtractions () will result in an arithmetic overflow?

Subtractors Hard
A. (+100) , (-100)
B. (+100) , (+50)
C. (-100) , (+20)
D. (-127) , (+1)

53 A 32:1 multiplexer is to be built from 8:1 multiplexers and one 4:1 multiplexer. What is the total number of 8:1 MUXs required and how are they connected?

Multiplexers and De-multiplexers Hard
A. The 4:1 MUX is in the first stage, selecting between four 8:1 MUXs.
B. Five 8:1 MUXs are used in total, with four in the first stage.
C. Two 8:1 MUXs and one 4:1 MUX are sufficient.
D. Four 8:1 MUXs in the first stage and the 4:1 MUX in the second stage.

54 You need to design a 16-to-4 priority encoder using two 8-to-3 priority encoders (with Enable In 'EI', Enable Out 'EO', and Group Select 'GS' outputs). How are the two encoders (U1 for inputs I0-I7, U2 for I8-I15) connected for U2 to have higher priority?

Encoders Hard
A. The outputs of both encoders are OR-ed together. The EO of U2 is connected to the EI of U1.
B. It's not possible; an additional 2:1 MUX is required to select between the outputs.
C. The GS output of U2 is connected to the EI (active low) of U1. The MSB of the final 4-bit output is the GS of U2.
D. The EO of U1 is connected to the EI of U2. The final MSB is determined by an external AND gate.

55 A 16-bit word is checked for even parity using a tree of 2-input XOR gates. What is the maximum propagation delay of the circuit if the delay of a single XOR gate is 5 ns?

Parity circuits Hard
A. 15 ns
B. 80 ns
C. 25 ns
D. 20 ns

56 To implement a full adder using a 3-to-8 decoder and external gates, which minterms must be combined to produce the Sum (S) and Carry-out (Cout) outputs? The inputs to the decoder are A, B, and Cin.

Adders Hard
A. ;
B. ;
C. ;
D. ;

57 Design a 2-bit comparator that only has one output, Z, which is HIGH (1) if the 2-bit number A () is strictly greater than the 2-bit number B (). What is the simplified logic expression for Z?

Comparators Hard
A.
B.
C.
D.

58 A 2:1 MUX can be used as a universal logic element. To implement an XNOR gate for inputs A and B, where A is connected to the select line S, what signals should be connected to the data inputs and ?

Multiplexers and De-multiplexers Hard
A.
B.
C.
D.

59 A logic circuit must produce a HIGH output whenever the 4-bit input represents a BCD digit that is a prime number (2, 3, 5, 7). Which of the following is a minimal implementation using a BCD-to-Decimal decoder (e.g., 7442, with active-low outputs to ) and a single standard logic gate?

Decoders Hard
A. A 4-input NAND gate connected to outputs
B. A 6-input NOR gate connected to the non-prime outputs.
C. A 4-input AND gate connected to outputs
D. A 4-input OR gate connected to outputs

60 How can a full subtractor (Inputs: A, B, Bin; Outputs: D, Bout) be implemented using only 2:1 multiplexers? What is the minimum number of MUXs required?

Subtractors Hard
A. 4 MUXs
B. 5 MUXs
C. 3 MUXs
D. 2 MUXs