© 2026 schoolict.net (Ruwan Mangala Suraweera)
Lesson 10 A/L Exam Practice: Questions and Answersපාඩම 10 A/L විභාග පුහුණුව: ප්රශ්න සහ පිළිතුරු
Grade 13 A/L ICT · Lesson 1013 ශ්රේණිය A/L ICT · පාඩම 10
Paper I MCQPaper I බහුවරණ
This practice paper assesses Lesson 10: Web Development (syllabus competency 10). Paper I has 30 five-option MCQs. Paper II Part A has four structured questions; Part B has three essays. Marking points are shown in brackets. Every HTML example was validated and every PHP answer was checked by running it.මෙම පුහුණු පත්රය පාඩම 10: වෙබ් අඩවි සංවර්ධනය (නිපුණතාව 10) ඇගයීමටය. Paper I හි MCQ 30; Paper II ව්යුහගත හතරක් සහ රචනා තුනක්. සෑම HTML උදාහරණයක්ම වලංගු කර, සෑම PHP පිළිතුරක්ම ධාවනය කර පරීක්ෂා කර ඇත.
Choose one answer for each question. The explanation appears after you answer. Time guide: about 45 minutes (1½ minutes each).සෑම ප්රශ්නයකටම එක් පිළිතුරක් තෝරන්න. පිළිතුරු දුන් පසු පැහැදිලි කිරීම පෙන්වයි. කාල මාර්ගෝපදේශය: විනාඩි 45 පමණ (එකකට විනාඩි 1½).
1The WWW isWWW
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Service.සේවාව.
2Pages are requested from a web server usingඉල්ලීම
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
HTTP.HTTP.
3gov.lk, one gateway to many services, is agov.lk
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Portal.ද්වාරය.
4A school site with home → sections → pages usesගස
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Tree.ගස.
5The text in the browser tab is set bytab
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Title.Title.
6Which tag has no end tag?හිස්
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Empty.හිස්.
7The largest heading isවිශාලතම
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
h1.h1.
8Text between iscomment
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Comment.Comment.
9 is a#
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Same page.එකම පිටුව.
10 isnie.lk
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Other site.වෙනත් අඩවිය.
11A numbered list usesඅංකිත
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
ol.ol.
12In the timetable, the number of columns isතීරු
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
colspan 2 + 1.2 + 1.
13Merging cells down two rows usesපේළි
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
rowspan.rowspan.
14Text shown when an image cannot load comes fromරූපය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
alt.alt.
15A class selector is writtenclass
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Dot.තිත.
16In the CSS demo the paragraph with id=”note” and class=”tip” isnote
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Id beats class.id ජය.
17Which CSS has the highest priority?ප්රමුඛ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Inline.Inline.
18One .css file used by many pages isබොහෝ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
External.බාහිර.
19WYSIWYG meansWYSIWYG
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
WYSIWYG.WYSIWYG.
20Which is a code editor?කේත
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Notepad++.Notepad++.
21PHP code runs on thePHP
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Server-side.සේවාදායකය.
22The PHP basics program prints AverageAverage
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
211 ÷ 3.211 ÷ 3.
23Choosing exactly one option of a group usesඑකක්
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Radio.Radio.
24Form data visible in the URL is sent withURL
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
GET.GET.
25fieldset
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Group.කණ්ඩායම.
26The first row printed by list.php islist.php
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
ORDER BY mark DESC.DESC.
27edit.php with id=2 fills the Name box withid=2
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Row 2.පේළිය 2.
28A site at http://localhost is publishedlocalhost
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Local.ස්ථානීය.
29Files are uploaded to a web host withupload
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
FTP.FTP.
30A 2.5 MB page at 10 Mbps loads in about2.5 MB
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
20 Mbit ÷ 10.20 ÷ 10.
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 කොටස: ප්රශ්න හතරටම පිළිතුරු දෙන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත. මුලින් උත්සාහ කර පසුව ආදර්ශ පිළිතුර විවෘත කරන්න.
1The web and planning a websiteවියමන සහ අඩවි සැලසුම (8 marksලකුණු 8)
- (i) Distinguish the Internet and the WWW.අන්තර්ජාලය සහ WWW. (2 marksලකුණු 2)
- (ii) Name three types of websites with an example each.අඩවි වර්ග තුන. (3 marksලකුණු 3)
- (iii) Compare hierarchical and linear navigation.සංචාලනය. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (2 marksලකුණු 2)
Network of networks (1); service of linked pages (1).(2).
(ii) (3 marksලකුණු 3)
Any three types (2); examples (1).(3).
(iii) (3 marksලකුණු 3)
Tree from home (1); one after another (1); suitable uses (1).(3).
2HTML pagesHTML පිටු (8 marksලකුණු 8)
- (i) Write the basic structure of an HTML page with a title.මූලික ව්යුහය. (3 marksලකුණු 3)
- (ii) Write HTML for an ordered list of two steps and a bookmark link.ලැයිස්තුව සහ bookmark. (2 marksලකුණු 2)
- (iii) Write HTML for a table with a caption, a header cell that spans two columns and a cell that spans two rows.වගුව. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
html (1); head with title (1); body with content (1).(3).
(ii) (2 marksලකුණු 2)
ol with li (1); a href=”#id” and matching id (1).(2).
(iii) (3 marksලකුණු 3)
table and caption (1); th colspan=”2″ (1); td rowspan=”2″ with correct cell counts (1).(3).
3CSSCSS (8 marksලකුණු 8)
- (i) Explain the parts of the rule h1 { color: navy; }.නීතියේ කොටස්. (2 marksලකුණු 2)
- (ii) Compare inline, internal and external CSS.ක්රම තුන. (3 marksලකුණු 3)
- (iii) State the colour of each paragraph in the CSS demo and give the reason.වර්ණ. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (2 marksලකුණු 2)
Selector h1 (1); property color and value navy (1).(2).
(ii) (3 marksලකුණු 3)
style attribute (1); style tag in head (1); linked .css file (1).(3).
(iii) (3 marksලකුණු 3)
black and green (1); red – id beats class (1); purple – inline wins (1).(3).
4PHP and formsPHP සහ පෝරම (8 marksලකුණු 8)
- (i) Distinguish static and dynamic web pages.ස්ථිතික සහ ගතික. (2 marksලකුණු 2)
- (ii) Write a form that sends a name and a password to login.php by POST.පෝරමය. (3 marksලකුණු 3)
- (iii) Write PHP that reads the name from the form and greets the user.PHP. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (2 marksලකුණු 2)
Same HTML for all (1); built on the server per request (1).(2).
(ii) (3 marksලකුණු 3)
form action method=”post” (1); text and password inputs with name (1); submit (1).(3).
(iii) (3 marksලකුණු 3)
$_POST[“name”] (1); htmlspecialchars (1); echo (1).(3).
Paper II Part BPaper II B කොටස
Part B: essay questions. Write full answers in paragraphs. Marks for each part are shown in brackets.B කොටස: රචනා ප්රශ්න. ඡේද ලෙස සම්පූර්ණ පිළිතුරු ලියන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත.
1Designing a school websiteපාසල් අඩවියක් සැලසුම් කිරීම (10 marksලකුණු 10)
- (i) Explain how you would analyse user requirements for a school website.අවශ්යතා විශ්ලේෂණය. (3 marksලකුණු 3)
- (ii) Write the HTML of a home page with a heading, a menu of local links, an image and a news list.මුල් පිටුව. (4 marksලකුණු 4)
- (iii) Write an external style sheet for the site and show how it is linked.style sheet. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
Objectives and users (1); contents per page (1); pages and navigation (1).(3).
(ii) (4 marksලකුණු 4)
structure (1); links (1); img with alt (1); list (1).(4).
(iii) (3 marksලකුණු 3)
rules with selectors (2); link tag in head (1).(3).
2A web-based student information systemවෙබ් පාදක සිසු තොරතුරු පද්ධතිය (10 marksලකුණු 10)
- (i) Create the data source: write SQL to create a student table and insert two rows.දත්ත මූලාශ්රය. (3 marksලකුණු 3)
- (ii) Write an HTML form and save.php that stores a new student in MySQL.සුරැකීම. (4 marksලකුණු 4)
- (iii) Write PHP that lists the Tech students in a table ordered by mark and give the output for the sample data.ලැයිස්තුව. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
CREATE TABLE with key (2); INSERT (1).(3).
(ii) (4 marksලකුණු 4)
form with fields and method post (1); connect (1); $_POST (1); prepared INSERT (1).(4).
(iii) (3 marksලකුණු 3)
SELECT … WHERE … ORDER BY mark DESC (1); loop echo rows (1); Sunil 88 then Nimal 78 (1).(3).
3Publishing and performanceප්රකාශනය සහ කාර්ය සාධනය (11 marksලකුණු 11)
- (i) Describe local, intranet and Internet publishing.ප්රකාශන ක්රම. (3 marksලකුණු 3)
- (ii) List the steps to publish a site through a free web hosting site.පියවර. (4 marksලකුණු 4)
- (iii) A page is 2.5 MB and the user has 10 Mbps. Calculate the load time, then the time after a 1.8 MB image is compressed to 0.5 MB, and give two other factors.ගණනය. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
localhost (1); LAN server (1); hosting provider (1).(3).
(ii) (4 marksලකුණු 4)
test locally (1); register with host (1); upload with FTP (1); check links/domain (1).(4).
(iii) (4 marksලකුණු 4)
20 Mbit ÷ 10 = 2.0 s (1); 1.2 MB → 0.96 s (1); two other factors (2).(4).
Exam Tipsවිභාග උපදෙස්
- Internet = network; WWW = service on it.අන්තර්ජාලය = ජාලය; WWW = සේවාව.
- Plan objectives, users, contents, pages and navigation first.පළමුව සැලසුම් කරන්න.
- html → head (title) → body.html → head → body.
- br is an empty tag; comments are not shown.br හිස්; comments නොපෙන්වයි.
- #id bookmark, file.html local, https:// external.සබැඳි වර්ග තුන.
- Count columns after colspan and rowspan.colspan/rowspan පසු තීරු ගණන් කරන්න.
- Selector { property: value; } – . class, # id.CSS වාක්ය රීතිය.
- Inline > id > class > element.CSS ප්රමුඛතාව.
- PHP runs on the server and echoes HTML.PHP සේවාදායකයේ.
- GET in URL, POST in body; name attribute = key.GET සහ POST.
- MB × 8 ÷ Mbps = seconds.MB × 8 ÷ Mbps.
- Beyond boxes (PWAs, Flexbox, Laravel, CDNs) are interest only.Beyond කොටු විභාගයට අවශ්ය නැත.
Answers & Downloadsපිළිතුරු සහ බාගත කිරීම්
Paper I – answers with explanationsPaper I – පිළිතුරු සහ පැහැදිලි කිරීම්
| # | Answerපිළිතුර | Whyහේතුව |
|---|---|---|
| 1 | B | Service.සේවාව. |
| 2 | C | HTTP.HTTP. |
| 3 | D | Portal.ද්වාරය. |
| 4 | B | Tree.ගස. |
| 5 | E | Title.Title. |
| 6 | B | Empty.හිස්. |
| 7 | D | h1.h1. |
| 8 | E | Comment.Comment. |
| 9 | B | Same page.එකම පිටුව. |
| 10 | D | Other site.වෙනත් අඩවිය. |
| 11 | C | ol.ol. |
| 12 | E | colspan 2 + 1.2 + 1. |
| 13 | D | rowspan.rowspan. |
| 14 | A | alt.alt. |
| 15 | C | Dot.තිත. |
| 16 | E | Id beats class.id ජය. |
| 17 | A | Inline.Inline. |
| 18 | E | External.බාහිර. |
| 19 | A | WYSIWYG.WYSIWYG. |
| 20 | A | Notepad++.Notepad++. |
| 21 | B | Server-side.සේවාදායකය. |
| 22 | D | 211 ÷ 3.211 ÷ 3. |
| 23 | E | Radio.Radio. |
| 24 | A | GET.GET. |
| 25 | B | Group.කණ්ඩායම. |
| 26 | C | ORDER BY mark DESC.DESC. |
| 27 | A | Row 2.පේළිය 2. |
| 28 | D | Local.ස්ථානීය. |
| 29 | C | FTP.FTP. |
| 30 | C | 20 Mbit ÷ 10.20 ÷ 10. |
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 10 PDFසම්පූර්ණ පාඩම 10 PDF: English · සිංහල
← Back to Lesson 10පාඩම 10 වෙත ආපසු ‹ 10.8 Publishing and Maintaining Websitesවෙබ් අඩවි ප්රකාශනය සහ නඩත්තුව
