Exit Chapter 03 · Boolean Logic — Quiz

Playing as a guest? to earn XP and track your progress.

Question 1 of 56 0 correct so far

Boolean Logic Quiz

Q1.

Who developed Boolean logic (Boolean algebra)?

Explanation

Boolean logic was developed by the mathematician George Boole.

Q2.

In which book did George Boole publish his system of logic in 1854?

Explanation

Boole published it in 1854 in 'An Investigation of the Laws of Thought'.

Q3.

What are the two values used in Boolean algebra?

Explanation

Boolean algebra uses only two values: TRUE (1) and FALSE (0).

Q4.

A binary valued quantity is a variable that:

Explanation

A binary valued quantity can take only one of two values, such as TRUE/FALSE or 1/0.

Q5.

Which real-world example is a binary valued quantity?

Explanation

A light switch is either ON or OFF — only two possible states.

Q6.

What is a logical function (compound statement)?

Explanation

A logical function combines one or more Boolean variables using logical operators and produces a TRUE or FALSE result, e.g. Y = A AND B.

Q7.

What are the three fundamental logical operators?

Explanation

The three basic logical operators are AND, OR and NOT.

Q8.

The AND operation gives TRUE when:

Explanation

AND is TRUE only when BOTH inputs are TRUE.

Q9.

The OR operation gives FALSE only when:

Explanation

OR is TRUE if at least one input is TRUE, so it is FALSE only when both inputs are FALSE.

Q10.

Which symbol is commonly used for OR in Boolean expressions?

Explanation

OR is written as + (or ∨); AND as · (or ∧, or just AB); NOT as ' or a bar.

Q11.

In Boolean notation, what does A' represent?

Explanation

An apostrophe (or a bar over the variable) denotes NOT, the complement of A.

Q12.

How many rows does the truth table of an expression with 3 variables have?

Explanation

A truth table has 2ⁿ rows for n variables; 2³ = 8.

Q13.

For Y = A·B + C, what is Y when A=1, B=0, C=0?

Explanation

A·B = 1·0 = 0, and 0 + C = 0 + 0 = 0.

Q14.

For Y = A·B + C, what is Y when A=1, B=1, C=0?

Explanation

A·B = 1·1 = 1, and 1 + 0 = 1.

Q15.

For Y = A + B', what is Y when A=0 and B=1?

Explanation

B' = 0, so Y = 0 + 0 = 0.

Q16.

What is a logic gate?

Explanation

A logic gate is a physical electronic circuit that implements a logical operation, producing one output from its inputs.

Q17.

How many inputs does a NOT gate (inverter) have?

Explanation

The NOT gate has only one input and simply inverts it.

Q18.

What is the output of an AND gate when its inputs are A=1 and B=0?

Explanation

AND gives 1 only when both inputs are 1; here one input is 0, so the output is 0.

Q19.

What is the output of an OR gate when its inputs are A=0 and B=1?

Explanation

OR gives 1 when at least one input is 1.

Q20.

What are postulates in Boolean algebra?

Explanation

Postulates are the basic rules of Boolean algebra, accepted as true without needing proof.

Q21.

Which postulate states that 0 is the identity for OR and 1 is the identity for AND?

Explanation

Identity elements: A + 0 = A and A · 1 = A.

Q22.

The closure postulate says that:

Explanation

Closure means AND/OR of two Boolean values is always a valid Boolean value, e.g. 1 AND 0 = 0.

Q23.

According to the complement postulate, A + A' equals:

Explanation

A variable ORed with its complement is always 1 (and A · A' = 0).

Q24.

The principle of duality says a valid Boolean expression stays valid if you swap:

Explanation

Duality: interchange AND with OR and 0 with 1 to get the dual expression.

Q25.

What is the dual of A + 0 = A?

Explanation

Swap + with · and 0 with 1: A · 1 = A.

Q26.

What is the dual of A · (B + C)?

Explanation

Swap · with + and + with ·: A + (B · C).

Q27.

What is the dual of A + 1 = 1?

Explanation

Swap + with · and 1 with 0: A · 0 = 0.

Q28.

What is the value of A + 1?

Explanation

OR with 1 is always 1 (null/dominant law).

Q29.

What is the value of A · 0?

Explanation

AND with 0 is always 0.

Q30.

The idempotence law states that:

Explanation

Combining a variable with itself changes nothing: A + A = A and A · A = A.

Q31.

Which law states that (A')' = A?

Explanation

Involution: complementing twice returns the original value.

Q32.

What is A · A' equal to?

Explanation

By the complementarity law, a variable ANDed with its complement is always 0.

Q33.

(A + B) + C = A + (B + C) is an example of which law?

Explanation

The associative law says the grouping of terms does not change the result.

Q34.

A · B = B · A is an example of which law?

Explanation

The commutative law: order does not matter for AND/OR.

Q35.

Which distributive law is valid in Boolean algebra but NOT in ordinary arithmetic?

Explanation

In Boolean algebra OR also distributes over AND: A + BC = (A + B)(A + C). This does not hold for + and × in ordinary maths.

Q36.

Simplify Y = A + A·B.

Explanation

By the absorption law, A + (A·B) = A.

Q37.

Simplify Y = A + A'B.

Explanation

By the redundancy law, A + A'B = A + B.

Q38.

Using the consensus theorem, AB + A'C + BC simplifies to:

Explanation

Consensus theorem: AB + A'C + BC = AB + A'C (the BC term is redundant).

Q39.

Using the distributive law, A·B + A·C can be written as:

Explanation

Factor out A: A·B + A·C = A·(B + C).

Q40.

Which is DeMorgan's First Theorem?

Explanation

DeMorgan's First Theorem: the complement of an AND equals the OR of the complements, (A·B)' = A' + B'.

Q41.

Which is DeMorgan's Second Theorem?

Explanation

DeMorgan's Second Theorem: (A + B)' = A' · B'.

Q42.

The memory trick for DeMorgan's theorems is:

Explanation

When the NOT bar is pushed inside the brackets it breaks onto each variable, and AND and OR swap.

Q43.

Simplify (A' + B')' using DeMorgan's theorem.

Explanation

(A' + B')' = (A')' · (B')' = A · B, using DeMorgan's theorem and then involution.

Q44.

A common mistake when applying DeMorgan's theorem is to:

Explanation

You must both break the bar AND swap the operator; forgetting the swap gives a wrong result.

Q45.

A NAND gate is equivalent to:

Explanation

NAND = NOT(AND): its output is the exact opposite of an AND gate.

Q46.

What is the output of a NAND gate when both inputs are 1?

Explanation

AND of 1 and 1 is 1, and NOT of that is 0. NAND is 0 only when both inputs are 1.

Q47.

What is the output of a NOR gate when both inputs are 0?

Explanation

OR of 0 and 0 is 0, and NOT of that is 1. NOR is 1 only when both inputs are 0.

Q48.

Why are NAND and NOR called universal gates?

Explanation

Either NAND alone or NOR alone can be used to build any other gate — AND, OR, NOT and so on.

Q49.

An XOR gate gives output 1 when:

Explanation

XOR (exclusive OR) is TRUE only when the inputs differ.

Q50.

What is the output of an XOR gate when both inputs are 1?

Explanation

XOR excludes the 'both true' case, so 1 ⊕ 1 = 0 — unlike OR, which gives 1.

Q51.

An XNOR gate gives output 1 when:

Explanation

XNOR is TRUE when the inputs are the same (both 0 or both 1) — the complement of XOR.

Q52.

The expression Y = AB' + A'B produces the truth table of which gate?

Explanation

Y is 1 only when A and B differ (0,1 or 1,0), which is exactly the XOR truth table.

Q53.

When drawing a logic circuit from a Boolean expression, in what order are the operators applied?

Explanation

Operator precedence is NOT first, then AND, then OR (like BODMAS in maths).

Q54.

Which gates are needed to draw the circuit for Y = (A + B)·C'?

Explanation

Use an OR gate for A + B, a NOT gate for C', and an AND gate to combine the two.

Q55.

For Y = (A + B)·C', what is Y when A=0, B=1, C=0?

Explanation

A + B = 1 and C' = 1, so Y = 1 · 1 = 1.

Q56.

In the circuit for Y = A·B + C, the output of the AND gate goes into:

Explanation

A and B feed an AND gate; its output and C then feed an OR gate, whose output is Y.