අන්තර්ගතයට යන්න
mcqdinethlive

Subnetting the whole IPv4 address space in 2026 MCQ 13

2026 Paper I Q13 solved step by step. The answer and why it is right, the past papers that asked the same skill, the book pages behind it, a five-step method, a shortcut and real uses of the same prefix tree.

සිංහලෙන් කියවන්න

This post solves 2026 P-I Q13 and shows where it comes from. The question gave no IP address. It gave the whole IPv4 address space and asked for a network mask, so many students felt it was a new kind of question. The post checks that against every past paper from 2011 to 2026.

The post has four parts:

  • The answer: the question, its answer and why it is right (section 1).
  • Where it comes from: the past papers that asked the same skill and what is new in 2026, and the syllabus and Teachers' Guide pages behind it (sections 2 and 3).
  • How to solve it: a full method and a fast shortcut (sections 4 and 5).
  • Where it is used: real networks that use the same idea, and past paper questions to try (sections 6 and 7).

1. The question and its answer

The question is on page 2 of the Sinhala paper. Here is our English translation.

2026 P-I Q13. Which network mask divides the whole IPv4 address space equally into 4 subnets? (1) /2 (2) /4 (3) /8 (4) /24 (5) /26

The Sinhala paper reads "සම්පූර්ණ IPv4 ලිපින අවකාශය, උපජාල 4 කට සමානව බෙදනු ලබන ජාල ආවරණය (network mask) කුමක් ද?".

The answer is (1) /2. In dotted decimal, that mask is 192.0.0.0.

Why /2 is right

  • An IPv4 address has 32 bits (3.1). The whole space has 2^32 = 4,294,967,296 addresses.
  • "The whole space" means no bit is fixed yet. So the starting prefix is /0.
  • Four equal parts need 2 bits, because 2^2 = 4. The two bits give 00, 01, 10 and 11.
  • The new prefix is 0 + 2 = /2. Each part has 2^30 = 1,073,741,824 addresses.
  • Check: 4 × 2^30 = 2^32. Nothing is left over and nothing overlaps.

The Sinhala paper says "ජාල ආවරණය (network mask)", not "subnet mask". That is the term the Sinhala Teachers' Guide uses for the class masks /8, /16 and /24 (G12 Teachers' Guide 6.7, page 156) (G12 ගුරු අත්පොත 6.7, පිටුව 175). The meaning is the same here. The Sinhala books call a subnet mask "උපජාල ආවරණ" (විෂය නිර්දේශය 6.7, පිටුව 21), and the Sinhala Resource Book glossary writes "උප ජාල ආවරණය" (Resource Book, page 162) (Resource Book, පිටුව 173).

The Sinhala books also use three words for "address". The paper says "ලිපින", the Sinhala Teachers' Guide says "ලිපියොමු" and the Sinhala syllabus says "IP යොමු". All three mean an IP address.

2. Is it a new question format

The skill is old, the frame is new. Students who felt it was new were half right.

The same skill in earlier papers

The task "split a block into equal subnets and give the mask" is one of the most common Unit 6 tasks. These questions ask the same skill:

  • 2017 P-II B Q2: split the private block 10.0.0.0 with mask 255.0.0.0 into 4 subnets (old syllabus).
  • 2018 P-II B Q2(a): subnet a /24 block for six departments (old syllabus).
  • 2020 P-I Q21: the subnet mask for 16 subnets of a Class C network.
  • 2020 P-II B Q6(b): four subnets from 192.168.14.0/24.
  • 2022 (held 2023) P-I Q18: bits needed for 8 subnets from 193.1.1.0/24.
  • 2023 (held 2024) P-II B Q6(d): four equal subnets from 192.168.56.32/26.
  • 2024 P-II B Q6(c): six subnets from 192.168.100.0/24.
  • 2026 P-II B Q6(c): split the rest of 192.168.0.0/16 equally between two new departments.

Older papers asked related MCQs too. 2011 P-I Q17 and 2024 P-I Q22 count hosts from a mask or a prefix. 2016 P-I Q23 asks a mask for 500 devices. 2023 (held 2024) P-I Q22 tests the size of the IPv4 space. Across the 8 new-syllabus papers, this level (6.7) holds 7 MCQs and 61 Paper II marks.

2017 P-II B Q2 is the closest ancestor. It also splits a huge block into 4. It starts at /8, so its answer prefix is not /2.

What is new in 2026

No earlier past paper from 2011 to 2026 starts from the whole address space. Four things changed:

  1. No address at all. Every earlier question gave a block, such as 192.168.14.0/24. Q13 gives only "the whole space".
  2. A /0 start. The student must see that the whole space means zero fixed bits. The Teachers' Guide has no example that starts there.
  3. Bare prefixes as options. Earlier Paper I subnet MCQs (2016 P-I Q23, 2020 P-I Q21) gave masks in dotted decimal. Q13 gives only /2, /4, /8, /24 and /26.
  4. A tiny answer. Students practise answers from /24 to /30. An answer of /2 looks wrong at first sight, so it tests understanding, not memory.

The same paper did the same thing in Paper II. 2026 P-II B Q6(b) asks the size of the 192.168.0.0/16 space. 2026 P-II B Q6(c) splits a large block in two. 2026 moved subnetting from "one /24 office" to "address spaces". That is the real change.

3. How the books build the question

The question takes four printed facts and joins them. Subnetting is a Grade 12 topic (6.7).

The four pieces

  • The outcome. The syllabus outcome reads "Calculates subnet masks and IP address ranges for a given block of IP addresses and network sizes" (Syllabus 6.7, page 21) (විෂය නිර්දේශය 6.7, පිටුව 21). The Sinhala syllabus reads "දෙන ලද IP යොමු කට්ටලයකට සහ ජාලවල ප්‍රමාණයට අනුව උපජාල ආවරණ සහ IP යොමු පරාස ගණනය කරයි". Q13 makes the block as big as it can be.
  • The size of the space. The Teachers' Guide says "IPv4 has only 2^32 addresses" (G12 Teachers' Guide 6.7, page 157) (G12 ගුරු අත්පොත 6.7, පිටුව 176). The Sinhala Guide puts it under "ක්ෂය වන IP ලිපියොමු අවකාශය" (the vanishing IP address space) and says "IPv4 තුළ 232ක ලිපියොමු සංඛ්‍යාවක් පමණක් ඇත". That is the block in Q13.
  • The mask written as a prefix. For Class A, it says "network mask is 8 bits, written /8 or 255.0.0.0" (G12 Teachers' Guide 6.7, page 156) (G12 ගුරු අත්පොත 6.7, පිටුව 175). The Sinhala Guide says "ජාල ආවරණය බිටු 8 ක් වන අතර, /8 හෝ 255.0.0.0 ලෙස ලියා දක්වනු ලැබේ". Q13 uses the same term, "network mask" ("ජාල ආවරණය"), and the same /n form.
  • CIDR. It says organisations "can be allocated any number of addresses" instead of full classes (G12 Teachers' Guide 6.7, page 157) (G12 ගුරු අත්පොත 6.7, පිටුව 176). The Sinhala Guide says "කවර හෝ ලිපියොමු සංඛ්‍යාවක්" and calls CIDR "පන්ති රහිත, වසම්අතර මංහැසිරවීම". A /2 is a CIDR block, not a class.

The class rules on page 156 (Sinhala page 175) add a fifth idea. Class A addresses start with bit 0, Class B with 10, Class C with 110. A class is a prefix of leading bits. Section 6 shows why that matters for Q13.

The Resource Book has no subnetting chapter

The Resource Book has no help for this question. The Grade 13 Resource Book covers Units 9 to 13 only. It holds "subnet mask" only as a glossary word (Resource Book, page 162) (Resource Book, පිටුව 173). Unit 6 lives in the Grade 12 Teachers' Guide.

The Resource Book does use IP addresses in two practical places. An Arduino web server gets its IP address from DHCP (Resource Book 11.2, page 27) (Resource Book 11.2, පිටුව 31). A locally published website needs a static IP address from the ISP (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 135). The Sinhala Resource Book calls it "ස්ථිතික IP ලිපිනයක්". These are the use cases for embedded systems (11.2) and publishing (10.8) in section 6.

Book errors to read past

The Teachers' Guides print some mistakes on these pages. Read past them:

  • The English Guide writes "CDIR" for CIDR (G12 Teachers' Guide 6.7, page 157) (G12 ගුරු අත්පොත 6.7, පිටුව 176). The Sinhala Guide spells CIDR correctly.
  • The English Guide lists the private range as "772.16.0.0". It is 172.16.0.0 to 172.31.255.255. The Sinhala Guide prints the correct 172.16.0.0 (G12 Teachers' Guide 6.7, page 157) (G12 ගුරු අත්පොත 6.7, පිටුව 176).
  • The English Guide gives Class A "16777214 hosts each (2^24)". 2^24 is 16,777,216 addresses; 16,777,214 is the usable host count. The Sinhala Guide prints "(224)=16777216" hosts, so it counts all 2^24 addresses as hosts (G12 Teachers' Guide 6.7, page 156) (G12 ගුරු අත්පොත 6.7, පිටුව 175).
  • The Sinhala Guide prints 2^32 as "232" and 2^24 as "(224)". The superscripts are lost (G12 ගුරු අත්පොත 6.7, පිටු 175 සහ 176).
  • The Sinhala Guide ends Class C at "233.255.255.0". The English Guide has the correct 223.255.255.0 (G12 Teachers' Guide 6.7, page 156) (G12 ගුරු අත්පොත 6.7, පිටුව 175).
  • The English syllabus gives 6 periods for this level (Syllabus 6.7, page 21). The English Guide (G12 Teachers' Guide 6.7, page 155), the Sinhala syllabus (විෂය නිර්දේශය 6.7, පිටුව 20) and the Sinhala Guide (G12 ගුරු අත්පොත 6.7, පිටුව 173) give 5.

4. The analytical method

These five steps solve any "split a block equally" question. They work for /24 blocks and for the whole space.

The five steps

  1. Find the start prefix p. Count the bits that the block already fixes. A /24 block fixes 24 bits. The whole space fixes 0 bits, so p = 0.
  2. Find the bits to borrow b. Take the smallest b where 2^b is at least the number of subnets. For 4 subnets, b = 2.
  3. Write the new prefix. New prefix = p + b. For Q13, 0 + 2 = /2.
  4. Check the size. Each subnet has 2^(32 − new prefix) addresses. Multiply by the number of subnets. The result must equal the size of the start block.
  5. List the ranges. Find the octet where the borrowed bits sit. The step in that octet is 256 ÷ 2^b. For Q13, the bits sit in the first octet, so the step is 64.

When the number is not a power of 2

Round b up. Five subnets need 3 bits, because 2^2 = 4 is too few and 2^3 = 8 is enough. That gives 8 subnets, and 5 of them are used. Several past paper parts ask exactly this, so practise it.

Change the prefix to dotted decimal

Write the prefix as 1s from the left. /2 is 11000000.00000000.00000000.00000000. The first octet 11000000 is 192 (3.1). So /2 = 192.0.0.0.

5. The shortcut

In the exam hall, one rule replaces the five steps.

The doubling rule

Each doubling of the number of subnets adds 1 to the prefix. Start at the block's prefix and count the doublings.

  • Whole space: start at /0. 1 → 2 → 4 is two doublings. Answer /2.
  • A Class A block: start at /8. Four subnets give /10.
  • A /24 block: start at /24. Four subnets give /26.

The four traps in Q13

  • /4 is the number 4 written as a prefix. From the whole space, /4 makes 2^4 = 16 subnets.
  • /8 is the Class A habit from the Teachers' Guide table. It makes 256 subnets.
  • /24 is the Class C habit. It makes 16,777,216 subnets.
  • /26 is the trap for strong students. It is the answer for 4 subnets of a /24. 2020 P-II B Q6(b) even printed its first row with mask 255.255.255.192, which is /26. Q13 turns that memory into a trap.

6. Practical use cases

Q13 looks abstract, but the same prefix tree runs inside every router.

The default route is /0

The CIDR standard says the route to 0.0.0.0/0 "is used as a default route" (RFC 4632, section 5.1). A home router sends every packet with no better match to the ISP through this route. Firewall and cloud rules also use 0.0.0.0/0 to mean "any address". So /0 is not a trick. It is the most used route on the Internet.

VPNs split the space in two

A VPN must catch all traffic without deleting the normal default route. OpenVPN's def1 option uses "0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0" (OpenVPN community wiki). A longer prefix wins over a shorter one, so the two /1 halves win. This is Q13 with 2 subnets instead of 4.

The old classes are prefix blocks

The Teachers' Guide rules for leading bits (G12 Teachers' Guide 6.7, page 156) (G12 ගුරු අත්පොත 6.7, පිටුව 175) make each class a prefix:

  • Class A is first bit 0: the block 0.0.0.0/1, the first two quarters of Q13.
  • Class B is first bits 10: the block 128.0.0.0/2, exactly the third quarter of Q13.
  • Class C is first bits 110: the block 192.0.0.0/3, inside the fourth quarter.

So the answer to Q13 also explains why Class B runs from 128 to 191. That is a good check in the exam.

Share a job between four servers

A security team that scans the whole IPv4 space, or searches a year of logs by source address, can give one /2 to each of four servers. No address is missed and no address is checked twice. This is our own example, but it is the normal way to split such work.

Where the Resource Book meets it

An Arduino board asks a DHCP server for an address (Resource Book 11.2, page 27) (Resource Book 11.2, පිටුව 31). A school website published from its own server needs a static IP address from the ISP (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 135). Each of those addresses sits inside one /2 quarter of Q13. Embedded systems (11.2) and web publishing (10.8) both depend on the addressing of 6.7.

7. Past paper questions to try

Use the five steps on each question. Then check with the doubling rule. The answers are not in this post.

Split a block equally

  • 2023 (held 2024) P-II B Q6(d): four equal subnets from a /26.
  • 2020 P-II B Q6(b): four subnets from a /24.
  • 2026 P-II B Q6(c): the rest of a /16 between two departments.

Count bits and masks

  • 2020 P-I Q21: 16 subnets of a Class C network.
  • 2022 (held 2023) P-I Q18: 8 subnets from a /24.
  • 2024 P-II B Q6(c): six subnets from a /24.

Address space size

  • 2023 (held 2024) P-I Q22: statements about classes, the IPv4 space and private ranges.
  • 2026 P-II B Q6(b): the number of addresses in 192.168.0.0/16.
  • 2017 P-II B Q2: four subnets from the 10.0.0.0 private block (old syllabus, extra practice).

The 2023 (held 2024) and 2026 keys are not official. The 2022 (held 2023) and 2024 keys come from third-party schemes.

Sources

  • 2026 P-I Q13: G.C.E. (A/L) 2026 ICT Paper I, Sinhala medium, page 2 (AL/2026/20/S-I). The key is our own worked answer, not official.
  • Past papers 2011 to 2026: G.C.E. (A/L) ICT question papers, Department of Examinations, Sri Lanka.
  • NIE A/L ICT Syllabus (2017), English pages 21 to 22 and Sinhala pages 20 to 21 (6.7).
  • G12 Teachers' Guide (English), pages 155 to 157; G12 Teachers' Guide (Sinhala), pages 173 to 176.
  • G13 Resource Book (English), pages 27, 123 and 162; G13 Resource Book (Sinhala), pages 31, 135 and 173.
  • RFC 4632, Classless Inter-domain Routing (CIDR), sections 3.1 and 5.1: https://www.rfc-editor.org/rfc/rfc4632.html
  • OpenVPN community wiki, IgnoreRedirectGateway (the def1 flag): https://community.openvpn.net/openvpn/wiki/IgnoreRedirectGateway

මේ Explained එක බෙදාගන්න

A/L ICT කරන යාළුවෙකුට යවන්න.

මේ ලිපියට link කරන ලිපි

  1. English

    Data communication and networking from a URL to a signal

    How A/L ICT papers test the networking unit (Unit 6), one website visit broken into DNS, TCP, IP, frames and signals, why waves are in the unit, how it joins web, IoT and other lessons, and daily scenarios to learn it.

  2. English

    Is 2026 MCQ 13 a new subnetting format

    2026 Paper I Q13 asked for the mask that splits the whole IPv4 space into four. The skill is old and the frame is new, and a ten-second shortcut gives the answer.

තවත් Explained

  1. Layer 2 vs Layer 3 switch differences and real uses

    How a Layer 2 switch and a Layer 3 switch differ, why each exists, where networks use them now and next, and the A/L ICT past paper questions that test them, with answers.

    Englishපියවර 7ක්
  2. A/L ICT second attempt study plan for 2027 by unit weight and past papers

    A study plan for students who sit A/L ICT again in 2027. It covers the 2026 results, the units that carry most marks, a lesson method with past papers, a month by month timeline and the free papers on this site.

    Englishපියවර 7ක්
  3. Python functions with lists of tuples and sequential search in 2026 Paper II Q9

    2026 Paper II Q9 worked part by part. The fine rule and its two readings, a function with if and elif, a list of tuples built with a loop, a sequential search that returns -1, and the same skills in Paper I.

    Englishපියවර 7ක්
All Explained