Grade 12 A/L ICT Lesson 3 Exam Practice: Questions and Answers

© 2026 schoolict.net (Ruwan Mangala Suraweera)

Lesson 3 A/L Exam Practice: Questions and Answersපාඩම 3 A/L විභාග පුහුණුව: ප්‍රශ්න සහ පිළිතුරු

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

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” තෝරන්න.

Paper I MCQPaper I බහුවරණ

These questions follow the style of the G.C.E. A/L ICT exam. Paper I has 30 multiple choice questions with five options (1)–(5) shown here as A–E. Paper II Part A has structured questions and Part B has essay questions. Every question has a model answer and marking points. They cover all of Competency 3 (3.1–3.3): number systems and conversions, signed numbers, character codes (BCD, EBCDIC, ASCII, Unicode), binary arithmetic and bitwise logic.මෙම ප්‍රශ්න අ.පො.ස. උසස් පෙළ ICT විභාගයේ ආකාරය අනුගමනය කරයි. Paper I හි විකල්ප පහක් (1)–(5) සහිත බහුවරණ ප්‍රශ්න 30 ක් ඇත (මෙහි A–E ලෙස පෙන්වයි). Paper II A කොටසේ ව්‍යුහගත ප්‍රශ්න සහ B කොටසේ රචනා ප්‍රශ්න ඇත. සෑම ප්‍රශ්නයකටම ආදර්ශ පිළිතුරක් සහ ලකුණු දීමේ කරුණු ඇත. ඒවා නිපුණතාව 3 (3.1–3.3) සම්පූර්ණයෙන් ආවරණය කරයි: සංඛ්‍යා පද්ධති සහ පරිවර්තන, ලකුණු සහිත සංඛ්‍යා, අක්ෂර කේත (BCD, EBCDIC, ASCII, යුනිකෝඩ්), ද්වීමය අංක ගණිතය සහ බිටු-අනුව තර්කය.

Choose one answer for each question. The explanation appears after you answer. Time guide: about 45 minutes (1½ minutes each).සෑම ප්‍රශ්නයකටම එක් පිළිතුරක් තෝරන්න. පිළිතුරු දුන් පසු පැහැදිලි කිරීම පෙන්වයි. කාල මාර්ගෝපදේශය: විනාඩි 45 පමණ (එකකට විනාඩි 1½).

Scoreලකුණු: 0 / 30

1Which decimal number equals 11100101₂?11100101₂ ට සමාන දශම සංඛ්‍යාව කුමක්ද?

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

128+64+32+4+1 = 229.128+64+32+4+1 = 229.

2What is 300₁₀ in binary?300₁₀ ද්වීමයෙන් කුමක්ද?

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

256 + 32 + 8 + 4 = 300.256 + 32 + 8 + 4 = 300.

3What is 500₁₀ in hexadecimal?500₁₀ ෂඩ්දශමයෙන් කුමක්ද?

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

500 = 1×256 + 15×16 + 4.500 = 1×256 + 15×16 + 4.

4What is 101110011₂ in octal?101110011₂ අෂ්ටමයෙන් කුමක්ද?

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

101 110 011 = 5 6 3.101 110 011 = 5 6 3.

5What is A7₁₆ in octal?A7₁₆ අෂ්ටමයෙන් කුමක්ද?

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

1010 0111 → 010 100 111 = 247.1010 0111 → 010 100 111 = 247.

6Which of these values is the largest?මේවායින් විශාලතම අගය කුමක්ද?

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

FF = 255; the others are 254, 254, 250, 250.FF = 255; අනෙක් ඒවා 254, 254, 250, 250.

7How many different values can be stored in 10 bits?බිටු 10 කින් ගබඩා කළ හැකි වෙනස් අගයන් ගණන කීයද?

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

2¹⁰ = 1,024.2¹⁰ = 1,024.

8What is −100 in 8-bit 2’s complement?−100 බිටු 8 2 හි අනුපූරකයෙන් කුමක්ද?

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

+100 = 01100100, flip = 10011011, +1 = 10011100.+100 = 01100100, පෙරළීම = 10011011, +1 = 10011100.

9The 8-bit 1’s complement number 11111010 equals:බිටු 8 1 හි අනුපූරක සංඛ්‍යාව 11111010 සමාන වන්නේ:

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

Flip: 00000101 = 5, so −5.පෙරළීම: 00000101 = 5, එබැවින් −5.

10The 8-bit sign-magnitude number 10011001 equals:බිටු 8 ලකුණු-විශාලත්ව සංඛ්‍යාව 10011001 සමාන වන්නේ:

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

Sign 1, size 0011001 = 25.ලකුණ 1, විශාලත්වය 0011001 = 25.

11What is the range of a 16-bit 2’s complement integer?බිටු 16 2 හි අනුපූරක නිඛිලයක පරාසය කුමක්ද?

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

−2¹⁵ to 2¹⁵ − 1.−2¹⁵ සිට 2¹⁵ − 1.

12Which statement about 2’s complement is TRUE?2 හි අනුපූරකය පිළිබඳ සත්‍ය ප්‍රකාශය කුමක්ද?

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

One zero; −128 to +127.එක් ශුන්‍යයක්; −128 සිට +127.

13What is 407 in BCD?407 BCD වලින් කුමක්ද?

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

4 = 0100, 0 = 0000, 7 = 0111.4 = 0100, 0 = 0000, 7 = 0111.

14How many bits are needed to store 2026 in BCD?2026 BCD වලින් ගබඩා කිරීමට බිටු කීයක් අවශ්‍යද?

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

4 digits × 4 bits.ඉලක්කම් 4 × බිටු 4.

15The ASCII code of “M” is 77. What is the code of “m”?“M” හි ASCII කේතය 77. “m” හි කේතය කුමක්ද?

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

77 + 32 = 109.77 + 32 = 109.

16The ASCII code of the character “5” is:“5” අක්ෂරයේ ASCII කේතය:

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

“0” = 48, so “5” = 53.“0” = 48, එබැවින් “5” = 53.

17How many bytes are needed to store “Sri Lanka” in ASCII?“Sri Lanka” ASCII හි ගබඩා කිරීමට බයිට කීයක් අවශ්‍යද?

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

9 characters including the space.හිස්තැන ද ඇතුළුව අක්ෂර 9.

18Which coding scheme was designed by IBM and has non-continuous letters?IBM විසින් නිර්මාණය කළ, අකුරු අඛණ්ඩ නොවන කේතන ක්‍රමය කුමක්ද?

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

A–I, J–R, S–Z are separate runs.A–I, J–R, S–Z වෙන් කොටස්.

19Which is the main reason Unicode was introduced?යුනිකෝඩ් හඳුන්වා දීමට ප්‍රධාන හේතුව කුමක්ද?

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

ASCII could not hold other scripts.ASCII ට වෙනත් අක්ෂර මාලා රඳවා ගත නොහැකි විය.

20How many bytes does the word “ලංකා” (4 code points) take in UTF-8?“ලංකා” (කේත ලක්ෂ්‍ය 4) වචනය UTF-8 හි බයිට කීයක් ගනීද?

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

Each Sinhala code point = 3 bytes.සෑම සිංහල කේත ලක්ෂ්‍යයක්ම = බයිට 3.

21Unicode 18.0, released in September 2026, contains about:2026 සැප්තැම්බර් නිකුත් වූ යුනිකෝඩ් 18.0 හි ආසන්න වශයෙන් ඇත්තේ:

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

1,114,112 is the code space, not the characters assigned.1,114,112 යනු කේත අවකාශයයි, පවරා ඇති අක්ෂර නොවේ.

22What is 1101 + 1011 + 0110?1101 + 1011 + 0110 කීයද?

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

13 + 11 + 6 = 30 = 11110.13 + 11 + 6 = 30 = 11110.

23What is 101000 − 011011?101000 − 011011 කීයද?

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

40 − 27 = 13 = 001101.40 − 27 = 13 = 001101.

24In 8-bit 2’s complement, 00110000 + 11110110 (ignoring the final carry) gives:බිටු 8 2 හි අනුපූරකයේ 00110000 + 11110110 (අවසාන carry නොසලකා) ලබා දෙන්නේ:

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

48 + (−10) = 38 = 00100110.48 + (−10) = 38 = 00100110.

25Which 8-bit 2’s complement addition causes overflow?overflow ඇති කරන බිටු 8 2 හි අනුපූරක එකතු කිරීම කුමක්ද?

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

150 > 127; −120 and 127 fit.150 > 127; −120 සහ 127 ගැළපේ.

2611110000 AND 10101010 = ?11110000 AND 10101010 = ?

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

Keep the left 4 bits of B.B හි වම් බිටු 4 රඳවා ගනී.

2711110000 XOR 10101010 = ?11110000 XOR 10101010 = ?

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

1 where bits differ.බිටු වෙනස් තැන 1.

28Which operation gives 1 when the two input bits are different?ආදාන බිටු දෙක වෙනස් වූ විට 1 දෙන මෙහෙයුම කුමක්ද?

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

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

29To set bit 0 of a byte to 1 without changing the others, use:අනෙක් බිටු වෙනස් නොකර බයිටයක 0 වැනි බිටුව 1 කිරීමට භාවිත කරන්නේ:

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

OR sets bits.OR බිටු සකසයි.

30x XOR x always equals:x XOR x සැමවිටම සමාන වන්නේ:

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

Equal bits give 0.සමාන බිටු 0 දෙයි.

Paper II Part APaper II A කොටස

Part A: answer all four questions. Marks for each part are shown in brackets. Try first, then open the model answer.A කොටස: ප්‍රශ්න හතරටම පිළිතුරු දෙන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත. මුලින් උත්සාහ කර පසුව ආදර්ශ පිළිතුර විවෘත කරන්න.

1Number systems.සංඛ්‍යා පද්ධති. (8 marksලකුණු 8)

  1. (i) Explain why computers use the binary number system.පරිගණක ද්වීමය සංඛ්‍යා පද්ධතිය භාවිත කරන්නේ ඇයිදැයි පැහැදිලි කරන්න. (2 marksලකුණු 2)
  2. (ii) Convert 156₁₀ to binary, showing your working.ක්‍රියාවලිය පෙන්වමින් 156₁₀ ද්වීමයට හරවන්න. (2 marksලකුණු 2)
  3. (iii) Convert 11010110₂ to hexadecimal and to octal.11010110₂ ෂඩ්දශමය සහ අෂ්ටමයට හරවන්න. (2 marksලකුණු 2)
  4. (iv) Convert 2AF₁₆ to decimal.2AF₁₆ දශමයට හරවන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (2 marksලකුණු 2)
Circuits have two stable states, on/off (1); two states are reliable and easy to detect (1).පරිපථවලට ස්ථායී අවස්ථා දෙකක් ඇත, on/off (1); අවස්ථා දෙකක් විශ්වාසදායක සහ හඳුනාගැනීමට පහසුයි (1).

(ii) (2 marksලකුණු 2)
Repeated division by 2 (1); 10011100₂ (1).2 න් නැවත නැවත බෙදීම (1); 10011100₂ (1).

(iii) (2 marksලකුණු 2)
D6₁₆ (1); 326₈ (1).D6₁₆ (1); 326₈ (1).

(iv) (2 marksලකුණු 2)
2×256 + 10×16 + 15 (1); = 687 (1).2×256 + 10×16 + 15 (1); = 687 (1).

🎯 Examiner tip: always show the division or the place values – the working earns marks.පරීක්ෂක උපදෙස: සැමවිටම බෙදීම හෝ ස්ථානීය අගයන් පෙන්වන්න – ක්‍රියාවලියට ලකුණු ඇත.

2Signed numbers.ලකුණු සහිත සංඛ්‍යා. (8 marksලකුණු 8)

  1. (i) Represent −45 in 8-bit sign-magnitude, 1’s complement and 2’s complement.−45 බිටු 8 ලකුණු-විශාලත්ව, 1 හි අනුපූරක සහ 2 හි අනුපූරක ලෙස නිරූපණය කරන්න. (3 marksලකුණු 3)
  2. (ii) Find the decimal value of the 8-bit 2’s complement number 11101100.බිටු 8 2 හි අනුපූරක සංඛ්‍යාව 11101100 හි දශම අගය සොයන්න. (2 marksලකුණු 2)
  3. (iii) State the range of 8-bit 2’s complement integers.බිටු 8 2 හි අනුපූරක නිඛිලවල පරාසය සඳහන් කරන්න. (1 marksලකුණු 1)
  4. (iv) Give two reasons why CPUs use 2’s complement.CPU 2 හි අනුපූරකය භාවිත කරන හේතු දෙකක් දෙන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (3 marksලකුණු 3)
10101101 (1); 11010010 (1); 11010011 (1).10101101 (1); 11010010 (1); 11010011 (1).

+45 (all methods)+45 (සියලු ක්‍රම)00101101−45 sign-magnitude−45 ලකුණු-විශාලත්වය10101101−45 1’s complement−45 1 හි අනුපූරකය11010010−45 2’s complement−45 2 හි අනුපූරකය11010011MSB = sign1’s = flip every bit; 2’s = flip then add 1
Three ways to store −45 in 8 bits.−45 බිටු 8 කින් ගබඩා කරන ක්‍රම තුන.

(ii) (2 marksලකුණු 2)
MSB 1, negative; flip and add 1 = 20 (1); −20 (1).MSB 1, සෘණ; පෙරළා 1 එකතු = 20 (1); −20 (1).

(iii) (1 marksලකුණු 1)
−128 to +127 (1).−128 සිට +127 (1).

(iv) (2 marksලකුණු 2)
Only one zero (1); the same adder does subtraction (1).එක් ශුන්‍යයක් පමණි (1); එකම එකතු කිරීමේ පරිපථය අඩු කිරීම කරයි (1).

🎯 Examiner tip: write all 8 bits – dropping leading zeros loses the sign bit.පරීක්ෂක උපදෙස: බිටු 8 ම ලියන්න – මුල් ශුන්‍ය ඉවත් කිරීමෙන් ලකුණු බිටුව නැති වේ.

3Character representation.අක්ෂර නිරූපණය. (9 marksලකුණු 9)

  1. (i) Write 59 in BCD and in pure binary.59 BCD සහ සාමාන්‍ය ද්වීමයෙන් ලියන්න. (2 marksලකුණු 2)
  2. (ii) Write “ICT” in 8-bit ASCII binary.“ICT” බිටු 8 ASCII ද්වීමයෙන් ලියන්න. (3 marksලකුණු 3)
  3. (iii) Give the Unicode code point and the UTF-8 bytes of “අ”.“අ” හි යුනිකෝඩ් කේත ලක්ෂ්‍යය සහ UTF-8 බයිට දෙන්න. (2 marksලකුණු 2)
  4. (iv) Give one disadvantage of ASCII and of BCD.ASCII සහ BCD හි අවාසිය බැගින් දෙන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (2 marksලකුණු 2)
BCD 0101 1001 (1); binary 111011 (1).BCD 0101 1001 (1); ද්වීමය 111011 (1).

(ii) (3 marksලකුණු 3)
I = 01001001 (1); C = 01000011 (1); T = 01010100 (1).I = 01001001 (1); C = 01000011 (1); T = 01010100 (1).

(iii) (2 marksලකුණු 2)
U+0D85 (1); E0 B6 85 (1).U+0D85 (1); E0 B6 85 (1).

1. Character: අඅක්ෂරය: අ2. Code point U+0D85කේත ලක්ෂ්‍යය U+0D853. UTF-8 bytes E0 B6 85UTF-8 බයිට E0 B6 854. Stored as 24 bitsබිටු 24 ලෙස ගබඩා වේ
From a Sinhala letter to stored bits.සිංහල අකුරක සිට ගබඩා වූ බිටු දක්වා.

(iv) (2 marksලකුණු 2)
ASCII – only 128 characters, no Sinhala (1); BCD – wastes codes 1010–1111 (1).ASCII – අක්ෂර 128 ක් පමණි, සිංහල නැත (1); BCD – 1010–1111 කේත නාස්ති වේ (1).

🎯 Examiner tip: in BCD keep each digit as a separate group of 4 bits.පරීක්ෂක උපදෙස: BCD හි සෑම ඉලක්කමක්ම බිටු 4 ක වෙනම කාණ්ඩයක් ලෙස තබන්න.

4Binary arithmetic and logic.ද්වීමය අංක ගණිතය සහ තර්කය. (9 marksලකුණු 9)

  1. (i) Add 1011 + 1101 + 0111 showing the carries.carry පෙන්වමින් 1011 + 1101 + 0111 එකතු කරන්න. (2 marksලකුණු 2)
  2. (ii) Subtract 11010 − 01011 using borrowing.ණයට ගැනීමෙන් 11010 − 01011 අඩු කරන්න. (2 marksලකුණු 2)
  3. (iii) Calculate 45 − 20 using 8-bit 2’s complement.බිටු 8 2 හි අනුපූරකයෙන් 45 − 20 ගණනය කරන්න. (3 marksලකුණු 3)
  4. (iv) For A = 11001010 and B = 10101100 find A AND B and A XOR B.A = 11001010 සහ B = 10101100 සඳහා A AND B සහ A XOR B සොයන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (2 marksලකුණු 2)
Carries shown (1); 11111 (1).carry පෙන්වා ඇත (1); 11111 (1).

(ii) (2 marksලකුණු 2)
Borrows shown (1); 01111 (1).ණය පෙන්වා ඇත (1); 01111 (1).

(iii) (3 marksලකුණු 3)
−20 = 11101100 (1); add to 00101101 (1); drop carry = 00011001 (1).−20 = 11101100 (1); 00101101 ට එකතු (1); carry ඉවත් = 00011001 (1).

(iv) (2 marksලකුණු 2)
10001000 (1); 01100110 (1).10001000 (1); 01100110 (1).

AA11001010BB10101100A AND BA AND B10001000A OR BA OR B11101110A XOR BA XOR B01100110NOT ANOT A00110101MSB = signEach bit is worked out on its own, column by column
Bitwise operations on A and B.A සහ B මත බිටු-අනුව මෙහෙයුම්.
🎯 Examiner tip: check every arithmetic answer by converting to decimal.පරීක්ෂක උපදෙස: සෑම අංක ගණිත පිළිතුරක්ම දශමයට හරවා පරීක්ෂා කරන්න.

Paper II Part BPaper II B කොටස

Part B: essay questions. Write full answers in paragraphs. Marks for each part are shown in brackets.B කොටස: රචනා ප්‍රශ්න. ඡේද ලෙස සම්පූර්ණ පිළිතුරු ලියන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත.

1Essay 1 – Number systems in computing.රචනා 1 – පරිගණනයේ සංඛ්‍යා පද්ධති. (11 marksලකුණු 11)

  1. (i) Explain the terms base and place value using decimal, binary, octal and hexadecimal.දශම, ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමය භාවිතයෙන් පාදය සහ ස්ථානීය අගය යන පද පැහැදිලි කරන්න. (4 marksලකුණු 4)
  2. (ii) Convert 2026₁₀ to binary, octal and hexadecimal and explain the grouping method.2026₁₀ ද්වීමය, අෂ්ටමය සහ ෂඩ්දශමයට හරවා කාණ්ඩ කිරීමේ ක්‍රමය පැහැදිලි කරන්න. (4 marksලකුණු 4)
  3. (iii) Give three real uses of hexadecimal in ICT.ICT හි ෂඩ්දශමයේ සැබෑ භාවිත තුනක් දෙන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (4 marksලකුණු 4)
Base = number of digits (1); bases 10, 2, 8, 16 (1); place value = power of the base (1); example such as 345₈ = 3×64 + 4×8 + 5 (1).පාදය = ඉලක්කම් ගණන (1); පාද 10, 2, 8, 16 (1); ස්ථානීය අගය = පාදයේ බලය (1); 345₈ = 3×64 + 4×8 + 5 වැනි උදාහරණයක් (1).

(ii) (4 marksලකුණු 4)
11111101010₂ (1); 3752₈ (1); 7EA₁₆ (1); 3 bits per octal digit, 4 per hex digit, from the right (1).11111101010₂ (1); 3752₈ (1); 7EA₁₆ (1); අෂ්ටම ඉලක්කමකට බිටු 3, ෂඩ්දශමයට 4, දකුණේ සිට (1).

(iii) (3 marksලකුණු 3)
Web colour codes such as #1D5FD1 (1); memory addresses (1); MAC or IPv6 addresses (1).#1D5FD1 වැනි වෙබ් වර්ණ කේත (1); මතක ලිපින (1); MAC හෝ IPv6 ලිපින (1).

🎯 Examiner tip: an essay with worked numbers gets more marks than words only.පරීක්ෂක උපදෙස: ගණනය කළ සංඛ්‍යා සහිත රචනාවකට වචන පමණක් ඇති එකකට වඩා ලකුණු ලැබේ.

2Essay 2 – Signed numbers and arithmetic.රචනා 2 – ලකුණු සහිත සංඛ්‍යා සහ අංක ගණිතය. (10 marksලකුණු 10)

  1. (i) Compare sign-magnitude, 1’s complement and 2’s complement using −20 in 8 bits.බිටු 8 කින් −20 භාවිතයෙන් ලකුණු-විශාලත්වය, 1 හි අනුපූරකය සහ 2 හි අනුපූරකය සසඳන්න. (4 marksලකුණු 4)
  2. (ii) Show how a CPU calculates 45 − 20 with an adder only.CPU එකක් එකතු කිරීමේ පරිපථයක් පමණක් භාවිතයෙන් 45 − 20 ගණනය කරන ආකාරය පෙන්වන්න. (3 marksලකුණු 3)
  3. (iii) Explain overflow with the example 100 + 50 in 8 bits.බිටු 8 කින් 100 + 50 උදාහරණයෙන් පිටාර ගැලීම පැහැදිලි කරන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (4 marksලකුණු 4)
SM 10010100 (1); 1’s 11101011 (1); 2’s 11101100 (1); two zeros in SM and 1’s, one in 2’s (1).SM 10010100 (1); 1 හි 11101011 (1); 2 හි 11101100 (1); SM සහ 1 හි ශුන්‍ය දෙකක්, 2 හි එකක් (1).

(ii) (3 marksලකුණු 3)
2’s complement of 20 (1); add 00101101 + 11101100 = 100011001 (1); drop 9th bit = 00011001 = 25 (1).20 හි 2 හි අනුපූරකය (1); 00101101 + 11101100 = 100011001 එකතු (1); 9 වැනි බිටුව ඉවත් = 00011001 = 25 (1).

(iii) (3 marksලකුණු 3)
Range −128 to +127 (1); 10010110 read as −106 (1); two positives gave a negative (1).පරාසය −128 සිට +127 (1); 10010110, −106 ලෙස කියවේ (1); ධන දෙකක් සෘණයක් දුන්නේය (1).

🎯 Examiner tip: always state the number of bits before you show a signed number.පරීක්ෂක උපදෙස: ලකුණු සහිත සංඛ්‍යාවක් පෙන්වීමට පෙර සැමවිටම බිටු ගණන සඳහන් කරන්න.

3Essay 3 – Character codes and bitwise logic.රචනා 3 – අක්ෂර කේත සහ බිටු-අනුව තර්කය. (11 marksලකුණු 11)

  1. (i) Compare BCD, EBCDIC, ASCII and Unicode by bits used, number of characters and one use each.BCD, EBCDIC, ASCII සහ යුනිකෝඩ් භාවිත කරන බිටු, අක්ෂර ගණන සහ එක් භාවිතය බැගින් සසඳන්න. (4 marksලකුණු 4)
  2. (ii) Explain why Unicode is important for Sinhala and Tamil users.සිංහල සහ දෙමළ භාවිත කරන්නන්ට යුනිකෝඩ් වැදගත් වන්නේ ඇයිදැයි පැහැදිලි කරන්න. (3 marksලකුණු 3)
  3. (iii) Describe AND, OR, XOR and NOT with a truth table and one use of a mask.සත්‍යතා වගුවක් සහ mask එකක එක් භාවිතයක් සමඟ AND, OR, XOR සහ NOT විස්තර කරන්න. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න

(i) (4 marksලකුණු 4)
BCD 4 bits, digits 0–9, calculators (1); EBCDIC 8 bits, 256, IBM mainframes (1); ASCII 7 bits, 128, English text (1); Unicode up to 32 bits, over 172,808 characters, all languages (1).BCD බිටු 4, ඉලක්කම් 0–9, ගණක යන්ත්‍ර (1); EBCDIC බිටු 8, 256, IBM මේන්ෆ්‍රේම් (1); ASCII බිටු 7, 128, ඉංග්‍රීසි පෙළ (1); යුනිකෝඩ් බිටු 32 දක්වා, අක්ෂර 172,808 කට වැඩි, සියලු භාෂා (1).

(ii) (3 marksලකුණු 3)
Own code points for each script (1); text works the same on every device (1); searchable and shareable on the web (1).එක් එක් අක්ෂර මාලාවට තමන්ගේම කේත ලක්ෂ්‍ය (1); සෑම උපාංගයකම පෙළ එක ලෙස ක්‍රියා කරයි (1); වෙබයේ සෙවිය හැකි සහ බෙදාගත හැකි (1).

(iii) (4 marksලකුණු 4)
Truth table for AND and OR (1); XOR and NOT (1); bitwise works bit by bit with no carry (1); mask use such as subnet mask AND or OR 00100000 for lower case (1).AND සහ OR සත්‍යතා වගුව (1); XOR සහ NOT (1); carry නොමැතිව බිටුවෙන් බිටුව ක්‍රියා කරයි (1); subnet mask AND හෝ සිම්පල් අකුරු සඳහා OR 00100000 වැනි mask භාවිතයක් (1).

🎯 Examiner tip: comparison essays score best as a neat table.පරීක්ෂක උපදෙස: සංසන්දන රචනා පිළිවෙළ වගුවක් ලෙස වැඩිම ලකුණු ලබයි.

Exam Tipsවිභාග උපදෙස්

  • Decimal → base n: divide by n, read remainders bottom to top.දශමය → පාදය n: n න් බෙදා ශේෂ පහළ සිට ඉහළට කියවන්න.
  • Base n → decimal: digit × place value, then add.පාදය n → දශමය: ඉලක්කම × ස්ථානීය අගය, පසුව එකතු කරන්න.
  • Octal = 3 bits per digit; hex = 4 bits per digit; group from the right.අෂ්ටමය = ඉලක්කමකට බිටු 3; ෂඩ්දශමය = බිටු 4; දකුණේ සිට කාණ්ඩ කරන්න.
  • Octal ↔ hex: always go through binary.අෂ්ටමය ↔ ෂඩ්දශමය: සැමවිටම ද්වීමය හරහා යන්න.
  • MSB is the sign bit: 0 positive, 1 negative.MSB ලකුණු බිටුවයි: 0 ධන, 1 සෘණ.
  • 2’s complement = flip all bits + 1; 8-bit range −128 to +127.2 හි අනුපූරකය = සියලු බිටු පෙරළා + 1; බිටු 8 පරාසය −128 සිට +127.
  • BCD: each digit in 4 bits; 1010–1111 not used.BCD: සෑම ඉලක්කමක්ම බිටු 4; 1010–1111 භාවිත නොවේ.
  • ASCII: A = 65, a = 97, 0 = 48, space = 32; small = capital + 32.ASCII: A = 65, a = 97, 0 = 48, හිස්තැන = 32; සිම්පල් = කැපිටල් + 32.
  • EBCDIC: IBM, 8 bits, A = C1 hex.EBCDIC: IBM, බිටු 8, A = C1 hex.
  • Unicode: U+ code points; UTF-8 1–4 bytes; Sinhala U+0D80–U+0DFF.යුනිකෝඩ්: U+ කේත ලක්ෂ්‍ය; UTF-8 බයිට 1–4; සිංහල U+0D80–U+0DFF.
  • 1 + 1 = 0 carry 1; 0 − 1 = 1 borrow 1; A − B = A + 2’s complement of B.1 + 1 = 0 carry 1; 0 − 1 = 1 borrow 1; A − B = A + B හි 2 හි අනුපූරකය.
  • Overflow: two positives give a negative or two negatives give a positive.පිටාර ගැලීම: ධන දෙකක් සෘණයක් හෝ සෘණ දෙකක් ධනයක් දීම.
NEW 20262026 නව A/L exam technique: in Paper I, read all five options before choosing and watch for words like NOT and TRUE. In Paper II, look at the marks – one mark usually means one clear point. Show every step in calculations, and in essays write one paragraph for each point with a real Sri Lankan example.A/L විභාග ක්‍රමය: Paper I හි තේරීමට පෙර විකල්ප පහම කියවා NOT සහ TRUE වැනි වචන ගැන සැලකිලිමත් වන්න. Paper II හි ලකුණු බලන්න – සාමාන්‍යයෙන් ලකුණක් යනු පැහැදිලි කරුණකි. ගණනය කිරීම්වල සෑම පියවරක්ම පෙන්වා, රචනාවලදී සැබෑ ශ්‍රී ලාංකීය උදාහරණයක් සමඟ එක් එක් කරුණට එක් ඡේදයක් ලියන්න.

Answers & Downloadsපිළිතුරු සහ බාගත කිරීම්

Paper I – answers with explanationsPaper I – පිළිතුරු සහ පැහැදිලි කිරීම්

#AnswerපිළිතුරWhyහේතුව
1B128+64+32+4+1 = 229.128+64+32+4+1 = 229.
2C256 + 32 + 8 + 4 = 300.256 + 32 + 8 + 4 = 300.
3D500 = 1×256 + 15×16 + 4.500 = 1×256 + 15×16 + 4.
4B101 110 011 = 5 6 3.101 110 011 = 5 6 3.
5E1010 0111 → 010 100 111 = 247.1010 0111 → 010 100 111 = 247.
6BFF = 255; the others are 254, 254, 250, 250.FF = 255; අනෙක් ඒවා 254, 254, 250, 250.
7D2¹⁰ = 1,024.2¹⁰ = 1,024.
8E+100 = 01100100, flip = 10011011, +1 = 10011100.+100 = 01100100, පෙරළීම = 10011011, +1 = 10011100.
9BFlip: 00000101 = 5, so −5.පෙරළීම: 00000101 = 5, එබැවින් −5.
10DSign 1, size 0011001 = 25.ලකුණ 1, විශාලත්වය 0011001 = 25.
11C−2¹⁵ to 2¹⁵ − 1.−2¹⁵ සිට 2¹⁵ − 1.
12EOne zero; −128 to +127.එක් ශුන්‍යයක්; −128 සිට +127.
13D4 = 0100, 0 = 0000, 7 = 0111.4 = 0100, 0 = 0000, 7 = 0111.
14A4 digits × 4 bits.ඉලක්කම් 4 × බිටු 4.
15C77 + 32 = 109.77 + 32 = 109.
16E“0” = 48, so “5” = 53.“0” = 48, එබැවින් “5” = 53.
17A9 characters including the space.හිස්තැන ද ඇතුළුව අක්ෂර 9.
18EA–I, J–R, S–Z are separate runs.A–I, J–R, S–Z වෙන් කොටස්.
19AASCII could not hold other scripts.ASCII ට වෙනත් අක්ෂර මාලා රඳවා ගත නොහැකි විය.
20AEach Sinhala code point = 3 bytes.සෑම සිංහල කේත ලක්ෂ්‍යයක්ම = බයිට 3.
21B1,114,112 is the code space, not the characters assigned.1,114,112 යනු කේත අවකාශයයි, පවරා ඇති අක්ෂර නොවේ.
22D13 + 11 + 6 = 30 = 11110.13 + 11 + 6 = 30 = 11110.
23E40 − 27 = 13 = 001101.40 − 27 = 13 = 001101.
24A48 + (−10) = 38 = 00100110.48 + (−10) = 38 = 00100110.
25B150 > 127; −120 and 127 fit.150 > 127; −120 සහ 127 ගැළපේ.
26CKeep the left 4 bits of B.B හි වම් බිටු 4 රඳවා ගනී.
27A1 where bits differ.බිටු වෙනස් තැන 1.
28DXOR = exclusive OR.XOR = විශේෂ OR.
29COR sets bits.OR බිටු සකසයි.
30CEqual bits give 0.සමාන බිටු 0 දෙයි.

Paper II model answers are under each question in the “Paper II Part A” and “Part B” tabs (they open automatically when you print).Paper II ආදර්ශ පිළිතුරු “Paper II A කොටස” සහ “B කොටස” tab වල එක් එක් ප්‍රශ්නය යටතේ ඇත (මුද්‍රණය කරන විට ස්වයංක්‍රීයව විවෘත වේ).

Downloadsබාගත කිරීම්

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

← Back to Lesson 3පාඩම 3 වෙත ආපසු ‹ 3.3 Binary Arithmetic and Bitwise Logic: Add, Subtract, AND, OR, XOR, NOTද්වීමය අංක ගණිතය සහ බිටු-අනුව තර්කය: එකතු, අඩු, AND, OR, XOR, NOT

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