1What 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
Correct Answer: Half Adder
Explanation:
A Half Adder is a circuit designed to add two single binary digits. It produces a sum and a carry output.
Incorrect! Try again.
2What 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
Correct Answer: Sum and Carry
Explanation:
A half adder adds two bits (A and B) and generates a Sum bit (S) and a Carry bit (C).
Incorrect! Try again.
3A 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
Correct Answer: Three bits
Explanation:
A Full Adder adds three bits: two input bits (A, B) and a carry-in bit () from a previous stage.
Incorrect! Try again.
4What 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
Correct Answer: Difference and Borrow
Explanation:
A half subtractor calculates the difference between two single bits (A and B) and produces a Difference output (D) and a Borrow output ().
Incorrect! Try again.
5A full subtractor is a combinational circuit that performs subtraction between __ bits.
Subtractors
Easy
A.Four
B.Two
C.One
D.Three
Correct Answer: Three
Explanation:
A full subtractor performs subtraction between two input bits (A, B) and also considers a borrow-in bit () from a lower significant stage.
Incorrect! Try again.
6What 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
Correct Answer: To compare the magnitudes of two binary numbers
Explanation:
A magnitude comparator is a combinational circuit that compares two binary numbers (A and B) to determine if A > B, A = B, or A < B.
Incorrect! Try again.
7A standard 1-bit comparator has how many outputs?
Comparators
Easy
A.3
B.1
C.4
D.2
Correct Answer: 3
Explanation:
A 1-bit comparator typically has three outputs to indicate the relationship between the two input bits: A is greater than B (A > B), A is equal to B (A = B), and A is less than B (A < B).
Incorrect! Try again.
8A Multiplexer (MUX) is also known as a __.
Multiplexers and De-multiplexers
Easy
A.Encoder
B.Data Distributor
C.Data Selector
D.Decoder
Correct Answer: Data Selector
Explanation:
A multiplexer is called a Data Selector because it selects one of its many input lines and directs it to a single output line based on the value of the select lines.
Incorrect! Try again.
9A 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
Correct Answer: 8
Explanation:
The relationship between the number of select lines (n) and the number of input lines (m) in a multiplexer is . For n=3, the number of inputs is .
Incorrect! Try again.
10What 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
Correct Answer: To convert one input to many outputs
Explanation:
A de-multiplexer performs the reverse operation of a multiplexer. It takes a single input line and distributes it to one of several output lines, as determined by the select lines. It is also called a data distributor.
Incorrect! Try again.
11A 1-to-4 De-multiplexer has how many select lines?
Multiplexers and De-multiplexers
Easy
A.4
B.1
C.3
D.2
Correct Answer: 2
Explanation:
For a de-multiplexer, the number of output lines (m) is related to the number of select lines (n) by . For m=4, we need , which means n=2 select lines are required.
Incorrect! Try again.
12A 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
Correct Answer:
Explanation:
A decoder takes 'n' binary inputs and activates one of its outputs corresponding to the binary code on the input lines.
Incorrect! Try again.
13A 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
Correct Answer: A numeric display
Explanation:
A BCD-to-7-segment decoder takes a 4-bit Binary-Coded Decimal (BCD) input and generates the appropriate outputs to light up segments on a 7-segment display to show a decimal digit (0-9).
Incorrect! Try again.
14How 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
Correct Answer: 3 inputs, 8 outputs
Explanation:
The name "3-to-8 decoder" directly specifies its structure: 3 input lines and 8 output lines. This follows the -to- rule where n=3.
Incorrect! Try again.
15Which combinational circuit performs the reverse operation of a decoder?
Encoders
Easy
A.Encoder
B.Adder
C.Multiplexer
D.Comparator
Correct Answer: Encoder
Explanation:
An encoder is a combinational circuit that performs the inverse operation of a decoder. It typically has input lines and 'n' output lines.
Incorrect! Try again.
16An 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
Correct Answer: 3
Explanation:
An octal-to-binary encoder converts one of 8 active input lines into a 3-bit binary code. It has 8 inputs and 3 outputs.
Incorrect! Try again.
17What 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
Correct Answer: It can handle multiple active inputs based on priority
Explanation:
A simple encoder functions correctly only when one input is active. A priority encoder includes a priority function, so if two or more inputs are active, the output corresponds to the input with the highest designated priority.
Incorrect! Try again.
18What is the primary purpose of a parity bit?
Parity circuits
Easy
A.Error detection
B.Data compression
C.Data encryption
D.Data storage
Correct Answer: Error detection
Explanation:
Parity circuits are used for detecting single-bit errors in data transmission. A parity bit is added to a block of data to make the total number of 1s either even (even parity) or odd (odd parity).
Incorrect! Try again.
19For 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
Correct Answer: 0
Explanation:
In an even parity system, the parity bit is set to make the total number of 1s even. The data 1010 already has two 1s (an even number), so the parity bit is 0. The transmitted data would be 10100.
Incorrect! Try again.
20What 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
Correct Answer: XOR gate
Explanation:
An XOR (Exclusive OR) gate's output is 1 if an odd number of its inputs are 1. This property makes it ideal for generating both even and odd parity bits. For odd parity, the output of cascaded XOR gates is the parity bit.
Incorrect! Try again.
21In 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
Correct Answer: S=1, =1
Explanation:
The sum is calculated as . So, . The carry-out is calculated as . So, . Essentially, in decimal, which is in binary, giving a sum of 1 and a carry of 1.
Incorrect! Try again.
22In 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.
Correct Answer: The stage will propagate a carry from the stage to the stage.
Explanation:
The propagate signal is 1 when exactly one of the inputs or is 1. In this case, if there is a carry-in (), it will be propagated to the next stage as a carry-out (), because or results in a carry-out only if is 1.
Incorrect! Try again.
23How 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
Correct Answer: 4 FAs and 1 HA
Explanation:
An N-bit parallel adder adds two N-bit numbers. The least significant bit (LSB) position requires only a half adder as there is no carry-in. The remaining N-1 positions each require a full adder to accommodate the carry-in from the previous stage. For a 5-bit adder, this means 1 HA for the LSB and 4 FAs for the remaining bits.
Incorrect! Try again.
24To 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.
Correct Answer: Four inverters (NOT gates) and setting the initial carry-in () to 1.
Explanation:
Subtraction using 2's complement is performed as . The 2's complement of B is found by inverting all its bits (1's complement) and adding 1. The inverters find the 1's complement of B, and adding 1 is achieved by setting the initial carry-in () of the parallel adder to 1.
Incorrect! Try again.
25For 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
Correct Answer: D = 0, = 1
Explanation:
The equations for a full subtractor are and . For A=0, B=1, =1: . And . The operation is effectively , which results in a difference of 0 with a borrow of 1 from the next higher bit.
Incorrect! Try again.
26What 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., ,
Correct Answer: , ,
Explanation:
For A = = 10 and B = = 11. The comparison starts from the most significant bit (MSB). Here, and , so they are equal. We then check the next bit, and . Since , the overall result is A < B. Therefore, the output is HIGH (1), and the other two outputs (, ) are LOW (0).
Incorrect! Try again.
27To 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).
Correct Answer: They are connected to the corresponding outputs (, , ) of the less significant 4-bit block.
Explanation:
When cascading comparators, the result of comparing the lower-order bits is used to decide the final outcome only if the higher-order bits are equal. Therefore, the outputs of the less significant comparator are connected to the cascading inputs of the more significant comparator.
Incorrect! Try again.
28The logic expression for the output of a 1-bit comparator with inputs A and B is:
Comparators
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The output should be HIGH (1) only when A is 1 and B is 0. This condition is described by the Boolean AND operation between A and the complement of B, which is (or ).
Incorrect! Try again.
29How 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).
Correct Answer: Connect A, B, C to select lines respectively, and connect data inputs to HIGH (1) and others to LOW (0).
Explanation:
For an 8x1 MUX with A, B, C as select lines ( where A is MSB), the input corresponding to the selected binary number appears at the output. To implement the function , we need the output to be HIGH for minterms 1 (001), 3 (011), 5 (101), and 6 (110). Thus, we connect the corresponding data inputs () to logic HIGH (1) and all other data inputs to LOW (0).
Incorrect! Try again.
30What 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
Correct Answer: 3
Explanation:
A 4x1 MUX has 4 data inputs and 2 select lines (). You can use two 2x1 MUXes for the first stage, with as their common select line. One MUX takes inputs and the other takes . The outputs of these two MUXes then become the inputs to a third 2x1 MUX, which uses the other select line, , to make the final selection. Total MUXes = 2 + 1 = 3.
Incorrect! Try again.
31In 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.
Correct Answer:
Explanation:
A demultiplexer routes a single data input to one of several output lines based on the value of the select lines. The binary value of the select lines corresponds to the decimal number 6. Therefore, the data input will be routed to the output line . Since the data input is HIGH, will be HIGH and all other outputs will be LOW.
Incorrect! Try again.
32Which 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
Correct Answer: Multiplexer
Explanation:
A multiplexer (MUX) has multiple data input lines and a single output line. By sequentially changing the select line inputs, it can select each parallel data input one by one and pass it to the single output line. This process effectively converts parallel data into a serial stream of data.
Incorrect! Try again.
33To 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
Correct Answer: 3, 5, 6, 7
Explanation:
The Carry-out of a full adder is HIGH for the input combinations (A, B, ) of 011, 101, 110, and 111. These correspond to minterms . A 3-to-8 decoder with inputs A, B, will activate the output lines corresponding to these minterms. Therefore, connecting decoder outputs to an OR gate will implement the Carry-out function.
Incorrect! Try again.
34A 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
Correct Answer: 4 input lines and 7 output lines
Explanation:
The input to this type of decoder is a 4-bit Binary Coded Decimal (BCD) number, which represents decimal digits 0-9. The output drives a 7-segment display, which requires 7 distinct signals (one for each segment: a, b, c, d, e, f, g). Therefore, the decoder has 4 input lines and 7 output lines.
Incorrect! Try again.
35Which 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
Correct Answer: Address decoding for memory systems
Explanation:
A decoder takes an N-bit binary input and activates exactly one of its outputs. This is ideal for memory address decoding, where the address from the CPU is used as the decoder's input to select a specific memory chip or location by activating a single chip-select line.
Incorrect! Try again.
36In 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
Correct Answer: 10
Explanation:
A priority encoder outputs the binary code corresponding to the highest-priority input that is currently active. In this scenario, both and are active. Since has a higher priority than , the encoder will ignore the input and produce the output corresponding to , which is binary 10 (decimal 2).
Incorrect! Try again.
37What 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.
Correct Answer: Ambiguity when multiple inputs are active simultaneously.
Explanation:
In a standard encoder, if more than one input is active at the same time, the output can be incorrect or ambiguous because the circuit is typically designed assuming only one input is active. A priority encoder resolves this by establishing a priority hierarchy, ensuring a valid output that corresponds to the highest-priority active input.
Incorrect! Try again.
38For 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
Correct Answer: 0
Explanation:
In an even parity system, the parity bit is set to make the total number of '1's in the transmitted word (data + parity bit) an even number. The data word 1011001 has four '1's, which is already an even number. To keep the total count of '1's even, the parity bit must be set to 0.
Incorrect! Try again.
39A 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.
Correct Answer: An error is detected.
Explanation:
An even parity checker verifies if the total number of '1's in the received message is even. The message 10101 contains three '1's, which is an odd number. Since the count of '1's is not even as expected, the checker circuit will signal that an error has been detected.
Incorrect! Try again.
40A 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
Correct Answer: XOR gates
Explanation:
A parity bit generator determines if the number of 1s in a data word is odd or even. This is the exact function of cascading XOR gates. The output of a multi-input XOR gate is 1 if an odd number of inputs are 1, and 0 if an even number of inputs are 1. This output can be used directly as an odd parity bit or inverted for an even parity bit.
Incorrect! Try again.
41A 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.
Correct Answer:
Explanation:
The total delay is the sum of delays along the critical path for .
Generate for all 16 bits: .
Generate group propagate/generate signals for each of the four 4-bit blocks (2 gate levels): . Total elapsed: .
The lookahead carry generator computes carries into each block, e.g., (2 gate levels): . Total elapsed: .
The final 4-bit block computes the internal carry using (2 gate levels): . Total elapsed: .
The final sum bit is computed using a 3-input XOR, which takes .
Total delay = (Delay to get ) + (Delay for final sum) = .
Incorrect! Try again.
42When 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.
Correct Answer: The carry-in to the MSB () is not equal to the carry-out of the MSB ().
Explanation:
For n-bit 2's complement addition (which is used to perform subtraction), an arithmetic overflow occurs if and only if the carry-in to the most significant bit column () is different from the carry-out from the most significant bit column (). For an 8-bit operation (bits 0 to 7), this condition is , or .
Incorrect! Try again.
43What 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.
Correct Answer:
Explanation:
An implementation table is created with MUX inputs () corresponding to select line values ABC=000..111. For each input , we check the pair of minterms determined by and . For , we check m(0) and m(1). Since only m(1) is in the function, must be . For , we check m(4) and m(5). Since only m(4) is in the function, must be . Following this method for all inputs yields the sequence .
Incorrect! Try again.
44To 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.
Correct Answer: 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.
Explanation:
To create a larger decoder, the higher-order input bits are used to select which smaller decoder is active, while the lower-order bits are fed in parallel to all smaller decoders. Here, the low-order bits are connected to the address inputs of all four 3-to-8 decoders. The high-order bits are used as inputs to the 2-to-4 decoder. Each of the four outputs of the 2-to-4 decoder is then used to assert the enable pin of one of the 3-to-8 decoders, activating the correct block of 8 outputs.
Incorrect! Try again.
45In 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.,
Correct Answer: ,
Explanation:
The overall 'A < B' condition is true if at the current bit position , we have and (which is ), OR if the current bits are equal, (which is ), AND the less significant bits have already established that A < B (i.e., ). Therefore, the expression is . Comparing this to the given form , we find that and (the equality condition).
Incorrect! Try again.
46For 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
Correct Answer: 110
Explanation:
A priority encoder outputs the binary code corresponding to the highest-priority input that is currently active. Among the asserted inputs and , the input with the highest priority is . The binary code for the index 6 is . Therefore, the output will be . The active lower-priority inputs ( and ) are ignored.
Incorrect! Try again.
47What 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
Correct Answer: XOR
Explanation:
The Exclusive-OR (XOR) gate's output is 1 if an odd number of its inputs are 1. By cascading XOR gates, we can determine if the total number of 1s in a binary word is odd or even. For an even parity generator, the output of the XOR chain is the required parity bit. For a parity checker, the XOR of the data bits and the parity bit will be 0 if the parity is correct.
Incorrect! Try again.
48A 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.
Correct Answer: Inputs for MUX inputs respectively.
Explanation:
The sum bit of a full adder is . With A and B as select lines for a 4:1 MUX, the output is determined by the data inputs for each combination of A and B.
When AB=00 ( selected), . So, .
When AB=01 ( selected), . So, .
When AB=10 ( selected), . So, .
When AB=11 ( selected), . So, .
The required inputs are therefore .
Incorrect! Try again.
49You 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.
Correct Answer: No, because the output terms are not mutually exclusive minterms of the select lines.
Explanation:
A standard 1-to-4 DEMUX with select lines S1, S0 has outputs corresponding to the four minterms: . The required outputs () are not minterms of A and B. For example, if A=1 and B=1, both and would need to be active, but a demultiplexer can only activate one output line at a time. The outputs are not mutually exclusive based on A and B, so a single DEMUX is insufficient.
Incorrect! Try again.
50To 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
Correct Answer: 7 ICs
Explanation:
A simple ripple-cascade of six 4-bit comparators would work but would be slow. For a faster two-level lookahead architecture, the first level consists of six 4-bit comparators, each handling a 4-bit chunk of the 24-bit inputs. The second level requires logic to combine the six sets of outputs () based on priority. A single additional comparator IC can be configured to act as this priority logic for the outputs of the first level, making a total of 7 ICs (6 in level 1, 1 in level 2).
Incorrect! Try again.
51A 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.
Correct Answer: A 4-input OR gate for D and a 4-input OR gate for Bout.
Explanation:
The truth table for a full subtractor yields the sum-of-products expressions for the outputs in terms of minterms of inputs A, B, and Bin. The Difference is and the Borrow-out is . A 3-to-8 decoder generates all 8 minterms. To create the final functions, the corresponding active-high decoder outputs must be combined using OR gates. Thus, a 4-input OR gate is needed for D, and another 4-input OR gate is needed for Bout.
Incorrect! Try again.
52Which 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)
Correct Answer: (+100) , (-100)
Explanation:
An overflow in subtraction occurs when the result exceeds the representable range [-128, 127]. We evaluate as .
In option A, . This is outside the valid range. Computationally, this is the addition of two positive numbers ( and ) which yields a negative result (), a clear sign of overflow.
The other options result in values within the range: B) -120, C) +50, D) -128. All are valid 8-bit 2's complement numbers.
Incorrect! Try again.
53A 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.
Correct Answer: Four 8:1 MUXs in the first stage and the 4:1 MUX in the second stage.
Explanation:
To create a 32:1 MUX, we need 32 data inputs and 5 select lines ( to ). The first stage can use four 8:1 MUXs to handle all 32 inputs (8 inputs each). The three lower-order select lines () are connected in parallel to these four MUXs. This stage produces four outputs. The second stage uses the 4:1 MUX to select one of these four outputs, using the two higher-order select lines () as its select inputs.
Incorrect! Try again.
54You 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.
Correct Answer: 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.
Explanation:
For cascading, the higher-priority encoder (U2) is checked first. If any of U2's inputs (I8-I15) are active, its GS output goes high. This GS signal serves two purposes: 1) It becomes the Most Significant Bit (MSB) of the final 4-bit output, indicating the active input is in the upper range. 2) It is used to disable the lower-priority encoder U1 by connecting to its active-low Enable In (EI). If no inputs are active in U2, its GS is low, which enables U1 to process inputs I0-I7.
Incorrect! Try again.
55A 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
Correct Answer: 20 ns
Explanation:
A tree structure is the most efficient way to compute the XOR of many inputs. For N inputs, the number of levels in a binary tree of 2-input gates is . For N=16, this is levels of logic.
Level 1: 8 gates, Delay = 5 ns.
Level 2: 4 gates, Total Delay = 10 ns.
Level 3: 2 gates, Total Delay = 15 ns.
Level 4: 1 gate, Total Delay = 20 ns.
The total delay is the number of levels multiplied by the delay per gate: .
Incorrect! Try again.
56To 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.;
Correct Answer: ;
Explanation:
By analyzing the truth table for a full adder with inputs A, B, Cin, we can write the sum-of-products expressions for the outputs. The Sum bit S is 1 for minterms 1 (001), 2 (010), 4 (100), and 7 (111). The Carry-out bit Cout is 1 for minterms 3 (011), 5 (101), 6 (110), and 7 (111). A decoder generates these minterms at its outputs, which are then ORed together to form the final functions.
Incorrect! Try again.
57Design 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.
Correct Answer:
Explanation:
The condition for A > B can be expressed logically. It is true if the most significant bit of A is greater than B's (, which means , or ), OR if the most significant bits are equal (, which is ) AND the next bit of A is greater than B's (, which means ). Combining these conditions gives the expression .
Incorrect! Try again.
58A 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.
Correct Answer:
Explanation:
The output of a 2:1 MUX is . We want to implement . By connecting A to the select line S, the MUX equation becomes . To make this equal to the XNOR function, we match the terms. The term requires . The term requires . Therefore, the inputs must be and .
Incorrect! Try again.
59A 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
Correct Answer: A 4-input NAND gate connected to outputs
Explanation:
The required function is . The decoder provides active-low outputs, so for input '2', output is LOW, while others are HIGH. We want if the input is 2 OR 3 OR 5 OR 7. This means we want if is LOW, OR is LOW, etc. The expression is . By De Morgan's theorem, this is equivalent to . This function is directly implemented by a 4-input NAND gate whose inputs are connected to the decoder's prime number outputs.
Incorrect! Try again.
60How 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
Correct Answer: 5 MUXs
Explanation:
A full subtractor's logic is and .
Implementing the three-input XOR for D requires two levels of 2-input XORs. Each 2-input XOR can be made with one 2:1 MUX. Total for D: 2 MUXs.
For Bout, we can express it as . This can be implemented with a 2:1 MUX with select line A, and inputs and .
Implementing the OR gate () requires one MUX. Implementing the AND gate () requires another MUX.
Total for Bout: 1 (final stage) + 1 (OR) + 1 (AND) = 3 MUXs.
Grand total for the full subtractor = 2 MUXs (for D) + 3 MUXs (for Bout) = 5 MUXs.