When does the output of a NAND gate =1?

Assessment: JAMB UTME - Computer Studies - 2025 Subject: Computer Studies

Question 1 Report

When does the output of a NAND gate =1?

Answer Details

A NAND gate is a logic gate formed by combining an AND gate with an inverter, or NOT gate, on its output. To find its output for any combination of inputs, first work out what a plain AND gate would give, then flip that result.

An AND gate outputs 1 only when every one of its inputs is 1; for any other combination, it outputs 0. Since a NAND gate inverts this result, it outputs 0 only when every input is 1, and it outputs 1 for every other combination, meaning whenever at least one input is 0. In other words, the presence of a single 0 at any input is enough to force the NAND output to 1.

Input AInput BNAND output
001
011
101
110

A common error is assuming NAND behaves like AND and needs all inputs at 1 to output 1; it is actually the reverse, needing all inputs at 1 to output 0.

Exam takeaway: build the NAND truth table from AND, then invert every result, rather than trying to memorise NAND's behaviour separately from AND.

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