Truth Tables, Universal Gates, and De Morgan’s Laws Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 7387 | Total Attempts: 9,527,684
| Questions: 15 | Updated: Dec 1, 2025
Please wait...
Question 1 / 15
0 %
0/100
Score 0/100
1) In a truth table, the number of rows for n Boolean variables is:

Explanation

For n Boolean variables, each variable can be 0 or 1, leading to 2^n possible combinations of inputs. The truth table must include all these combinations to fully define the function, so it has 2^n rows. Fixed row counts like 2, n, or n^2 are incorrect for variable n.

Submit
Please wait...
About This Quiz
Truth Tables, Universal Gates, And De Morgans Laws Quiz - Quiz

Ready to think like a hardware designer? This quiz focuses on deeper circuit ideas: universal gates (NAND and NOR), De Morgan–based rewrites, building NOT/AND/OR from just one gate type, and counting input combinations with 2ⁿ. You’ll answer questions about equivalences like how NAND relates to OR with inverted inputs, how... see moreto turn NOR into NOT, and why XOR is not a universal gate. By the end, you’ll have a clearer picture of how entire digital systems can be built from just a handful of flexible logic blocks. see less

2)
You may optionally provide this to label your report, leaderboard, or certificate.
2) The number of Boolean variables in a 3-variable function is:

Explanation

A 3-variable function explicitly has three Boolean variables, such as A, B, and C. The number of rows in its truth table is 2^3 = 8, but the variables themselves are three. Options like 2, 6, or 8 refer to other aspects but not the variable count.

Submit
3) A 3-input AND gate has inputs A, B, and C. What is its Boolean expression?

Explanation

A 3-input AND gate outputs 1 only if all inputs A, B, and C are 1. The Boolean expression for this is A · B · C, denoting logical AND. A + B + C is for OR, (A · B · C)' is for NAND, and A ⊕ B ⊕ C is for XOR.

Submit
4) A circuit takes inputs X and Y into an OR gate. The result is ANDed with Z. What is the expression?

Explanation

The OR gate computes X + Y, and this result is ANDed with Z, giving (X + Y) · Z. This order of operations is key; other expressions like X + (Y · Z) or X · Y + Z would require different gate arrangements.

Submit
5) A circuit has one input, A, which is fed into both inputs of a 2-input AND gate. What is the output expression?

Explanation

When both inputs of an AND gate are connected to the same signal A, the output is A because A AND A equals A. This is derived from Boolean algebra: A · A = A. It is not inversion, constant 1, or constant 0.

Submit
6) Which pair of gates are known as "universal gates" because they can be used to create any other logic gate?

Explanation

NAND and NOR gates are universal, meaning that by using only NAND gates or only NOR gates, you can construct any other logic gate, such as AND, OR, NOT, etc. This is not true for AND-OR, XOR-XNOR, or NOT-AND pairs alone.

Submit
7) How can you create a NOT gate using only a 2-input NAND gate?

Explanation

When both inputs of a NAND gate are tied to the same signal A, the output is (A · A)' = A', which is NOT A. This effectively creates a NOT gate. Connecting one input to 1 gives A', but it requires a constant 1, while tying both inputs is self-sufficient.

Submit
8) How can you create a NOT gate using only a 2-input NOR gate?

Explanation

When both inputs of a NOR gate are connected to the same signal A, the output is (A + A)' = A', which is NOT A. This forms a NOT gate. Connecting one input to 0 also works, but tying both inputs is a common method without external constants.

Submit
9) For which of the choices is the statement "any combinational logic circuit can be built using only one type of gate" true?

Explanation

NOR gates are universal gates, meaning that using only NOR gates, you can build any combinational logic circuit, including AND, OR, NOT, etc. NAND gates are also universal, but they aren't listed among the options. AND, XOR, or OR gates alone cannot construct all possible logic functions, making them non-universal gates.

Submit
10) According to De Morgan's Laws, a NAND gate (A · B)' is equivalent to:

Explanation

De Morgan's Law states that (A · B)' = A' + B'. This means a NAND gate is equivalent to an OR gate with inverted inputs. This law allows the transformation between AND-OR and NAND-NOR implementations in logic design.

Submit
11) According to De Morgan's Laws, a NOR gate (A + B)' is equivalent to:

Explanation

De Morgan's Law states that (A + B)' = A' · B'. This means a NOR gate is equivalent to an AND gate with inverted inputs. This is used to simplify circuits and convert between gate types.

Submit
12) An OR gate can be constructed from NOR gates by:

Explanation

To make an OR gate from NOR gates, first use a NOR gate with inputs A and B, which outputs (A + B)'. Then, invert this output using another NOR gate with both inputs tied to (A + B)', which gives ((A + B)')' = A + B. Thus, two NOR gates are used: one as NOR and one as an inverter.

Submit
13) Why is an XOR gate NOT a universal gate?

Explanation

A universal gate must be able to construct all other logic gates (AND, OR, NOT, etc.). While an XOR gate can function as a NOT gate when one input is held constant at 1, it cannot be used to create an AND gate or OR gate using only XOR gates. Without the ability to construct all basic logic functions, XOR is not considered a universal gate. NAND and NOR gates, by contrast, are universal because any logic function can be built using only NAND gates or only NOR gates.

Submit
14) The number of possible input combinations for a logic gate with 4 inputs is:

Explanation

For a gate with 4 inputs, each input can be 0 or 1, so the total combinations are 2^4 = 16. This is derived from the formula 2^n for n inputs. Options like 4, 8, or 32 are incorrect for n=4.

Submit
15) A 2-input XOR gate has its output connected to a NOT gate. What is the final expression?

Explanation

The XOR gate outputs A ⊕ B (often denoted by ⊕ or ⊕), and the NOT gate inverts it to (A ⊕ B)'. This is the XNOR operation, which outputs 1 when inputs are the same. Thus, the final expression is (A ⊕ B)'.

Submit
×
Saved
Thank you for your feedback!
15)
Your input helps us improve, and you’ll get your detailed results next.
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
In a truth table, the number of rows for n Boolean variables is:
The number of Boolean variables in a 3-variable function is:
A 3-input AND gate has inputs A, B, and C. What is its Boolean...
A circuit takes inputs X and Y into an OR gate. The result is ANDed...
A circuit has one input, A, which is fed into both inputs of a 2-input...
Which pair of gates are known as "universal gates" because they can be...
How can you create a NOT gate using only a 2-input NAND gate?
How can you create a NOT gate using only a 2-input NOR gate?
For which of the choices is the statement "any combinational logic...
According to De Morgan's Laws, a NAND gate (A · B)' is equivalent to:
According to De Morgan's Laws, a NOR gate (A + B)' is equivalent to:
An OR gate can be constructed from NOR gates by:
Why is an XOR gate NOT a universal gate?
The number of possible input combinations for a logic gate with 4...
A 2-input XOR gate has its output connected to a NOT gate. What is the...
Alert!

Advertisement