MCS-212 · Block 1 Unit 3

Boolean Algebra and Circuits

Section 3 of 6

Block 1 · Unit 3Boolean Algebra and Circuits14 min · Section 3 of 6

3.3Logic gates and logic circuits

Covers IGNOU MCS-212 §3.3

A modern computer does not use mechanical switches; it uses electronic switches made of transistors. Groups of transistors form logic gates, small units that take bits in and give a bit out. Gates wired together form a logic circuit. This section connects circuits with Boolean expressions in both directions.

The three basic gates

x1x_1x2x_2AND x1∧x2x_1 \land x_2OR x1∨x2x_1 \lor x_2
0000
0101
1001
1111
xxNOT x′x'
01
10

These are exactly the truth tables of ∧\land, ∨\lor and ¬\neg from Unit 1, with T replaced by 1 and F by 0. That is why they are called logic tables.

Symbols of the AND, OR and NOT gates

From a circuit to its expression

Work from the inputs towards the output, writing the expression at the output of every gate.

From an expression to its circuit

Work in the opposite direction: find the last operation applied in the expression (the “main connective”); it is the gate nearest to the output. Then build its inputs in the same way.

Key takeaways

  • AND outputs 1 only if all inputs are 1; OR outputs 1 if at least one input is 1; NOT flips the bit.
  • Gate tables are the truth tables of ∧\land, ∨\lor, ¬\neg with 1 for T and 0 for F.
  • Circuit → expression: follow the wires from left to right.
  • Expression → circuit: the main connective is the last gate.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

What is the output of an AND gate with inputs 11 and 00?

Show answer

Answer: B. 0

AND outputs 1 only when all inputs are 1. Option 3 describes an OR gate.

Question 2 · multiple choice

A NOT gate receives the output of an OR gate whose inputs are x1x_1 and x2x_2. What is the output expression?

Show answer

Answer: A. (x1∨x2)′(x_1 \lor x_2)'

The NOT acts on the whole OR output. Option 2 would need two NOT gates before the OR gate; by De Morgan it equals (x1∧x2)′(x_1 \land x_2)', not (x1∨x2)′(x_1 \lor x_2)'.

Question 3 · multiple choice

For the circuit (x1∨x2)′∧x3(x_1 \lor x_2)' \land x_3, what is the output when x1=0x_1 = 0, x2=0x_2 = 0, x3=1x_3 = 1?

Show answer

Answer: C. 1

x1∨x2=0x_1 \lor x_2 = 0, so (x1∨x2)′=1(x_1 \lor x_2)' = 1, and 1∧1=11 \land 1 = 1. Option 2 forgets the NOT gate, which turns 0 into 1.

Question 4 · multiple choice

Which gate is the last (output) gate in the circuit for (x1′∧x2)∨(x1∨x3)(x_1' \land x_2) \lor (x_1 \lor x_3)?

Show answer

Answer: D. the OR gate joining (x1′∧x2)(x_1' \land x_2) and (x1∨x3)(x_1 \lor x_3)

The main connective of the whole expression is the middle ∨\lor, so its OR gate produces the output. Option 3 is an OR gate too, but it only produces one of the two inputs of the final gate.

Question 5 · multiple choice

How many rows does the logic table of a circuit with 4 inputs have?

Show answer

Answer: C. 16

Each input is 0 or 1, so there are 24=162^4 = 16 combinations. Option 2 is the count for 3 inputs.

Question 6 · short answer

Draw the circuit for x1′∧(x2∨x3′)x_1' \land (x_2 \lor x_3') (E7) and find its output for the input (x1,x2,x3)=(0,0,1)(x_1, x_2, x_3) = (0, 0, 1).

Show worked answer

Circuit: a NOT gate on x1x_1 gives x1′x_1'; a NOT gate on x3x_3 gives x3′x_3'; an OR gate with inputs x2x_2 and x3′x_3' gives x2∨x3′x_2 \lor x_3'; a final AND gate with inputs x1′x_1' and x2∨x3′x_2 \lor x_3' gives the output. For (0,0,1)(0, 0, 1): x1′=1x_1' = 1, x3′=0x_3' = 0, x2∨x3′=0∨0=0x_2 \lor x_3' = 0 \lor 0 = 0, output =1∧0=0= 1 \land 0 = 0.

↑ ↓ move↵ openTab switch type