(a) Complete the truth table to compare the outputs of the six standard two-input logic gates for the input combination A = 1, B = 0. Gate Output when A=1, ...

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

Question 1 Report

(a) Complete the truth table to compare the outputs of the six standard two-input logic gates for the input combination A = 1, B = 0.

GateOutput when A=1, B=0
AND 
OR 
NAND 
NOR 
XOR 
XNOR 

[3]

(b) For each of the following output patterns (for all four input combinations 00, 01, 10, 11), name the gate.

(i) Output: 1, 1, 1, 0

[1]

(ii) Output: 0, 1, 1, 0

[1]

(iii) Output: 1, 0, 0, 0

[1]

(c) Explain why knowing these output patterns is useful when designing logic circuits.

[2]

Answer Details

(a) Complete the table of outputs for the six standard two-input logic gates when A = 1, B = 0. [3]

Each gate applies a different logical rule to its inputs:

GateRuleOutput when A=1, B=0
ANDOutput is 1 only when both inputs are 10
OROutput is 1 when at least one input is 11
NANDOpposite of AND (NOT of AND)1
NOROpposite of OR (NOT of OR)0
XOROutput is 1 when the inputs are different1
XNOROutput is 1 when the inputs are the same0

[0.5 per correct entry, 3 marks total]

(b) Name the gate for each output pattern (input combinations 00, 01, 10, 11). [3]

(i) Output: 1, 1, 1, 0. The only gate that outputs 0 solely when both inputs are 1 is the NAND gate. It is the inverse of AND, which outputs 1 only for (1,1). [1]

(ii) Output: 0, 1, 1, 0. The output is 1 only when exactly one input is 1 (not both, not neither). This is the XOR (exclusive OR) gate. [1]

(iii) Output: 1, 0, 0, 0. The only gate that outputs 1 solely when both inputs are 0 is the NOR gate. It is the inverse of OR: OR outputs 0 only for (0,0), so NOR outputs 1 only for (0,0). [1]

(c) Explain why knowing these output patterns is useful when designing logic circuits. [2]

Knowing each gate's full truth table allows a designer to match a desired logical function to the correct gate, avoiding trial-and-error. [1] It also enables verification: after building a circuit, the designer can test all input combinations against the expected pattern to confirm the circuit produces the correct output, which is essential for debugging. [1]

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