HOW we name them: Read the output column top-to-bottom for rows 00,01,10,11 as a 4-bit binary number. E.g. AND outputs 0,0,0,1→00012=1, so AND is "function #1".
How many distinct 2-input binary logic operations exist, and why?
2(22)=16; the 4-row output column has 24 possible fillings.
General formula for the number of n-input Boolean functions?
2(2n).
Which row distinguishes XOR from OR?
The 11 row: OR=1, XOR=0.
Output column of AND for rows 00,01,10,11?
0,0,0,1 (function #1).
How do you make NOT from a single NAND gate?
NAND(A,A)=Aˉ.
How do you make OR from NAND (using De Morgan)?
A+B=NAND(Aˉ,Bˉ).
What makes a gate "functionally complete"?
You can build every Boolean function using only that gate (e.g. NAND, NOR).
Which function is output column 1,0,0,1?
XNOR / equivalence (#9), true when A=B.
Relationship between function #k and #(15−k)?
They are complements (all output bits flipped).
Truth table of implication A→B — when is it 0?
Only when A=1,B=0.
Recall Feynman: explain to a 12-year-old
Imagine two light switches, A and B, and one bulb. The bulb is either ON or OFF. There are only 4 ways to set the two switches: both off, one off one on (two ways), both on. For each of those 4 settings you decide ON or OFF for the bulb. Since each of the 4 settings is its own yes/no choice, there are 2×2×2×2=16 possible "rule books" for the bulb. Each rule book has a name like AND ("on only when both switches are on") or OR ("on when at least one is on"). That's all 16 logic operations — there can never be a 17th.
Dekho, jab humare paas sirf do input bits hote hain (A aur B), to har bit ya to 0 hoga ya 1. Iska matlab total input combinations sirf 4 hain: 00,01,10,11. Ab ek logic operation ka kaam hai har combination ke liye ek output bit dena. To output column mein bhi sirf 4 slots hain. Har slot mein 0 ya 1 — yani 24=16 tareeke. Isliye duniya mein two-input ke total operations sirf 16 hain, na ek zyada na ek kam. Yeh hai poora universe of logic gates!
In 16 mein se sabse famous hain: AND (dono on hone par 1), OR (kam se kam ek on hone par 1), XOR (sirf ek on hone par 1), aur unke ulte versions NAND, NOR, XNOR. Ek mast trick yeh hai ki function #k aur #(15−k) ek dusre ke opposite hote hain — saare output bits flip ho jaate hain. Isiliye AND (#1) ka ulta NAND (#14) hai.
Sabse important practical baat: NAND akela hi sab kuch bana sakta hai. NAND(A,A) se NOT milta hai, fir double-NAND se AND, aur De Morgan se OR. Isiliye real chips mein engineers bohot saare NAND gates lagaate hain — ek hi cheap gate se poora computer ban jaata hai! Yeh "functional completeness" ka jaadu hai, aur yahi reason hai ki yeh chhota sa concept itna powerful hai.