Skip to content

9618 · 3.2

Logic Gates and Logic Circuits — practice questions

Practice and worked examples for 9618 Logic Gates and Logic Circuits. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

A logic circuit is represented by the Boolean expression X=(AB)+(¬BC)X = (A \cdot B) + (\neg{B} \cdot C).

(i) Draw the logic circuit for this expression. [3 marks] (ii) Complete the truth table for this circuit. [4 marks]

Show solution outline

(i) To draw the circuit, we identify the gates needed: two AND gates, one NOT gate, and one OR gate.

  • The first AND gate takes inputs A and B.
  • The NOT gate takes input B to produce ¬B\neg{B}.
  • The second AND gate takes inputs ¬B\neg{B} and C.
  • The OR gate takes the outputs of the two AND gates to produce the final output X.

(A diagram would be drawn here showing A and B into an AND gate; B into a NOT gate, then its output and C into a second AND gate; the outputs of both AND gates into an OR gate, which gives X.)

(ii) The truth table requires columns for all inputs (A, B, C), any intermediate steps ($$\neg{B},, A \cdot B,, \neg{B} \cdot C),andthefinaloutput(X).Thereare), and the final output (X). There are 2^3 = 8possibleinputcombinations. possible input combinations.

ABC¬B\neg{B}ABA \cdot B¬BC\neg{B} \cdot CX=(AB)+(¬BC)X = (A \cdot B) + (\neg{B} \cdot C)
0001000
---------------------
0011011
0100000
0110000
1001000
1011011
1100101
1110101

Marking: [1] for correct AND/OR structure. [1] for correct NOT gate placement. [1] for correct labelling. [1] for correct column headings in truth table. [1] for correct ¬B\neg{B} column. [1] for correct intermediate columns. [1] for correct final X column.

Worked example 2

Simplify the following Boolean expression using algebraic laws. Draw the logic circuit for the original expression and the simplified expression.

X=(A+B)(A+¬B)X = (A + B) \cdot (A + \neg{B})

Show solution outline

We can simplify the expression using Boolean algebra, specifically the distributive law.

  1. Original Expression: X=(A+B)(A+¬B)X = (A + B) \cdot (A + \neg{B})
  2. Apply Distributive Law (PQP \cdot Q where P=(A+B)P=(A+B) and Q=(A+¬B)Q=(A+\neg{B}) is not the easiest way. Instead, let's expand the brackets like in normal algebra): X=AA+A¬B+BA+B¬BX = A \cdot A + A \cdot \neg{B} + B \cdot A + B \cdot \neg{B} [Distributive Law]
  3. Apply Idempotent Law (AA=AA \cdot A = A) and Complement Law (B¬B=0B \cdot \neg{B} = 0): X=A+A¬B+AB+0X = A + A \cdot \neg{B} + A \cdot B + 0
  4. Apply Annulment Law (A+0=AA+0 = A): X=A+A¬B+ABX = A + A \cdot \neg{B} + A \cdot B
  5. Factor out A (Distributive Law in reverse): X=A(1+¬B+B)X = A \cdot (1 + \neg{B} + B)
  6. Apply Complement Law (B+¬B=1B + \neg{B} = 1) and then Annulment Law (1+1=11+1=1): X=A(1+1)=A1X = A \cdot (1 + 1) = A \cdot 1
  7. Apply Identity Law (A1=AA \cdot 1 = A): X=AX = A

Simplified Expression: X=AX = A

Circuit Diagrams:

  • Original Circuit: Input A and B go into an OR gate. Input A and a NOT of B go into a second OR gate. The outputs of these two OR gates go into an AND gate to produce X. This requires two OR gates, one NOT gate, and one AND gate.
  • Simplified Circuit: The output X is simply connected directly to the input A. This requires no gates at all.

This demonstrates how simplification can dramatically reduce the complexity and cost of a circuit.