Files, Directories and Storage Allocation – Grade 12 A/L ICT Notes 5.2

© 2026 schoolict.net (Ruwan Mangala Suraweera)

5.2 Files, Directories and Storage Allocationගොනු, ඩිරෙක්ටරි සහ ගබඩා වෙන් කිරීම

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

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

  • Files have types/extensions and attributes; directories form a hierarchy.ගොනුවල වර්ග/දිගු සහ ගුණාංග ඇත; ඩිරෙක්ටරි ධුරාවලියක් සාදයි.
  • File systems (e.g. FAT) organise data on disk.ගොනු පද්ධති (උදා: FAT) තැටියේ දත්ත සංවිධානය කරයි.
  • Security uses passwords and access privileges.ආරක්ෂාවට මුරපද සහ ප්‍රවේශ වරප්‍රසාද යොදයි.
  • Allocation: contiguous, linked, indexed – each with trade-offs.වෙන් කිරීම: අනුයාත, සබැඳි, දර්ශක – එක් එක් හුවමාරුවක් සමඟ.
  • Defragmentation packs blocks; formatting prepares a file system.විඛණ්ඩනය ඉවත් කිරීම කොටස් එකට; ආකෘතිකරණය ගොනු පද්ධතිය සකසයි.
FileFile type / extensionDirectory / folderFile systemFATAccess privilegesContiguous allocation

Notesසටහන්

Syllabus 5.2. The OS organises your data as files and directories, using a file system (for example FAT-style). In this part you learn file types, the hierarchy, security (passwords and privileges), how space is given out with contiguous, linked and indexed allocation, why defragmentation helps, and why disks are formatted.විෂය නිර්දේශය 5.2. OS ඔබේ දත්ත ගොනු සහ ඩිරෙක්ටරි ලෙස සංවිධානය කරයි, ගොනු පද්ධතියක් (උදා: FAT වැනි) භාවිතයෙන්. මෙම කොටසින් ගොනු වර්ග, ධුරාවලිය, ආරක්ෂාව (මුරපද සහ වරප්‍රසාද), අනුයාත, සබැඳි සහ දර්ශක වෙන් කිරීම, විඛණ්ඩනය ඉවත් කිරීම, සහ තැටි ආකෘතිකරණය ඉගෙන ගනී.

1. Files, types and attributes1. ගොනු, වර්ග සහ ගුණාංග

A file is a named collection of related bytes. The extension (.exe, .jpg, .txt, .docx, .mp4) hints at the type so the OS and apps know how to open it. Attributes include name, size, type, location, creation/modification time, and access permissions.ගොනුවක් යනු නම් කළ අදාළ බයිට් එකතුවකි. දිගුව (.exe, .jpg, .txt, .docx, .mp4) වර්ගය ඉඟි කරයි. ගුණාංග අතර නම, ප්‍රමාණය, වර්ගය, ස්ථානය, කාලය සහ ප්‍රවේශ අවසර ඇත.

💡 Extensions are conventions. Renaming photo.jpg to photo.txt does not turn pixels into text – it only changes the label the OS shows.දිගු සම්මුති වේ. photo.jpg photo.txt ලෙස නම් කිරීමෙන් පික්සල් පෙළ බවට නොපත් වේ – OS පෙන්වන ලේබලය පමණක් වෙනස් වේ.

2. Directory hierarchy and file systems2. ඩිරෙක්ටරි ධුරාවලිය සහ ගොනු පද්ධති

Directories form a tree from a root. A path like /home/amma/notes.txt walks from root to the file. A file system (FAT, NTFS, ext4, APFS, …) is the on-disk layout of directories, files and free space. Older syllabuses often mention FAT as a classic example.ඩිරෙක්ටරි මුල් සිට ගසක් සාදයි. /home/amma/notes.txt වැනි මාර්ගයක් මුල සිට ගොනුවට යයි. ගොනු පද්ධතියක් (FAT, NTFS, ext4, APFS, …) තැටියේ සැකැස්මයි. විෂය නිර්දේශයේ FAT සම්භාව්‍ය උදාහරණයකි.

File hierarchy/ (root)homeetcusrammanotes.txt
A tree of directories and filesඩිරෙක්ටරි සහ ගොනු ගසක්

3. File security3. ගොනු ආරක්ෂාව

  • Passwords / accounts control who can log in.මුරපද / ගිණුම් ලොගින් විය හැක්කේ කාටදැයි පාලනය කරයි.
  • Access privileges (read, write, execute; owner/group/others) limit what each user may do to a file.ප්‍රවේශ වරප්‍රසාද (කියවීම, ලිවීම, ක්‍රියාත්මක; හිමිකරු/කණ්ඩායම/අනෙක්) සීමා කරයි.
  • The OS enforces these rules on every open, read and write.සෑම විවෘත කිරීමක්, කියවීමක් සහ ලිවීමක් මත OS මෙම නීති බලාත්මක කරයි.

4. Storage allocation methods4. ගබඩා වෙන් කිරීමේ ක්‍රම

Three file-allocation methodsContiguousඅනුයාතLinkedසබැඳිIndexedදර්ශක
Contiguous, linked and indexed allocationඅනුයාත, සබැඳි සහ දර්ශක වෙන් කිරීම
1
Contiguousඅනුයාත
File occupies a run of neighbouring blocks. Fast sequential read; suffers external fragmentation.ගොනුව අසල්වැසි කොටස් දාමයක යයි. වේගවත් අනුක්‍රමික කියවීම; බාහිර විඛණ්ඩනය.
2
Linkedසබැඳි
Each block holds a pointer to the next. Easy to grow; slow random access.සෑම කොටසකම ඊළඟට පොයින්ටරයක්. වර්ධනය පහසුයි; අහඹු ප්‍රවේශය මන්දගාමීයි.
3
Indexedදර්ශක
An index block lists pointers to all data blocks. Good for random access.දර්ශක කොටසක් සියලු දත්ත කොටස්වල පොයින්ටර ලැයිස්තුගත කරයි. අහඹු ප්‍රවේශයට හොඳයි.
🧮 Worked exampleවිසඳූ උදාහරණය A disk has 10 blocks. Files A=2, B=3, C=1 blocks are stored contiguously from block 0. Where does each file live, and how many blocks stay free?තැටියක කොටස් 10 ක් ඇත. A=2, B=3, C=1 කොටස් 0 සිට අනුයාතව ගබඩා වේ. සෑම ගොනුවක්ම කොහේද, නිදහස් කොටස් කීයද?
A: blocks 0–1; B: 2–4; C: 5–5; free = 4 blocks.A: 0–1; B: 2–4; C: 5–5; නිදහස් = කොටස් 4.
FileගොනුවStart blockආරම්භක කොටසEnd blockඅවසාන කොටස
AA0011
BB2244
CC5555
🧮 Worked exampleවිසඳූ උදාහරණය A file needs 5 data blocks with one-level indexed allocation. How many blocks are used in total (index + data)?එක්-මට්ටමේ දර්ශක වෙන් කිරීමෙන් දත්ත කොටස් 5 ක් අවශ්‍ය ගොනුවකට මුළු කොටස් කීයක්ද?
1 index block + 5 data blocks = 6 blocks.දර්ශක 1 + දත්ත 5 = කොටස් 6.

5. Defragmentation and formatting5. විඛණ්ඩනය ඉවත් කිරීම සහ ආකෘතිකරණය

Fragmentation spreads a file’s blocks around the disk so the head jumps more. Defragmentation packs related blocks closer to speed sequential reads (more relevant to HDDs than SSDs). Formatting prepares a disk with a file system structure (and usually erases previous contents) so the OS can store files.විඛණ්ඩනය ගොනුවක කොටස් තැටියේ විසිරුවයි. විඛණ්ඩනය ඉවත් කිරීම අනුක්‍රමික කියවීම වේගවත් කරයි (HDD වල වැඩිපුර). ආකෘතිකරණය ගොනු පද්ධති ව්‍යුහයක් සකසයි (බොහෝ විට පෙර අන්තර්ගතය මකයි).

💡 On SSDs, heavy classic defragmentation is usually unnecessary and can add wear; the OS still maintains free-space maps.SSD වල සම්භාව්‍ය විඛණ්ඩනය ඉවත් කිරීම බොහෝ විට අවශ්‍ය නැත; OS නිදහස් ඉඩ සිතියම් තබා ගනී.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. In 2026 school PCs still meet NTFS (Windows), APFS (Mac) and ext4 (Linux). USB sticks may still use exFAT/FAT32 for compatibility. Cloud drives (OneDrive, Google Drive) look like folders but the blocks live in a data centre – the OS still uses the same open/read/write calls.2026 පාසල් PC තවමත් NTFS, APFS සහ ext4 හමු වේ. USB බොහෝ විට exFAT/FAT32 භාවිත කරයි. ක්ලවුඩ් ධාවක ෆෝල්ඩර මෙන් පෙනුනත් කොටස් දත්ත මධ්‍යස්ථානයක ය – OS එකම open/read/write භාවිත කරයි.

Key Wordsප්‍රධාන පද

Fileගොනුව
Named collection of related bytes.නම් කළ අදාළ බයිට් එකතුවකි.
File type / extensionගොනු වර්ගය / දිගුව
.exe .jpg .txt etc. hint how to open the file.ගොනුව විවෘත කරන ආකාරය ඉඟි කරයි.
Directory / folderඩිරෙක්ටරිය / ෆෝල්ඩරය
Container in the file hierarchy.ගොනු ධුරාවලියේ භාජනයකි.
File systemගොනු පද්ධතිය
On-disk organisation of files and free space (e.g. FAT).තැටියේ ගොනු සහ නිදහස් ඉඩ සංවිධානය (උදා: FAT).
FATFAT
File Allocation Table – a classic simple file system.File Allocation Table – සම්භාව්‍ය සරල ගොනු පද්ධතියකි.
Access privilegesප්‍රවේශ වරප්‍රසාද
Read/write/execute rights for users or groups.පරිශීලකයින්ට හෝ කණ්ඩායම්වලට කියවීම/ලිවීම/ක්‍රියාත්මක අයිති.
Contiguous allocationඅනුයාත වෙන් කිරීම
File stored in neighbouring blocks.අසල්වැසි කොටස්වල ගොනුව ගබඩා වේ.
Linked allocationසබැඳි වෙන් කිරීම
Blocks chained by pointers.පොයින්ටර මගින් කොටස් දාමගත වේ.
Indexed allocationදර්ශක වෙන් කිරීම
Index block lists all data-block addresses.දර්ශක කොටස සියලු දත්ත-කොටස් ලිපින ලැයිස්තුගත කරයි.
Fragmentationවිඛණ්ඩනය
File pieces scattered so access slows.ගොනු කැබලි විසිරී ප්‍රවේශය මන්දගාමී වේ.
Defragmentationවිඛණ්ඩනය ඉවත් කිරීම
Rearranging blocks to pack a file closer together.ගොනුව සමීපව තබනු පිණිස කොටස් නැවත සකස් කිරීම.
Formattingආකෘතිකරණය
Preparing a disk with a file-system structure.ගොනු-පද්ධති ව්‍යුහයක් සමඟ තැටිය සකස් කිරීම.

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

1Why do file types / extensions matter?ගොනු වර්ග / දිගු වැදගත් වන්නේ ඇයි?

Answerපිළිතුර: They hint which program should open the file and how the bytes should be interpreted.කුමන වැඩසටහනක් ගොනුව විවෘත කළ යුතුද සහ බයිට් අර්ථකථනය කළ යුතු ආකාරය ඉඟි කරයි.

2What is a file system?ගොනු පද්ධතියක් යනු කුමක්ද?

Answerපිළිතුර: The on-disk method of organising directories, files and free space (e.g. FAT, NTFS, ext4).ඩිරෙක්ටරි, ගොනු සහ නිදහස් ඉඩ සංවිධානය කරන තැටි ක්‍රමය (උදා: FAT, NTFS, ext4).

3Name three storage allocation methods.ගබඩා වෙන් කිරීමේ ක්‍රම තුනක් නම් කරන්න.

Answerපිළිතුර: Contiguous, linked and indexed.අනුයාත, සබැඳි සහ දර්ශක.

4What problem does contiguous allocation often face?අනුයාත වෙන් කිරීම බොහෝ විට මුහුණ දෙන ගැටලුව කුමක්ද?

Answerපිළිතුර: External fragmentation – free holes that are too small for new files.බාහිර විඛණ්ඩනය – නව ගොනු සඳහා ඉතා කුඩා නිදහස් සිදුරු.

5What does defragmentation do?විඛණ්ඩනය ඉවත් කිරීම කරන්නේ කුමක්ද?

Answerපිළිතුර: Moves scattered blocks of a file closer together to improve sequential access.අනුක්‍රමික ප්‍රවේශය වැඩි දියුණු කිරීමට විසිරුණු කොටස් සමීපව ගෙන යයි.

6Why format a disk?තැටියක් ආකෘතිකරණය කරන්නේ ඇයි?

Answerපිළිතුර: To create a fresh file-system structure the OS can use (usually erasing old data).OS භාවිත කළ හැකි නව ගොනු-පද්ධති ව්‍යුහයක් සෑදීමට (බොහෝ විට පැරණි දත්ත මකයි).

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

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

Scoreලකුණු: 0 / 20

1A directory isඩිරෙක්ටරියක් යනු

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

Hierarchy container.ධුරාවලි භාජනය.

2FAT stands forFAT යනු

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

Classic file system.සම්භාව්‍ය ගොනු පද්ධතිය.

3Contiguous allocation stores a file inඅනුයාත වෙන් කිරීම ගොනුව ගබඩා කරන්නේ

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

One run of blocks.කොටස් දාමයක්.

4Linked allocation usesසබැඳි වෙන් කිරීම භාවිත කරන්නේ

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

Block chain.කොටස් දාමය.

5Indexed allocation keepsදර්ශක වෙන් කිරීම තබා ගන්නේ

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

Index + data.දර්ශක + දත්ත.

6External fragmentation is typical ofබාහිර විඛණ්ඩනය සාමාන්‍යයෙන්

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

Holes between contiguous files.අනුයාත ගොනු අතර සිදුරු.

7Defragmentation mainly helpsවිඛණ්ඩනය ඉවත් කිරීම ප්‍රධාන වශයෙන් උදව් වන්නේ

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

Pack file pieces.ගොනු කැබලි එකට.

8Formatting a disk usuallyතැටියක් ආකෘතිකරණය සාමාන්‍යයෙන්

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

Prepare file system.ගොනු පද්ධතිය සකසයි.

9Access privileges controlප්‍රවේශ වරප්‍රසාද පාලනය කරන්නේ

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

Permissions.අවසර.

10Path /home/amma/notes.txt starts atමාර්ගය /home/amma/notes.txt අරඹන්නේ

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

Root of the tree.ගසේ මුල.

11With contiguous allocation A=2,B=3,C=1 from block 0 on a 10-block disk, free blocks =අනුයාතව A=2,B=3,C=1 කොටස් 0 සිට කොටස් 10 තැටියක, නිදහස් =

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

2+3+1=6 used; 10−6=4.2+3+1=6; 10−6=4.

12One-level index + 5 data blocks uses how many blocks?එක්-මට්ටමේ දර්ශක + දත්ත 5 කට කොටස් කීයක්ද?

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

1+5=6.1+5=6.

13Which term means: “Named collection of related bytes”?“නම් කළ අදාළ බයිට් එකතුවකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

File – Named collection of related bytes.ගොනුව – නම් කළ අදාළ බයිට් එකතුවකි.

14Which term means: “.exe .jpg .txt etc. hint how to open the file”?“ගොනුව විවෘත කරන ආකාරය ඉඟි කරයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

File type / extension – .exe .jpg .txt etc. hint how to open the file.ගොනු වර්ගය / දිගුව – ගොනුව විවෘත කරන ආකාරය ඉඟි කරයි.

15Which term means: “Container in the file hierarchy”?“ගොනු ධුරාවලියේ භාජනයකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Directory / folder – Container in the file hierarchy.ඩිරෙක්ටරිය / ෆෝල්ඩරය – ගොනු ධුරාවලියේ භාජනයකි.

16Which term means: “On-disk organisation of files and free space (e.g. FAT)”?“තැටියේ ගොනු සහ නිදහස් ඉඩ සංවිධානය (උදා: FAT)” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

File system – On-disk organisation of files and free space (e.g. FAT).ගොනු පද්ධතිය – තැටියේ ගොනු සහ නිදහස් ඉඩ සංවිධානය (උදා: FAT).

17Which term means: “File Allocation Table – a classic simple file system”?“File Allocation Table – සම්භාව්‍ය සරල ගොනු පද්ධතියකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

FAT – File Allocation Table – a classic simple file system.FAT – File Allocation Table – සම්භාව්‍ය සරල ගොනු පද්ධතියකි.

18Which term means: “Read/write/execute rights for users or groups”?“පරිශීලකයින්ට හෝ කණ්ඩායම්වලට කියවීම/ලිවීම/ක්‍රියාත්මක අයිති” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Access privileges – Read/write/execute rights for users or groups.ප්‍රවේශ වරප්‍රසාද – පරිශීලකයින්ට හෝ කණ්ඩායම්වලට කියවීම/ලිවීම/ක්‍රියාත්මක අයිති.

19Which term means: “File stored in neighbouring blocks”?“අසල්වැසි කොටස්වල ගොනුව ගබඩා වේ” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Contiguous allocation – File stored in neighbouring blocks.අනුයාත වෙන් කිරීම – අසල්වැසි කොටස්වල ගොනුව ගබඩා වේ.

20Which term means: “Blocks chained by pointers”?“පොයින්ටර මගින් කොටස් දාමගත වේ” යන්නෙන් අදහස් වන පදය කුමක්ද?

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

Linked allocation – Blocks chained by pointers.සබැඳි වෙන් කිරීම – පොයින්ටර මගින් කොටස් දාමගත වේ.

MCQ answer keyMCQ පිළිතුරු

  1. A – Hierarchy container.ධුරාවලි භාජනය.
  2. B – Classic file system.සම්භාව්‍ය ගොනු පද්ධතිය.
  3. A – One run of blocks.කොටස් දාමයක්.
  4. C – Block chain.කොටස් දාමය.
  5. B – Index + data.දර්ශක + දත්ත.
  6. D – Holes between contiguous files.අනුයාත ගොනු අතර සිදුරු.
  7. A – Pack file pieces.ගොනු කැබලි එකට.
  8. E – Prepare file system.ගොනු පද්ධතිය සකසයි.
  9. A – Permissions.අවසර.
  10. B – Root of the tree.ගසේ මුල.
  11. D – 2+3+1=6 used; 10−6=4.2+3+1=6; 10−6=4.
  12. E – 1+5=6.1+5=6.
  13. E – File – Named collection of related bytes.ගොනුව – නම් කළ අදාළ බයිට් එකතුවකි.
  14. B – File type / extension – .exe .jpg .txt etc. hint how to open the file.ගොනු වර්ගය / දිගුව – ගොනුව විවෘත කරන ආකාරය ඉඟි කරයි.
  15. D – Directory / folder – Container in the file hierarchy.ඩිරෙක්ටරිය / ෆෝල්ඩරය – ගොනු ධුරාවලියේ භාජනයකි.
  16. C – File system – On-disk organisation of files and free space (e.g. FAT).ගොනු පද්ධතිය – තැටියේ ගොනු සහ නිදහස් ඉඩ සංවිධානය (උදා: FAT).
  17. D – FAT – File Allocation Table – a classic simple file system.FAT – File Allocation Table – සම්භාව්‍ය සරල ගොනු පද්ධතියකි.
  18. C – Access privileges – Read/write/execute rights for users or groups.ප්‍රවේශ වරප්‍රසාද – පරිශීලකයින්ට හෝ කණ්ඩායම්වලට කියවීම/ලිවීම/ක්‍රියාත්මක අයිති.
  19. C – Contiguous allocation – File stored in neighbouring blocks.අනුයාත වෙන් කිරීම – අසල්වැසි කොටස්වල ගොනුව ගබඩා වේ.
  20. E – Linked allocation – Blocks chained by pointers.සබැඳි වෙන් කිරීම – පොයින්ටර මගින් කොටස් දාමගත වේ.

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

1Explain why file types are needed and name three extensions.ගොනු වර්ග අවශ්‍ය වන්නේ ඇයිදැයි පැහැදිලි කර දිගු තුනක් නම් කරන්න. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Tell OS/apps how to interpret bytes (1); e.g. .exe .jpg .txt (1); mismatch can open wrongly (1).බයිට් අර්ථකථනයට (1); උදා .exe .jpg .txt (1); නොගැළපීමෙන් වැරදිව විවෘත විය හැක (1).

2Describe a directory hierarchy with a short path example.කෙටි මාර්ග උදාහරණයක් සමඟ ඩිරෙක්ටරි ධුරාවලිය විස්තර කරන්න. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Tree from root (1); path names each step (1); example /home/user/file (1).මුල සිට ගස (1); මාර්ගය එක් එක් පියවර (1); උදාහරණය (1).

3Compare contiguous and linked allocation (one advantage each, one drawback each).අනුයාත සහ සබැඳි වෙන් කිරීම සංසන්දනය කරන්න (වාසි/අවාසි බැගින්). (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Contiguous: fast sequential / fragmentation (2); linked: easy grow / slow random (2).අනුයාත: වේගවත් අනුක්‍රමික / විඛණ්ඩනය (2); සබැඳි: වර්ධනය පහසු / අහඹු මන්දගාමී (2).

4A 10-block disk stores A=2,B=3,C=1 contiguously from 0. Give ranges and free count.කොටස් 10 තැටියක A=2,B=3,C=1 0 සිට අනුයාතව. පරාස සහ නිදහස් ගණන දෙන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
A 0–1, B 2–4, C 5–5 (2); free 4 (1).A 0–1, B 2–4, C 5–5 (2); නිදහස් 4 (1).

5Explain defragmentation and formatting briefly.විඛණ්ඩනය ඉවත් කිරීම සහ ආකෘතිකරණය කෙටියෙන් පැහැදිලි කරන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Defrag packs scattered blocks (1); format builds file-system structure / may erase (2).විඛණ්ඩනය ඉවත් කිරීම කොටස් එකට (1); ආකෘතිකරණය ගොනු පද්ධතිය සාදයි / මකයි (2).

🎮 Game🎮 ක්‍රීඩා

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

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

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

  • Files have types/extensions and attributes; directories form a hierarchy.ගොනුවල වර්ග/දිගු සහ ගුණාංග ඇත; ඩිරෙක්ටරි ධුරාවලියක් සාදයි.
  • File systems (e.g. FAT) organise data on disk.ගොනු පද්ධති (උදා: FAT) තැටියේ දත්ත සංවිධානය කරයි.
  • Security uses passwords and access privileges.ආරක්ෂාවට මුරපද සහ ප්‍රවේශ වරප්‍රසාද යොදයි.
  • Allocation: contiguous, linked, indexed – each with trade-offs.වෙන් කිරීම: අනුයාත, සබැඳි, දර්ශක – එක් එක් හුවමාරුවක් සමඟ.
  • Defragmentation packs blocks; formatting prepares a file system.විඛණ්ඩනය ඉවත් කිරීම කොටස් එකට; ආකෘතිකරණය ගොනු පද්ධතිය සකසයි.

Downloadsබාගත කිරීම්

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

Next noteඊළඟ සටහන 5.3 →

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