The Problem-Solving Process – Grade 13 A/L ICT Notes 9.1

© 2026 schoolict.net (Ruwan Mangala Suraweera)

9.1 The Problem-Solving Processගැටලු විසඳීමේ ක්‍රියාවලිය

Grade 13 A/L ICT · Lesson 913 ශ්‍රේණිය A/L ICT · පාඩම 9

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මේ වීඩියෝවේ

  • Understand the problem first.මුලින් ගැටලුව තේරුම් ගන්න.
  • Define the task and its boundaries.කාර්යය සහ සීමා නිර්වචනය කරන්න.
  • Plan the steps before coding.කේතනයට පෙර පියවර සැලසුම් කරන්න.
  • Implement and test with data.දත්ත සමඟ ක්‍රියාත්මක කර පරීක්ෂා කරන්න.
  • Compare output with the expected result.ප්‍රතිදානය බලාපොරොත්තු ප්‍රතිඵලය සමඟ සසඳන්න.
Problem solvingUnderstanding the problemProblem definitionBoundaryPlanningImplementationInput

Notesසටහන්

Syllabus 9.1. Before writing code, a programmer solves the problem on paper. The four steps are: understand the problem, define the problem and its boundaries, plan the solution and implement it.විෂය නිර්දේශය 9.1. කේත ලිවීමට පෙර ක්‍රමලේඛකයා ගැටලුව කඩදාසිය මත විසඳයි. පියවර හතර: ගැටලුව තේරුම් ගැනීම, ගැටලුව සහ එහි සීමා නිර්වචනය, විසඳුම සැලසුම් කිරීම සහ එය ක්‍රියාත්මක කිරීම.

1. The four steps1. පියවර හතර

Problem-solving processUnderstandthe problemDefine problemand boundariesPlan thesolutionImplementand testInput → process → output: list what is given, what is needed and the limits first.
Problem-solving stepsගැටලු විසඳීමේ පියවර
1
Understandතේරුම් ගැනීම
Read carefully: what is given (input) and what is wanted (output)?ලබා දී ඇත්තේ (ආදානය) සහ අවශ්‍ය වන්නේ (ප්‍රතිදානය) කුමක්ද?
2
Define and set boundariesනිර්වචනය සහ සීමා
State the exact task and limits, e.g. lengths are positive numbers in metres.නිශ්චිත කාර්යය සහ සීමා; උදා: දිග මීටර්වලින් ධන සංඛ්‍යා.
3
Planසැලසුම
Choose the steps (algorithm) as a flowchart or pseudocode.පියවර (ඇල්ගොරිතමය) ගැලීම් සටහනක් හෝ pseudocode ලෙස.
4
Implementක්‍රියාත්මක කිරීම
Write the program, run it with test data, fix errors and evaluate whether it really solves the problem.වැඩසටහන ලියා පරීක්ෂණ දත්ත සමඟ ධාවනය කර දෝෂ නිවැරදි කර, එය ගැටලුව විසඳන්නේදැයි ඇගයීම.
PartකොටසRectangle problemසෘජුකෝණාස්‍ර ගැටලුව
Inputආදානයlength, widthlength, width
Processසැකසුමarea = length × width; perimeter = 2 × (length + width)area = length × width; perimeter = 2 × (length + width)
Outputප්‍රතිදානයarea, perimeterarea, perimeter
Boundaryසීමාවlength and width > 0length සහ width > 0

2. Implementing the plan in Python2. සැලසුම Python මගින් ක්‍රියාත්මක කිරීම

🐍 Rectangle area and perimeterසෘජුකෝණාස්‍රයේ වර්ගඵලය සහ පරිමිතිය

# 1 input  2 process  3 output
length = float(input("Length: "))
width = float(input("Width: "))
area = length * width
perimeter = 2 * (length + width)
print("Area =", area)
print("Perimeter =", perimeter)

▶ Outputප්‍රතිදානය (input: 5 3)(ආදානය: 5 3)

Length: 5
Width: 3
Area = 15.0
Perimeter = 16.0
🧮 Worked exampleවිසඳූ උදාහරණය Test the rectangle program with length 5 and width 3.length 5, width 3 සමඟ වැඩසටහන පරීක්ෂා කරන්න.
Hand calculation: area = 5 × 3 = 15, perimeter = 2 × (5 + 3) = 16. The program printed Area = 15.0 and Perimeter = 16.0, so the plan is correct.අතින් ගණනය: වර්ගඵලය = 15, පරිමිතිය = 16. වැඩසටහන Area = 15.0 සහ Perimeter = 16.0 මුද්‍රණය කළ නිසා සැලසුම නිවැරදිය.
💡 Always work out the expected answer by hand before you run the program.වැඩසටහන ධාවනයට පෙර බලාපොරොත්තු පිළිතුර අතින් ගණනය කරන්න.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. In 2026 AI assistants can write code from a problem statement, but a clear definition and test cases are still the programmer’s job.2026 දී AI සහායකයින් ගැටලු ප්‍රකාශයෙන් කේත ලියයි; නමුත් පැහැදිලි නිර්වචනය සහ පරීක්ෂණ අවස්ථා ක්‍රමලේඛකයාගේ කාර්යයයි.

Key Wordsප්‍රධාන පද

Problem solvingගැටලු විසඳීම
Process of finding a method to reach a goal.ඉලක්කයකට ළඟා වීමේ ක්‍රමයක් සෙවීම.
Understanding the problemගැටලුව තේරුම් ගැනීම
Finding what is given and what is required.ලබා දී ඇති දේ සහ අවශ්‍ය දේ සෙවීම.
Problem definitionගැටලු නිර්වචනය
Exact statement of the task to be solved.විසඳිය යුතු කාර්යයේ නිශ්චිත ප්‍රකාශය.
Boundaryසීමාව
Limit on the scope or allowed values of a problem.ගැටලුවක විෂය පථයේ හෝ අවසර අගයන්හි සීමාව.
Planningසැලසුම් කිරීම
Designing the steps of the solution before coding.කේතනයට පෙර විසඳුමේ පියවර සැලසුම් කිරීම.
Implementationක්‍රියාත්මක කිරීම
Coding, running and testing the planned solution.සැලසුම් කළ විසඳුම කේතනය, ධාවනය සහ පරීක්ෂාව.
Inputආදානය
Data given to the solution.විසඳුමට ලබා දෙන දත්ත.
Processසැකසුම
Steps that change input into output.ආදානය ප්‍රතිදානය බවට හරවන පියවර.
Outputප්‍රතිදානය
Result produced by the solution.විසඳුම නිපදවන ප්‍රතිඵලය.
Test dataපරීක්ෂණ දත්ත
Input values used to check a program.වැඩසටහනක් පරීක්ෂා කිරීමට ගන්නා ආදාන.
Expected resultබලාපොරොත්තු ප්‍රතිඵලය
Answer worked out by hand before running.ධාවනයට පෙර අතින් ගණනය කළ පිළිතුර.
Algorithmඇල්ගොරිතමය
Finite ordered steps that solve a problem.ගැටලුවක් විසඳන සීමිත පිළිවෙළ පියවර.

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

1List the four steps of problem solving.පියවර හතර?

Answerපිළිතුර: Understand, define with boundaries, plan, implement.තේරුම් ගැනීම, නිර්වචනය, සැලසුම, ක්‍රියාත්මක කිරීම.

2What is a boundary of a problem?සීමාව?

Answerපිළිතුර: A limit such as “length must be greater than 0”.“length > 0” වැනි සීමාවක්.

3Inputs of the rectangle problem?ආදාන?

Answerපිළිතුර: length and width.length සහ width.

4Output for 5 and 3?5, 3 ප්‍රතිදානය?

Answerපිළිතුර: Area 15.0, perimeter 16.0.15.0, 16.0.

5Why plan before coding?කේතනයට පෙර සැලසුම ඇයි?

Answerපිළිතුර: Fewer errors and a clear, checkable set of steps.අඩු දෝෂ, පැහැදිලි පියවර.

6What happens in implementation?ක්‍රියාත්මක කිරීමේදී?

Answerපිළිතුර: Code is written, run with test data and debugged.කේතනය, ධාවනය, debug.

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

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

Scoreලකුණු: 0 / 20

1The first step of problem solving isපළමු පියවර

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

Understand first.මුලින් තේරුම් ගැනීම.

2“Length must be positive” is aධන විය යුතුය

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

Limit.සීමාව.

3Choosing the steps as a flowchart happens inගැලීම් සටහන

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

Plan.සැලසුම.

4For length 5 and width 3 the area printed isවර්ගඵලය

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

5 × 3.5 × 3.

5For length 5 and width 3 the perimeter printed isපරිමිතිය

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

2 × 8.2 × 8.

6Running the program with sample values is part ofනියැදි අගය

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

Implement and test.ක්‍රියාත්මක කිරීම.

7In the rectangle problem, length and width are thelength, width

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

Inputs.ආදාන.

8An answer worked out by hand before running is theඅතින්

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

Expected.බලාපොරොත්තු.

9Which term means: “Process of finding a method to reach a goal”?“ඉලක්කයකට ළඟා වීමේ ක්‍රමයක් සෙවීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Problem solving – Process of finding a method to reach a goal.ගැටලු විසඳීම – ඉලක්කයකට ළඟා වීමේ ක්‍රමයක් සෙවීම.

10Which term means: “Finding what is given and what is required”?“ලබා දී ඇති දේ සහ අවශ්‍ය දේ සෙවීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Understanding the problem – Finding what is given and what is required.ගැටලුව තේරුම් ගැනීම – ලබා දී ඇති දේ සහ අවශ්‍ය දේ සෙවීම.

11Which term means: “Exact statement of the task to be solved”?“විසඳිය යුතු කාර්යයේ නිශ්චිත ප්‍රකාශය” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Problem definition – Exact statement of the task to be solved.ගැටලු නිර්වචනය – විසඳිය යුතු කාර්යයේ නිශ්චිත ප්‍රකාශය.

12Which term means: “Limit on the scope or allowed values of a problem”?“ගැටලුවක විෂය පථයේ හෝ අවසර අගයන්හි සීමාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Boundary – Limit on the scope or allowed values of a problem.සීමාව – ගැටලුවක විෂය පථයේ හෝ අවසර අගයන්හි සීමාව.

13Which term means: “Designing the steps of the solution before coding”?“කේතනයට පෙර විසඳුමේ පියවර සැලසුම් කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Planning – Designing the steps of the solution before coding.සැලසුම් කිරීම – කේතනයට පෙර විසඳුමේ පියවර සැලසුම් කිරීම.

14Which term means: “Coding, running and testing the planned solution”?“සැලසුම් කළ විසඳුම කේතනය, ධාවනය සහ පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Implementation – Coding, running and testing the planned solution.ක්‍රියාත්මක කිරීම – සැලසුම් කළ විසඳුම කේතනය, ධාවනය සහ පරීක්ෂාව.

15Which term means: “Data given to the solution”?“විසඳුමට ලබා දෙන දත්ත” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Input – Data given to the solution.ආදානය – විසඳුමට ලබා දෙන දත්ත.

16Which term means: “Steps that change input into output”?“ආදානය ප්‍රතිදානය බවට හරවන පියවර” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Process – Steps that change input into output.සැකසුම – ආදානය ප්‍රතිදානය බවට හරවන පියවර.

17Which term means: “Result produced by the solution”?“විසඳුම නිපදවන ප්‍රතිඵලය” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Output – Result produced by the solution.ප්‍රතිදානය – විසඳුම නිපදවන ප්‍රතිඵලය.

18Which term means: “Input values used to check a program”?“වැඩසටහනක් පරීක්ෂා කිරීමට ගන්නා ආදාන” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Test data – Input values used to check a program.පරීක්ෂණ දත්ත – වැඩසටහනක් පරීක්ෂා කිරීමට ගන්නා ආදාන.

19Which term means: “Answer worked out by hand before running”?“ධාවනයට පෙර අතින් ගණනය කළ පිළිතුර” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Expected result – Answer worked out by hand before running.බලාපොරොත්තු ප්‍රතිඵලය – ධාවනයට පෙර අතින් ගණනය කළ පිළිතුර.

20Which term means: “Finite ordered steps that solve a problem”?“ගැටලුවක් විසඳන සීමිත පිළිවෙළ පියවර” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Algorithm – Finite ordered steps that solve a problem.ඇල්ගොරිතමය – ගැටලුවක් විසඳන සීමිත පිළිවෙළ පියවර.

MCQ answer keyMCQ පිළිතුරු

  1. C – Understand first.මුලින් තේරුම් ගැනීම.
  2. E – Limit.සීමාව.
  3. A – Plan.සැලසුම.
  4. D – 5 × 3.5 × 3.
  5. C – 2 × 8.2 × 8.
  6. B – Implement and test.ක්‍රියාත්මක කිරීම.
  7. A – Inputs.ආදාන.
  8. C – Expected.බලාපොරොත්තු.
  9. E – Problem solving – Process of finding a method to reach a goal.ගැටලු විසඳීම – ඉලක්කයකට ළඟා වීමේ ක්‍රමයක් සෙවීම.
  10. B – Understanding the problem – Finding what is given and what is required.ගැටලුව තේරුම් ගැනීම – ලබා දී ඇති දේ සහ අවශ්‍ය දේ සෙවීම.
  11. E – Problem definition – Exact statement of the task to be solved.ගැටලු නිර්වචනය – විසඳිය යුතු කාර්යයේ නිශ්චිත ප්‍රකාශය.
  12. D – Boundary – Limit on the scope or allowed values of a problem.සීමාව – ගැටලුවක විෂය පථයේ හෝ අවසර අගයන්හි සීමාව.
  13. D – Planning – Designing the steps of the solution before coding.සැලසුම් කිරීම – කේතනයට පෙර විසඳුමේ පියවර සැලසුම් කිරීම.
  14. A – Implementation – Coding, running and testing the planned solution.ක්‍රියාත්මක කිරීම – සැලසුම් කළ විසඳුම කේතනය, ධාවනය සහ පරීක්ෂාව.
  15. A – Input – Data given to the solution.ආදානය – විසඳුමට ලබා දෙන දත්ත.
  16. E – Process – Steps that change input into output.සැකසුම – ආදානය ප්‍රතිදානය බවට හරවන පියවර.
  17. B – Output – Result produced by the solution.ප්‍රතිදානය – විසඳුම නිපදවන ප්‍රතිඵලය.
  18. C – Test data – Input values used to check a program.පරීක්ෂණ දත්ත – වැඩසටහනක් පරීක්ෂා කිරීමට ගන්නා ආදාන.
  19. B – Expected result – Answer worked out by hand before running.බලාපොරොත්තු ප්‍රතිඵලය – ධාවනයට පෙර අතින් ගණනය කළ පිළිතුර.
  20. D – Algorithm – Finite ordered steps that solve a problem.ඇල්ගොරිතමය – ගැටලුවක් විසඳන සීමිත පිළිවෙළ පියවර.

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

1Describe the four steps of problem solving.පියවර හතර. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Understand; define and boundaries; plan; implement and test.තේරුම්; නිර්වචනය; සැලසුම; ක්‍රියාත්මක.

2Identify input, process and output for the rectangle problem.ආදාන, සැකසුම, ප්‍රතිදාන. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Input length, width; area = l × w and perimeter = 2(l + w); output both.ආදාන; සැකසුම; ප්‍රතිදාන.

3State two boundaries for a marks-entry problem.සීමා දෙකක්. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Marks 0–100; whole numbers only.0–100; පූර්ණ සංඛ්‍යා.

4Why should expected results be found before running?බලාපොරොත්තු ප්‍රතිඵල ඇයි? (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Compare actual output; detect logic errors.සැසඳීම; තාර්කික දෝෂ.

5Write a Python program to find area and perimeter of a rectangle.Python වැඩසටහනක්. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
input with float; area and perimeter formulas; print both.input; සූත්‍ර; print.

🎮 Game🎮 ක්‍රීඩා

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

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

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

  • Understand the problem first.මුලින් ගැටලුව තේරුම් ගන්න.
  • Define the task and its boundaries.කාර්යය සහ සීමා නිර්වචනය කරන්න.
  • Plan the steps before coding.කේතනයට පෙර පියවර සැලසුම් කරන්න.
  • Implement and test with data.දත්ත සමඟ ක්‍රියාත්මක කර පරීක්ෂා කරන්න.
  • Compare output with the expected result.ප්‍රතිදානය බලාපොරොත්තු ප්‍රතිඵලය සමඟ සසඳන්න.

Downloadsබාගත කිරීම්

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

Next noteඊළඟ සටහන 9.2 →

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

Resource Book Lesson Note Download Questions Syllabus Sinhala LMS Simulator Tool