© 2026 schoolict.net (Ruwan Mangala Suraweera)
Lesson 8 A/L Exam Practice: Questions and Answersපාඩම 8 A/L විභාග පුහුණුව: ප්රශ්න සහ පිළිතුරු
Grade 13 A/L ICT · Lesson 813 ශ්රේණිය A/L ICT · පාඩම 8
Paper I MCQPaper I බහුවරණ
This practice paper assesses Lesson 8: Database (syllabus competency 8). 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 SQL answer was checked by running it in sqlite3.මෙම පුහුණු පත්රය පාඩම 8: දත්ත සමුදාය (නිපුණතාව 8) ඇගයීමටය. Paper I හි MCQ 30; Paper II ව්යුහගත හතරක් සහ රචනා තුනක්. සෑම SQL පිළිතුරක්ම sqlite3 තුළ ධාවනය කර පරීක්ෂා කර ඇත.
Choose one answer for each question. The explanation appears after you answer. Time guide: about 45 minutes (1½ minutes each).සෑම ප්රශ්නයකටම එක් පිළිතුරක් තෝරන්න. පිළිතුරු දුන් පසු පැහැදිලි කිරීම පෙන්වයි. කාල මාර්ගෝපදේශය: විනාඩි 45 පමණ (එකකට විනාඩි 1½).
1Processed data that has meaning isඅර්ථවත්
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Information.තොරතුරු.
2Which is unstructured data?අව්යුහගත
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
No fixed fields.ස්ථිර ක්ෂේත්ර නැත.
3A tree model where each child has one parent isගස
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Hierarchical.ධුරාවලි.
4A model allowing many parents per record isමව්වරුන් බොහෝ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Network.ජාල.
5The same data stored many times isකිහිප වරක්
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Redundancy.අතිරික්තතාව.
6A row of a relation is aපේළිය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Tuple.Tuple.
7A table with 3 columns and 5 rows has degreeමානය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Columns.තීරු.
8Inserting mark 105 is rejected by105
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
CHECK 0–100.CHECK.
9Inserting a student in class C13Z (no such class) breaksC13Z
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Referential integrity.යොමු අඛණ්ඩතාව.
10ALTER TABLE belongs toALTER
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
DDL.DDL.
11GRANT and REVOKE belong toGRANT
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
DCL.DCL.
12SELECT AVG(Mark) FROM Marks WHERE SubjectCode = ‘ICT’ returnsAVG
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
312 ÷ 5.312 ÷ 5.
13Students per class (GROUP BY ClassID) givesGROUP BY
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
3 and 2.3 සහ 2.
14UPDATE Marks SET Mark = Mark + 5 WHERE SubjectCode = ‘ICT’ AND Mark < 50 changesUPDATE
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
S002, S005.S002, S005.
15The inner join for class 12B returns12B
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Matching ClassID.ClassID ගැළපීම.
16To combine rows of two tables on matching keys usematching keys
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Join.Join.
17In an ER diagram a relationship is drawn as aසම්බන්ධතාව
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Diamond.දියමන්තිය.
18Students and subjects have cardinalityසිසුන්/විෂය
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Many to many.බොහෝ ට බොහෝ.
19Age calculated from date of birth isAge
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Derived.ව්යුත්පන්න.
20Supertypes and subtypes are shown insubtypes
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
EER.EER.
21Candidate keys of the Employee instance areEmployee
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Unique minimal sets.අනන්ය අවම කට්ටල.
22A candidate key not chosen as primary isතෝරා නොගත්
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Alternate.විකල්ප.
23The rows of a table at one moment are itsපේළි
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Instance.නිදසුන.
24For Class 1:N Student the foreign key goes in1:N
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Many side.බොහෝ පැත්ත.
25An M:N relationship is transformed intoM:N
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Linking table.සම්බන්ධක වගුව.
26The school ER (3 entities, one 1:N, one M:N) givesවගු
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
3 + 1.3 + 1.
27ItemCode → ItemName with key (OrderNo, ItemCode) isඅර්ධ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Part of key.යතුරේ කොටස.
28CustID → CustName where CustID is not a key isසංක්රාන්ති
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Non-key to non-key.යතුරු නොවන.
29The order data in 1NF has1NF
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
One row per item line.භාණ්ඩ පේළියකට එකක්.
30A table in 2NF with no transitive dependency is in3NF
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
3NF.3NF.
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 කොටස: ප්රශ්න හතරටම පිළිතුරු දෙන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත. මුලින් උත්සාහ කර පසුව ආදර්ශ පිළිතුර විවෘත කරන්න.
1Database concepts and the relational modelදත්ත සමුදාය සංකල්ප සහ සම්බන්ධතා ආකෘතිය (8 marksලකුණු 8)
- (i) Distinguish data and information and give one example of each.දත්ත සහ තොරතුරු. (2 marksලකුණු 2)
- (ii) Compare the hierarchical, network and relational models.ආකෘති තුන. (3 marksලකුණු 3)
- (iii) Name three constraints and give an insert each would reject.සීමා තුනක්. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (2 marksලකුණු 2)
Raw facts vs processed meaning (1); examples 78 / average report (1).අර්ථ (1); උදාහරණ (1).
(ii) (3 marksලකුණු 3)
Tree one parent (1); graph many parents (1); tables and keys with SQL (1).(3).
(iii) (3 marksලකුණු 3)
PRIMARY KEY duplicate S001 (1); FOREIGN KEY class C13Z (1); CHECK mark 105 (1).(3).
2SQL DDL and DMLSQL DDL සහ DML (8 marksලකුණු 8)
- (i) Write SQL to create Marks with a composite primary key, a foreign key and a CHECK on Mark.Marks සාදන්න. (3 marksලකුණු 3)
- (ii) Write SQL to add a Phone column to Student and then delete it.Phone තීරුව. (2 marksලකුණු 2)
- (iii) Write a query listing names and ICT marks of 60 or more, highest first, and give the output.ICT ≥ 60. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
CREATE TABLE with types (1); REFERENCES Student (1); CHECK 0–100 and PRIMARY KEY (StudentID, SubjectCode) (1).(3).
(ii) (2 marksලකුණු 2)
ALTER TABLE Student ADD Phone VARCHAR(10) (1); ALTER TABLE Student DROP COLUMN Phone (1).(2).
(iii) (3 marksලකුණු 3)
SELECT … INNER JOIN … ON StudentID (1); WHERE SubjectCode and Mark >= 60, ORDER BY Mark DESC (1); Sunil, 88; Nimal, 78; Amali, 62 (1).(3).
3ER diagrams and keysER රූප සහ යතුරු (8 marksලකුණු 8)
- (i) Draw an ER diagram: Class has Students; Students take Subjects.ER රූපය. (3 marksලකුණු 3)
- (ii) Explain composite, multi-valued and derived attributes.උපලක්ෂණ. (2 marksලකුණු 2)
- (iii) From the Employee instance identify candidate, primary and alternate keys.යතුරු. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
Three entities with identifiers (1); has 1:N (1); takes M:N (1).(3).
(ii) (2 marksලකුණු 2)
Two correct (1); all three with examples (1).(2).
(iii) (3 marksලකුණු 3)
Candidate EmpID, NIC, Email (1); primary EmpID (1); alternate NIC, Email (1).(3).
4Transformation and normalisationපරිවර්තනය සහ සාමාන්යකරණය (8 marksලකුණු 8)
- (i) Transform the school ER diagram into a logical schema.ER → ක්රමානුරූපය. (3 marksලකුණු 3)
- (ii) Explain insert, update and delete anomalies with the order table.විෂමතා. (2 marksලකුණු 2)
- (iii) Normalise the order table to 3NF.3NF. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
Class and Subject tables (1); Student with ClassID FK (1); Student_Subject composite key (1).(3).
(ii) (2 marksලකුණු 2)
Any two correct (1); all three with examples (1).(2).
(iii) (3 marksලකුණු 3)
1NF 5 rows key (OrderNo, ItemCode) (1); 2NF Order, Item, OrderLine (1); 3NF Customer split, 4 tables (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 කොටස: රචනා ප්රශ්න. ඡේද ලෙස සම්පූර්ණ පිළිතුරු ලියන්න. එක් එක් කොටසේ ලකුණු වරහන් තුළ ඇත.
1Databases and database systemsදත්ත සමුදාය සහ දත්ත සමුදාය පද්ධති (10 marksලකුණු 10)
- (i) Explain the need for databases compared with separate files.දත්ත සමුදායේ අවශ්යතාව. (3 marksලකුණු 3)
- (ii) Describe the five database models with one advantage of each.ආකෘති පහ. (3 marksලකුණු 3)
- (iii) Describe the components of a database system and the role of the DBA.සංරචක සහ DBA. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
Redundancy (1); inconsistency (1); sharing, security, backup (1).(3).
(ii) (3 marksලකුණු 3)
Five models (2); advantages (1).(3).
(iii) (4 marksලකුණු 4)
Hardware, software, data, users, procedures (3); DBA role (1).(4).
2Designing a school databaseපාසල් දත්ත සමුදායක් සැලසුම් කිරීම (10 marksලකුණු 10)
- (i) Draw an ER diagram for classes, students and subjects with cardinality.ER රූපය. (4 marksලකුණු 4)
- (ii) Transform it into a relational schema showing all keys.ක්රමානුරූපය. (3 marksලකුණු 3)
- (iii) Write SQL to create Student with a foreign key and insert one row.SQL. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (4 marksලකුණු 4)
Entities and identifiers (2); relationships with 1:N and M:N (2).(4).
(ii) (3 marksලකුණු 3)
4 tables (1); PKs (1); FKs and composite key (1).(3).
(iii) (3 marksලකුණු 3)
CREATE TABLE with PK (1); REFERENCES Class (1); INSERT INTO … VALUES (1).(3).
3Normalisation and queriesසාමාන්යකරණය සහ විමසුම් (11 marksලකුණු 11)
- (i) Explain functional dependencies: full, partial and transitive.පරායත්තතා. (3 marksලකුණු 3)
- (ii) Normalise the order data from 0NF to 3NF and show that the design is lossless.0NF → 3NF. (5 marksලකුණු 5)
- (iii) Write a query that gives the total value of order 1001 from the 3NF tables and state the result.ඇණවුම 1001 එකතුව. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
(i) (3 marksලකුණු 3)
Each with an example (3).(3).
(ii) (5 marksලකුණු 5)
0NF repeating groups (1); 1NF 5 rows (1); 2NF (1); 3NF 4 tables (1); join rebuilds the data (1).(5).
(iii) (3 marksලකුණු 3)
SELECT SUM(Qty * Price) (1); FROM OrderLine JOIN Item ON ItemCode WHERE OrderNo = 1001 (1); Rs. 550 (1).(3).
Exam Tipsවිභාග උපදෙස්
- Data = raw facts; information = processed with meaning.දත්ත අමු ය; තොරතුරු අර්ථවත් ය.
- Hierarchical one parent; network many parents; relational tables and keys.ආකෘති තුනේ වෙනස.
- Degree = columns; cardinality = rows.මානය = තීරු; ගණනීයතාව = පේළි.
- Primary key = UNIQUE + NOT NULL.ප්රාථමික යතුර = UNIQUE + NOT NULL.
- DDL: CREATE, ALTER, DROP. DML: INSERT, SELECT, UPDATE, DELETE.DDL සහ DML විධාන.
- Write ON in every INNER JOIN.සෑම INNER JOIN එකකම ON ලියන්න.
- UPDATE and DELETE without WHERE change every row.WHERE නැති UPDATE/DELETE සියලු පේළි වෙනස් කරයි.
- ER: rectangle, ellipse, diamond; underline identifiers.ER සංකේත.
- 1:N → FK in the many side; M:N → linking table.1:N සහ M:N පරිවර්තනය.
- Candidate keys are minimal; one becomes primary, the rest alternate.අපේක්ෂක, ප්රාථමික, විකල්ප.
- 1NF atomic; 2NF no partial; 3NF no transitive.1NF; 2NF; 3NF.
- Beyond boxes (NoSQL, AI text-to-SQL) are interest only.Beyond කොටු විභාගයට අවශ්ය නැත.
Answers & Downloadsපිළිතුරු සහ බාගත කිරීම්
Paper I – answers with explanationsPaper I – පිළිතුරු සහ පැහැදිලි කිරීම්
| # | Answerපිළිතුර | Whyහේතුව |
|---|---|---|
| 1 | B | Information.තොරතුරු. |
| 2 | C | No fixed fields.ස්ථිර ක්ෂේත්ර නැත. |
| 3 | D | Hierarchical.ධුරාවලි. |
| 4 | B | Network.ජාල. |
| 5 | E | Redundancy.අතිරික්තතාව. |
| 6 | B | Tuple.Tuple. |
| 7 | D | Columns.තීරු. |
| 8 | E | CHECK 0–100.CHECK. |
| 9 | B | Referential integrity.යොමු අඛණ්ඩතාව. |
| 10 | D | DDL.DDL. |
| 11 | C | DCL.DCL. |
| 12 | E | 312 ÷ 5.312 ÷ 5. |
| 13 | D | 3 and 2.3 සහ 2. |
| 14 | A | S002, S005.S002, S005. |
| 15 | C | Matching ClassID.ClassID ගැළපීම. |
| 16 | E | Join.Join. |
| 17 | A | Diamond.දියමන්තිය. |
| 18 | E | Many to many.බොහෝ ට බොහෝ. |
| 19 | A | Derived.ව්යුත්පන්න. |
| 20 | A | EER.EER. |
| 21 | B | Unique minimal sets.අනන්ය අවම කට්ටල. |
| 22 | D | Alternate.විකල්ප. |
| 23 | E | Instance.නිදසුන. |
| 24 | A | Many side.බොහෝ පැත්ත. |
| 25 | B | Linking table.සම්බන්ධක වගුව. |
| 26 | C | 3 + 1.3 + 1. |
| 27 | A | Part of key.යතුරේ කොටස. |
| 28 | D | Non-key to non-key.යතුරු නොවන. |
| 29 | C | One row per item line.භාණ්ඩ පේළියකට එකක්. |
| 30 | C | 3NF.3NF. |
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 8 PDFසම්පූර්ණ පාඩම 8 PDF: English · සිංහල
← Back to Lesson 8පාඩම 8 වෙත ආපසු ‹ 8.7 Normalisation: 0NF to 3NFසාමාන්යකරණය: 0NF සිට 3NF දක්වා
