© 2026 schoolict.net (Ruwan Mangala Suraweera)
9.1 The Problem-Solving Processගැටලු විසඳීමේ ක්රියාවලිය
Grade 13 A/L ICT · Lesson 913 ශ්රේණිය A/L ICT · පාඩම 9
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.ප්රතිදානය බලාපොරොත්තු ප්රතිඵලය සමඟ සසඳන්න.
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. පියවර හතර
| 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
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 මුද්රණය කළ නිසා සැලසුම නිවැරදිය.
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1List the four steps of problem solving.පියවර හතර?
2What is a boundary of a problem?සීමාව?
3Inputs of the rectangle problem?ආදාන?
4Output for 5 and 3?5, 3 ප්රතිදානය?
5Why plan before coding?කේතනයට පෙර සැලසුම ඇයි?
6What happens in implementation?ක්රියාත්මක කිරීමේදී?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
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 පිළිතුරු
- C – Understand first.මුලින් තේරුම් ගැනීම.
- E – Limit.සීමාව.
- A – Plan.සැලසුම.
- D – 5 × 3.5 × 3.
- C – 2 × 8.2 × 8.
- B – Implement and test.ක්රියාත්මක කිරීම.
- A – Inputs.ආදාන.
- C – Expected.බලාපොරොත්තු.
- E – Problem solving – Process of finding a method to reach a goal.ගැටලු විසඳීම – ඉලක්කයකට ළඟා වීමේ ක්රමයක් සෙවීම.
- B – Understanding the problem – Finding what is given and what is required.ගැටලුව තේරුම් ගැනීම – ලබා දී ඇති දේ සහ අවශ්ය දේ සෙවීම.
- E – Problem definition – Exact statement of the task to be solved.ගැටලු නිර්වචනය – විසඳිය යුතු කාර්යයේ නිශ්චිත ප්රකාශය.
- D – Boundary – Limit on the scope or allowed values of a problem.සීමාව – ගැටලුවක විෂය පථයේ හෝ අවසර අගයන්හි සීමාව.
- D – Planning – Designing the steps of the solution before coding.සැලසුම් කිරීම – කේතනයට පෙර විසඳුමේ පියවර සැලසුම් කිරීම.
- A – Implementation – Coding, running and testing the planned solution.ක්රියාත්මක කිරීම – සැලසුම් කළ විසඳුම කේතනය, ධාවනය සහ පරීක්ෂාව.
- A – Input – Data given to the solution.ආදානය – විසඳුමට ලබා දෙන දත්ත.
- E – Process – Steps that change input into output.සැකසුම – ආදානය ප්රතිදානය බවට හරවන පියවර.
- B – Output – Result produced by the solution.ප්රතිදානය – විසඳුම නිපදවන ප්රතිඵලය.
- C – Test data – Input values used to check a program.පරීක්ෂණ දත්ත – වැඩසටහනක් පරීක්ෂා කිරීමට ගන්නා ආදාන.
- B – Expected result – Answer worked out by hand before running.බලාපොරොත්තු ප්රතිඵලය – ධාවනයට පෙර අතින් ගණනය කළ පිළිතුර.
- D – Algorithm – Finite ordered steps that solve a problem.ඇල්ගොරිතමය – ගැටලුවක් විසඳන සීමිත පිළිවෙළ පියවර.
Structured Questionsව්යුහගත ප්රශ්න
1Describe the four steps of problem solving.පියවර හතර. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Identify input, process and output for the rectangle problem.ආදාන, සැකසුම, ප්රතිදාන. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3State two boundaries for a marks-entry problem.සීමා දෙකක්. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Why should expected results be found before running?බලාපොරොත්තු ප්රතිඵල ඇයි? (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Write a Python program to find area and perimeter of a rectangle.Python වැඩසටහනක්. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
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බාගත කිරීම්
Resource Book Lesson Note Download Questions Syllabus Sinhala LMS Simulator Tool
