(a) State De Morgan's theorem for the following expressions. (i) NOT (A AND B) = ? [1] (ii) NOT (A OR B) = ? [1] (b) Using De Morgan's theorem, simplify the...

Assessment: Computer Science 0478 | Paper 1 Mock 01 | Computer Systems Subject: Computer Science - 0478

Question 1 Report

(a) State De Morgan's theorem for the following expressions.

(i) NOT (A AND B) = ?

[1]

(ii) NOT (A OR B) = ?

[1]

(b) Using De Morgan's theorem, simplify the following expression:

NOT (NOT P OR NOT Q)

[2]

(c) Complete the truth table to verify that NOT (A AND B) is equivalent to (NOT A) OR (NOT B).

ABA AND BNOT(A AND B)NOT ANOT B(NOT A) OR (NOT B)
00     
01     
10     
11     

[3]

Answer Details

(a) De Morgan's theorem provides equivalences for negated compound expressions:

(i) NOT (A AND B) = (NOT A) OR (NOT B) [1]

Negating an AND expression converts it to an OR of the individual negations.

(ii) NOT (A OR B) = (NOT A) AND (NOT B) [1]

Negating an OR expression converts it to an AND of the individual negations.

(b) Simplifying NOT (NOT P OR NOT Q):

  1. Apply De Morgan's theorem: NOT (NOT P OR NOT Q) = NOT(NOT P) AND NOT(NOT Q). [1]
  2. NOT(NOT P) = P, and NOT(NOT Q) = Q (double negation cancels out).
  3. Result: P AND Q. [1]

(c) Verification truth table:

ABA AND BNOT(A AND B)NOT ANOT B(NOT A) OR (NOT B)
0001111
0101101
1001011
1110000

Row 1: A AND B = 0, NOT(A AND B) = 1. NOT A = 1, NOT B = 1, (NOT A) OR (NOT B) = 1. Columns match. [1]
Row 2: A AND B = 0, NOT(A AND B) = 1. NOT A = 1, NOT B = 0, 1 OR 0 = 1. Match. [1]
Row 3: A AND B = 0, NOT(A AND B) = 1. NOT A = 0, NOT B = 1, 0 OR 1 = 1. Match.
Row 4: A AND B = 1, NOT(A AND B) = 0. NOT A = 0, NOT B = 0, 0 OR 0 = 0. Match. [1]

The fourth and seventh columns are identical in every row, confirming De Morgan's theorem: NOT (A AND B) = (NOT A) OR (NOT B).

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning