If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is … (answer in integer)
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2026 Set 2 · Q33
Time
Your answerNumerical answer
Solution
Official answer: 4094
CIDR NotationTo find the maximum number of assignable IP addresses for network interfaces (hosts):
Convert the subnet mask to binary:
Count the network and host bits:
Number of prefix (network/subnet) bits
Number of host bits
Calculate total and assignable host addresses:
Total IP addresses in this subnet
Two addresses are reserved in standard IPv4 subnetting:
Network address (all host bits are )
Directed broadcast address (all host bits are )
Thus, the maximum number of IP addresses that can be assigned to network interfaces is 4094.
Try the question first, then check your work.
Examiner trap
Determine the number of host bits from the given 32-bit subnet mask. The number of assignable host addresses is .
This CIDR Notation previous year question is Q33 of the GATE CSE 2026 Set 2 paper. Find more GATE CSE PYQs on CIDR Notation in Computer Networks, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related CIDR Notation PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
CIDR Notation has 7 GATE CSE PYQs across 7 papers from 2022 to 2026. This is the only 1-mark NAT question among them, and it is the only one in GATE CSE 2026 Set 2.
How GATE tests CIDR NotationIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.