Logic Gates and Truth Tables: NOT, AND, OR, XOR, NAND, NOR, XNOR – Grade 12 A/L ICT Notes 4.1

© 2026 schoolict.net (Ruwan Mangala Suraweera)

4.1 Logic Gates and Truth Tables: NOT, AND, OR, XOR, NAND, NOR, XNORතර්ක ද්වාර සහ සත්‍යතා වගු: NOT, AND, OR, XOR, NAND, NOR, XNOR

Grade 12 A/L ICT · Lesson 412 ශ්‍රේණිය A/L ICT · පාඩම 4

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • A logic gate maps binary inputs to one binary output; a truth table lists every case.තර්ක ද්වාරයක් ද්වීමය ආදාන එක් ද්වීමය ප්‍රතිදානයකට සිතියම්ගත කරයි; සත්‍යතා වගුව සෑම අවස්ථාවක්ම ලැයිස්තුගත කරයි.
  • NOT flips; AND needs all 1s; OR needs any 1; XOR needs different inputs.NOT පෙරළයි; AND ට සියලු 1 අවශ්‍යයි; OR ට ඕනෑම 1 අවශ්‍යයි; XOR ට වෙනස් ආදාන අවශ්‍යයි.
  • NAND, NOR and XNOR are the negated forms of AND, OR and XOR.NAND, NOR සහ XNOR යනු AND, OR සහ XOR හි පෙරළුණු ආකාර වේ.
  • NAND and NOR are universal – each alone can build every other gate.NAND සහ NOR සර්ව වේ – එකක් පමණක්කොට අනෙක් සෑම ද්වාරයක්ම සෑදිය හැක.
  • With n inputs a truth table has 2ⁿ rows; three inputs → 8 rows.ආදාන n කින් සත්‍යතා වගුවක පේළි 2ⁿ ක් ඇත; ආදාන තුනක් → පේළි 8.
Logic gateTruth tableNOTANDORXORNAND

Notesසටහන්

Syllabus 4.1. A logic gate is a small circuit that takes one or more binary inputs (0 or 1) and gives one binary output. In this part you learn the seven basic gates – NOT, AND, OR, XOR and the combinational gates NAND, NOR, XNOR – how to draw their symbols, how to write their truth tables, and why NAND and NOR are universal gates that can build any other gate.විෂය නිර්දේශය 4.1. තර්ක ද්වාරයක් යනු එකක් හෝ වැඩි ද්වීමය ආදාන (0 හෝ 1) ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන කුඩා පරිපථයකි. මෙම කොටසින් මූලික ද්වාර හත – NOT, AND, OR, XOR සහ සංයුක්ත ද්වාර NAND, NOR, XNOR – ඒවායේ සංකේත ඇඳීම, සත්‍යතා වගු ලිවීම, සහ වෙනත් ඕනෑම ද්වාරයක් සෑදිය හැකි සර්ව ද්වාර ලෙස NAND සහ NOR වැදගත් වන්නේ ඇයිදැයි ඉගෙන ගනී.

1. What is a logic gate?1. තර්ක ද්වාරයක් යනු කුමක්ද?

Inside every CPU and every digital chip, decisions are made with logic gates. Each gate follows a simple rule: for every possible mix of 0s and 1s at the inputs, the output is either 0 or 1. We write that rule as a truth table. A 0 means LOW / false / OFF. A 1 means HIGH / true / ON.සෑම CPU එකක් තුළත් සෑම සංඛ්‍යාංක චිපයක් තුළත් තීරණ ගන්නේ තර්ක ද්වාර මගිනි. සෑම ද්වාරයක්ම සරල නීතියක් අනුගමනය කරයි: ආදානවල ඇති 0 සහ 1 හි සෑම මිශ්‍රණයකටම ප්‍රතිදානය 0 හෝ 1 වේ. එම නීතිය අපි සත්‍යතා වගුවක් ලෙස ලියමු. 0 යනු LOW / අසත්‍ය / OFF වේ. 1 යනු HIGH / සත්‍ය / ON වේ.

💡 A truth table lists every input combination. With n inputs there are 2ⁿ rows. One input → 2 rows. Two inputs → 4 rows. Three inputs → 8 rows.සත්‍යතා වගුවක සෑම ආදාන සංයෝජනයක්ම ඇත. ආදාන n කින් පේළි 2ⁿ ක් ඇත. ආදාන එකක් → පේළි 2. ආදාන දෙකක් → පේළි 4. ආදාන තුනක් → පේළි 8.
NOT'AND·OR+XOR⊕NAND↑NOR↓XNOR⊙Seven basic logic gates
The seven basic logic gatesමූලික තර්ක ද්වාර හත

2. Basic gates: NOT, AND, OR, XOR2. මූලික ද්වාර: NOT, AND, OR, XOR

NOT (inverter) has one input. It flips the bit: F = A′ (also written 'A or Ā). If A is 0, F is 1; if A is 1, F is 0.NOT (පෙරළනය) ට ආදාන එකක් ඇත. එය බිටුව පෙරළයි: F = A′ ('A හෝ Ā ලෙසද ලියයි). A 0 නම් F 1 වේ; A 1 නම් F 0 වේ.

AAF = NOTF = NOT
0011
1100

AND outputs 1 only when every input is 1. Write F = A · B (or A · B). Think of it as “A and B must both be true”.AND සෑම ආදානයක්ම 1 වූ විට පමණක් 1 ලබා දෙයි. F = A · B (හෝ A · B) ලෙස ලියන්න. “A සහ B දෙකම සත්‍ය විය යුතුය” ලෙස හිතන්න.

AABBF = ANDF = AND
000000
001100
110000
111111

OR outputs 1 when at least one input is 1. Write F = A + B (or A + B). “A or B (or both)”.OR අවම වශයෙන් එක් ආදානයක් 1 වූ විට 1 ලබා දෙයි. F = A + B (හෝ A + B) ලෙස ලියන්න. “A හෝ B (හෝ දෙකම)”.

AABBF = ORF = OR
000000
001111
110011
111111

XOR (exclusive OR) outputs 1 when the inputs are different. Write F = A ⊕ B. Same inputs → 0; different → 1. It is the gate that makes the sum bit of a half adder (Lesson 4.4).XOR (විශේෂ OR) ආදාන වෙනස් වූ විට 1 ලබා දෙයි. F = A ⊕ B ලෙස ලියන්න. සමාන ආදාන → 0; වෙනස් → 1. අර්ධ එකතුකරන්නාගේ එකතු බිටුව සාදන්නේ මෙම ද්වාරයයි (පාඩම 4.4).

AABBF = XORF = XOR
000000
001111
110011
111100
🧮 Worked exampleවිසඳූ උදාහරණය Complete the truth table for F = A · B. What is F when A = 1 and B = 1?F = A · B සඳහා සත්‍යතා වගුව සම්පූර්ණ කරන්න. A = 1 සහ B = 1 වූ විට F කුමක්ද?
AND is 1 only when both inputs are 1, so F = 1. The four rows are 00→0, 01→0, 10→0, 11→1.AND ආදාන දෙකම 1 වූ විට පමණක් 1 වේ, එබැවින් F = 1. පේළි හතර: 00→0, 01→0, 10→0, 11→1.

3. Combinational gates: NAND, NOR, XNOR3. සංයුක්ත ද්වාර: NAND, NOR, XNOR

A combinational gate is a basic gate with a NOT stuck on its output. NAND = NOT-AND: F = (A · B)′. It is 0 only when both inputs are 1. NOR = NOT-OR: F = (A + B)′. It is 1 only when both inputs are 0. XNOR = NOT-XOR: F = (A ⊕ B)′. It is 1 when the inputs are the same (equality gate).සංයුක්ත ද්වාරයක් යනු ප්‍රතිදානයට NOT එකක් සම්බන්ධ කළ මූලික ද්වාරයකි. NAND = NOT-AND: F = (A · B)′. ආදාන දෙකම 1 වූ විට පමණක් 0 වේ. NOR = NOT-OR: F = (A + B)′. ආදාන දෙකම 0 වූ විට පමණක් 1 වේ. XNOR = NOT-XOR: F = (A ⊕ B)′. ආදාන සමාන වූ විට 1 වේ (සමානතා ද්වාරය).

AABBF = NANDF = NAND
000011
001111
110011
111100
AABBF = NORF = NOR
000011
001100
110000
111100
AABBF = XNORF = XNOR
000011
001100
110000
111111
💡 A small circle on a gate symbol means NOT (inversion). NAND looks like AND with a circle; NOR looks like OR with a circle; XNOR looks like XOR with a circle.ද්වාර සංකේතයක කුඩා කවයක් යනු NOT (පෙරළීම) වේ. NAND යනු කවයක් සහිත AND වැනිය; NOR යනු කවයක් සහිත OR වැනිය; XNOR යනු කවයක් සහිත XOR වැනිය.
🧮 Worked exampleවිසඳූ උදාහරණය For inputs A = 1, B = 0 find the outputs of AND, OR, XOR, NAND, NOR and XNOR.A = 1, B = 0 සඳහා AND, OR, XOR, NAND, NOR සහ XNOR හි ප්‍රතිදාන සොයන්න.
AND = 0, OR = 1, XOR = 1, NAND = 1, NOR = 0, XNOR = 0.AND = 0, OR = 1, XOR = 1, NAND = 1, NOR = 0, XNOR = 0.

4. Truth tables for expressions (up to three inputs)4. ප්‍රකාශන සඳහා සත්‍යතා වගු (ආදාන තුනක් දක්වා)

For an expression such as F = A · B + A′ · C you make an 8-row table (A, B, C from 000 to 111). Work out each product term, then OR them.F = A · B + A′ · C වැනි ප්‍රකාශනයකට පේළි 8 ක වගුවක් සාදන්න (A, B, C 000 සිට 111 දක්වා). එක් එක් ගුණිත පදය ගණනය කර පසුව ඒවා OR කරන්න.

🧮 Worked exampleවිසඳූ උදාහරණය Build the truth table for F = A · B + A′ · C.F = A · B + A′ · C සඳහා සත්‍යතා වගුව සාදන්න.
F is 1 for the rows ABC = 001, 011, 110, 111 (decimal 1, 3, 6, 7). F is 0 for 000, 010, 100, 101.F 1 වන්නේ ABC = 001, 011, 110, 111 (දශම 1, 3, 6, 7) පේළිවලය. 000, 010, 100, 101 සඳහා F 0 වේ.
AABBCCA·BA·BA′·CA′·CFF
000000000000
000011001111
001100000000
001111001111
110000000000
110011000000
111100110011
111111110011

5. Universal gates: NAND and NOR5. සර්ව ද්වාර: NAND සහ NOR

A gate is universal if you can build every other gate from copies of it alone. NAND and NOR are universal. That matters in factories: a chip designer can stock one type of gate and still make any circuit.වෙනත් සෑම ද්වාරයක්ම එකම ද්වාරයේ පිටපත් වලින් පමණක් සෑදිය හැකි නම් එය සර්ව ද්වාරයකි. NAND සහ NOR සර්ව වේ. කර්මාන්තශාලාවලදී මෙය වැදගත්ය: චිප නිර්මාණකරුට එක් ආකාරයක ද්වාර පමණක් තබාගෙන ඕනෑම පරිපථයක් සෑදිය හැක.

NAND / NORUniversal gatesNOTANDORXOR
NAND and NOR can build any other gateNAND සහ NOR මගින් වෙනත් ඕනෑම ද්වාරයක් සෑදිය හැක
1
NOT from NANDNAND වලින් NOT
Tie both inputs together: A NAND A = A′.ආදාන දෙකම එකට සම්බන්ධ කරන්න: A NAND A = A′.
2
AND from NANDNAND වලින් AND
NAND once, then invert the output with another NAND: (A NAND B)′ = A · B.එක් වරක් NAND කර, ප්‍රතිදානය තවත් NAND එකකින් පෙරළන්න: (A NAND B)′ = A · B.
3
OR from NANDNAND වලින් OR
Invert each input, then NAND: A′ NAND B′ = A + B (De Morgan).සෑම ආදානයක්ම පෙරළා NAND කරන්න: A′ NAND B′ = A + B (De Morgan).
🧮 Worked exampleවිසඳූ උදාහරණය Show that A NAND A equals NOT A, for A = 0 and A = 1.A = 0 සහ A = 1 සඳහා A NAND A = NOT A බව පෙන්වන්න.
A = 0: 0 NAND 0 = 1 = NOT 0. A = 1: 1 NAND 1 = 0 = NOT 1. So NAND with tied inputs is an inverter.A = 0: 0 NAND 0 = 1 = NOT 0. A = 1: 1 NAND 1 = 0 = NOT 1. එබැවින් ආදාන එකට සම්බන්ධ කළ NAND යනු පෙරළනයකි.
💡 You can also build everything from NOR alone: A NOR A = A′, and so on. In exams, be ready to draw a NOT, AND or OR using only NAND (or only NOR) gates.NOR පමණක් භාවිතයෙන්ද සියල්ල සෑදිය හැක: A NOR A = A′, ආදිය. විභාගවලදී NAND පමණක් (හෝ NOR පමණක්) භාවිතයෙන් NOT, AND හෝ OR ඇඳීමට සූදානම් වන්න.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. In 2026, CPUs still use CMOS transistors that behave as tiny NAND and NOR gates. A modern phone SoC contains tens of billions of such gates. Quantum computers use different “gates” (Hadamard, CNOT) that work on qubits, not bits – but the idea of building big circuits from a small set of universal gates is the same.2026 දී CPU තවමත් කුඩා NAND සහ NOR ද්වාර ලෙස හැසිරෙන CMOS ට්‍රාන්සිස්ටර භාවිත කරයි. නවීන දුරකථන SoC එකක එවැනි ද්වාර බිලියන ගණනක් ඇත. ක්වොන්ටම් පරිගණක බිටු නොව qubit මත ක්‍රියා කරන වෙනස් “ද්වාර” (Hadamard, CNOT) භාවිත කරයි – නමුත් කුඩා සර්ව ද්වාර කට්ටලයකින් විශාල පරිපථ සෑදීමේ අදහස සමානය.

Key Wordsප්‍රධාන පද

Logic gateතර්ක ද්වාරය
A circuit with binary inputs that produces one binary output.ද්වීමය ආදාන ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන පරිපථයකි.
Truth tableසත්‍යතා වගුව
A table that lists every input combination and the matching output.සෑම ආදාන සංයෝජනයක්ම සහ ඊට ගැළපෙන ප්‍රතිදානය ලැයිස්තුගත කරන වගුවකි.
NOTNOT
Inverter: output is the opposite of the single input. F = A′.පෙරළනය: ප්‍රතිදානය එකම ආදානයේ විරුද්ධයයි. F = A′.
ANDAND
Output is 1 only if every input is 1. F = A · B.සෑම ආදානයක්ම 1 නම් පමණක් ප්‍රතිදානය 1 වේ. F = A · B.
OROR
Output is 1 if at least one input is 1. F = A + B.අවම වශයෙන් එක් ආදානයක් 1 නම් ප්‍රතිදානය 1 වේ. F = A + B.
XORXOR
Exclusive OR: output is 1 when inputs differ. F = A ⊕ B.විශේෂ OR: ආදාන වෙනස් වූ විට ප්‍රතිදානය 1 වේ. F = A ⊕ B.
NANDNAND
NOT-AND: F = (A · B)′. A universal gate.NOT-AND: F = (A · B)′. සර්ව ද්වාරයකි.
NORNOR
NOT-OR: F = (A + B)′. A universal gate.NOT-OR: F = (A + B)′. සර්ව ද්වාරයකි.
XNORXNOR
NOT-XOR: output is 1 when inputs are equal.NOT-XOR: ආදාන සමාන වූ විට ප්‍රතිදානය 1 වේ.
Universal gateසර්ව ද්වාරය
A gate that can be used alone to build any other gate (NAND, NOR).වෙනත් ඕනෑම ද්වාරයක් තනිවම සෑදීමට භාවිත කළ හැකි ද්වාරයකි (NAND, NOR).
Inversion bubbleපෙරළුම් කවය
The small circle on a gate symbol that means NOT.ද්වාර සංකේතයේ NOT අදහස් කරන කුඩා කවය.
Combinational gateසංයුක්ත ද්වාරය
A gate made by adding NOT to a basic gate (NAND, NOR, XNOR).මූලික ද්වාරයකට NOT එකතු කර සෑදූ ද්වාරයකි (NAND, NOR, XNOR).

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1What is a logic gate?තර්ක ද්වාරයක් යනු කුමක්ද?

Answerපිළිතුර: A small digital circuit that takes one or more binary inputs and produces one binary output according to a fixed rule.නිශ්චිත නීතියකට අනුව එකක් හෝ වැඩි ද්වීමය ආදාන ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන කුඩා සංඛ්‍යාංක පරිපථයකි.

2Write the truth table for a 2-input AND gate.ආදාන 2 ක AND ද්වාරයක සත්‍යතා වගුව ලියන්න.

Answerපිළිතුර: AB: 00→0, 01→0, 10→0, 11→1.AB: 00→0, 01→0, 10→0, 11→1.

3How does XOR differ from OR?XOR, OR ගෙන් වෙනස් වන්නේ කෙසේද?

Answerපිළිතුර: OR is 1 when any input is 1 (including both). XOR is 1 only when the inputs are different – both 1 gives 0.ඕනෑම ආදානයක් 1 වූ විට (දෙකම ඇතුළුව) OR 1 වේ. XOR ආදාන වෙනස් වූ විට පමණක් 1 වේ – දෙකම 1 නම් 0 වේ.

4Why are NAND and NOR called universal gates?NAND සහ NOR සර්ව ද්වාර ලෙස හඳුන්වන්නේ ඇයි?

Answerපිළිතුර: Because any other gate (NOT, AND, OR, XOR, …) can be built using only NAND gates, or only NOR gates.NAND පමණක් හෝ NOR පමණක් භාවිතයෙන් වෙනත් ඕනෑම ද්වාරයක් (NOT, AND, OR, XOR, …) සෑදිය හැකි නිසා.

5How do you make a NOT gate from a NAND gate?NAND ද්වාරයකින් NOT ද්වාරයක් සාදන්නේ කෙසේද?

Answerපිළිතුර: Connect both NAND inputs to the same signal A. Then A NAND A = A′.NAND ආදාන දෙකම එකම සංඥාව A වෙත සම්බන්ධ කරන්න. එවිට A NAND A = A′.

6How many rows does a truth table for three inputs have?ආදාන තුනක් සඳහා සත්‍යතා වගුවක පේළි කීයක් තිබේද?

Answerපිළිතුර: 2³ = 8 rows (000 through 111).2³ = පේළි 8 ක් (000 සිට 111 දක්වා).

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1Which gate outputs 1 only when every input is 1?සෑම ආදානයක්ම 1 වූ විට පමණක් 1 ලබා දෙන ද්වාරය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

AND is 1 only for the all-1s row.AND සියලු 1 පේළිය සඳහා පමණක් 1 වේ.

2The output of a NOT gate when the input is 1 isආදානය 1 වූ විට NOT ද්වාරයක ප්‍රතිදානය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

NOT flips 1 to 0.NOT 1 න් 0 ට පෙරළයි.

3Which gate is also called the exclusive OR?විශේෂ OR ලෙසද හඳුන්වන ද්වාරය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

XOR = exclusive OR.XOR = විශේෂ OR.

4NAND is the same asNAND සමාන වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

NAND = (A · B)′.NAND = (A · B)′.

5Which two gates are universal?සර්ව වන ද්වාර දෙක කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Only NAND and NOR can build every other gate alone.තනිවම අනෙක් සියලු ද්වාර සෑදිය හැක්කේ NAND සහ NOR ට පමණි.

6For A = 1, B = 1 the XOR output isA = 1, B = 1 සඳහා XOR ප්‍රතිදානය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Same inputs → XOR = 0.සමාන ආදාන → XOR = 0.

7For A = 0, B = 0 the NOR output isA = 0, B = 0 සඳහා NOR ප්‍රතිදානය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

NOR is 1 only when both inputs are 0.ආදාන දෙකම 0 වූ විට පමණක් NOR 1 වේ.

8A small circle on a gate symbol meansද්වාර සංකේතයක කුඩා කවයකින් අදහස් වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

The bubble is inversion.කවය පෙරළීමයි.

9How many rows are in a truth table with 3 inputs?ආදාන 3 ක් සහිත සත්‍යතා වගුවක පේළි කීයක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

2³ = 8.2³ = 8.

10XNOR output is 1 when the inputs areXNOR ප්‍රතිදානය 1 වන්නේ ආදාන

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

XNOR is the equality gate.XNOR සමානතා ද්වාරයයි.

11A NAND B equals A′ whenA NAND B = A′ වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

A NAND A = A′.A NAND A = A′.

12Which expression is OR?OR වන ප්‍රකාශනය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

+ denotes OR in Boolean algebra.බූලියානු වීජ ගණිතයේ + යනු OR වේ.

13Which term means: “A circuit with binary inputs that produces one binary output”?“ද්වීමය ආදාන ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන පරිපථයකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Logic gate – A circuit with binary inputs that produces one binary output.තර්ක ද්වාරය – ද්වීමය ආදාන ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන පරිපථයකි.

14Which term means: “A table that lists every input combination and the matching output”?“සෑම ආදාන සංයෝජනයක්ම සහ ඊට ගැළපෙන ප්‍රතිදානය ලැයිස්තුගත කරන වගුවකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Truth table – A table that lists every input combination and the matching output.සත්‍යතා වගුව – සෑම ආදාන සංයෝජනයක්ම සහ ඊට ගැළපෙන ප්‍රතිදානය ලැයිස්තුගත කරන වගුවකි.

15Which term means: “Inverter: output is the opposite of the single input. F = A′”?“පෙරළනය: ප්‍රතිදානය එකම ආදානයේ විරුද්ධයයි. F = A′” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

NOT – Inverter: output is the opposite of the single input. F = A′.NOT – පෙරළනය: ප්‍රතිදානය එකම ආදානයේ විරුද්ධයයි. F = A′.

16Which term means: “Output is 1 only if every input is 1. F = A · B”?“සෑම ආදානයක්ම 1 නම් පමණක් ප්‍රතිදානය 1 වේ. F = A · B” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

AND – Output is 1 only if every input is 1. F = A · B.AND – සෑම ආදානයක්ම 1 නම් පමණක් ප්‍රතිදානය 1 වේ. F = A · B.

17Which term means: “Output is 1 if at least one input is 1. F = A + B”?“අවම වශයෙන් එක් ආදානයක් 1 නම් ප්‍රතිදානය 1 වේ. F = A + B” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

OR – Output is 1 if at least one input is 1. F = A + B.OR – අවම වශයෙන් එක් ආදානයක් 1 නම් ප්‍රතිදානය 1 වේ. F = A + B.

18Which term means: “Exclusive OR: output is 1 when inputs differ. F = A ⊕ B”?“විශේෂ OR: ආදාන වෙනස් වූ විට ප්‍රතිදානය 1 වේ. F = A ⊕ B” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

XOR – Exclusive OR: output is 1 when inputs differ. F = A ⊕ B.XOR – විශේෂ OR: ආදාන වෙනස් වූ විට ප්‍රතිදානය 1 වේ. F = A ⊕ B.

19Which term means: “NOT-AND: F = (A · B)′. A universal gate”?“NOT-AND: F = (A · B)′. සර්ව ද්වාරයකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

NAND – NOT-AND: F = (A · B)′. A universal gate.NAND – NOT-AND: F = (A · B)′. සර්ව ද්වාරයකි.

20Which term means: “NOT-OR: F = (A + B)′. A universal gate”?“NOT-OR: F = (A + B)′. සර්ව ද්වාරයකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

NOR – NOT-OR: F = (A + B)′. A universal gate.NOR – NOT-OR: F = (A + B)′. සර්ව ද්වාරයකි.

MCQ answer keyMCQ පිළිතුරු

  1. C – AND is 1 only for the all-1s row.AND සියලු 1 පේළිය සඳහා පමණක් 1 වේ.
  2. E – NOT flips 1 to 0.NOT 1 න් 0 ට පෙරළයි.
  3. A – XOR = exclusive OR.XOR = විශේෂ OR.
  4. D – NAND = (A · B)′.NAND = (A · B)′.
  5. C – Only NAND and NOR can build every other gate alone.තනිවම අනෙක් සියලු ද්වාර සෑදිය හැක්කේ NAND සහ NOR ට පමණි.
  6. B – Same inputs → XOR = 0.සමාන ආදාන → XOR = 0.
  7. A – NOR is 1 only when both inputs are 0.ආදාන දෙකම 0 වූ විට පමණක් NOR 1 වේ.
  8. C – The bubble is inversion.කවය පෙරළීමයි.
  9. E – 2³ = 8.2³ = 8.
  10. B – XNOR is the equality gate.XNOR සමානතා ද්වාරයයි.
  11. E – A NAND A = A′.A NAND A = A′.
  12. D – + denotes OR in Boolean algebra.බූලියානු වීජ ගණිතයේ + යනු OR වේ.
  13. D – Logic gate – A circuit with binary inputs that produces one binary output.තර්ක ද්වාරය – ද්වීමය ආදාන ගෙන එක් ද්වීමය ප්‍රතිදානයක් ලබා දෙන පරිපථයකි.
  14. A – Truth table – A table that lists every input combination and the matching output.සත්‍යතා වගුව – සෑම ආදාන සංයෝජනයක්ම සහ ඊට ගැළපෙන ප්‍රතිදානය ලැයිස්තුගත කරන වගුවකි.
  15. A – NOT – Inverter: output is the opposite of the single input. F = A′.NOT – පෙරළනය: ප්‍රතිදානය එකම ආදානයේ විරුද්ධයයි. F = A′.
  16. E – AND – Output is 1 only if every input is 1. F = A · B.AND – සෑම ආදානයක්ම 1 නම් පමණක් ප්‍රතිදානය 1 වේ. F = A · B.
  17. B – OR – Output is 1 if at least one input is 1. F = A + B.OR – අවම වශයෙන් එක් ආදානයක් 1 නම් ප්‍රතිදානය 1 වේ. F = A + B.
  18. C – XOR – Exclusive OR: output is 1 when inputs differ. F = A ⊕ B.XOR – විශේෂ OR: ආදාන වෙනස් වූ විට ප්‍රතිදානය 1 වේ. F = A ⊕ B.
  19. B – NAND – NOT-AND: F = (A · B)′. A universal gate.NAND – NOT-AND: F = (A · B)′. සර්ව ද්වාරයකි.
  20. D – NOR – NOT-OR: F = (A + B)′. A universal gate.NOR – NOT-OR: F = (A + B)′. සර්ව ද්වාරයකි.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Draw the truth table for a 2-input OR gate and state when the output is 0.ආදාන 2 ක OR ද්වාරයක සත්‍යතා වගුව අඳින්න සහ ප්‍රතිදානය 0 වන විට කියන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Rows: 00→0, 01→1, 10→1, 11→1 (1 each); output is 0 only when both inputs are 0 (1).පේළි: 00→0, 01→1, 10→1, 11→1 (එක බැගින්); ආදාන දෙකම 0 වූ විට පමණක් ප්‍රතිදානය 0 (1).

2Explain the difference between AND and NAND using their truth tables.සත්‍යතා වගු භාවිතයෙන් AND සහ NAND අතර වෙනස පැහැදිලි කරන්න. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
AND: 11→1, other rows 0 (1); NAND is the opposite of AND: 11→0, other rows 1 (1); NAND = (A·B)′ (1).AND: 11→1, අනෙක් පේළි 0 (1); NAND යනු AND හි විරුද්ධයයි: 11→0, අනෙක් පේළි 1 (1); NAND = (A·B)′ (1).

3Why are universal gates useful? Name the two universal gates.සර්ව ද්වාර ප්‍රයෝජනවත් වන්නේ ඇයි? සර්ව ද්වාර දෙක නම් කරන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
One gate type can build every other gate / simplifies chip design (1); NAND and NOR (1).එක් ද්වාර වර්ගයකින් අනෙක් සියල්ල සෑදිය හැක / චිප නිර්මාණය සරල කරයි (1); NAND සහ NOR (1).

4Show how to obtain NOT and AND using only NAND gates.NAND ද්වාර පමණක් භාවිතයෙන් NOT සහ AND ලබා ගන්නා ආකාරය පෙන්වන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
NOT: A NAND A = A′ (1); AND: (A NAND B) then NAND the result with itself to invert → A·B (2).NOT: A NAND A = A′ (1); AND: (A NAND B) පසුව ප්‍රතිඵලය එයා සමඟම NAND කර පෙරළන්න → A·B (2).

5For F = A · B + A′ · C, find F when ABC = 011 and when ABC = 101.F = A · B + A′ · C සඳහා ABC = 011 සහ ABC = 101 වූ විට F සොයන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
011: A=0,B=1,C=1 → A·B=0, A′·C=1 → F=1 (1); 101: A=1,B=0,C=1 → A·B=0, A′·C=0 → F=0 (1).011: A=0,B=1,C=1 → A·B=0, A′·C=1 → F=1 (1); 101: A=1,B=0,C=1 → A·B=0, A′·C=0 → F=0 (1).

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • A logic gate maps binary inputs to one binary output; a truth table lists every case.තර්ක ද්වාරයක් ද්වීමය ආදාන එක් ද්වීමය ප්‍රතිදානයකට සිතියම්ගත කරයි; සත්‍යතා වගුව සෑම අවස්ථාවක්ම ලැයිස්තුගත කරයි.
  • NOT flips; AND needs all 1s; OR needs any 1; XOR needs different inputs.NOT පෙරළයි; AND ට සියලු 1 අවශ්‍යයි; OR ට ඕනෑම 1 අවශ්‍යයි; XOR ට වෙනස් ආදාන අවශ්‍යයි.
  • NAND, NOR and XNOR are the negated forms of AND, OR and XOR.NAND, NOR සහ XNOR යනු AND, OR සහ XOR හි පෙරළුණු ආකාර වේ.
  • NAND and NOR are universal – each alone can build every other gate.NAND සහ NOR සර්ව වේ – එකක් පමණක්කොට අනෙක් සෑම ද්වාරයක්ම සෑදිය හැක.
  • With n inputs a truth table has 2ⁿ rows; three inputs → 8 rows.ආදාන n කින් සත්‍යතා වගුවක පේළි 2ⁿ ක් ඇත; ආදාන තුනක් → පේළි 8.

Downloadsබාගත කිරීම්

Full Lesson 4 PDFසම්පූර්ණ පාඩම 4 PDF: English · සිංහල

Next noteඊළඟ සටහන 4.2 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.