Skip to content
GATEiit

GATE CSE 2026 Session 2 Q33: Usable host addresses with subnet mask 255.255.240.0

Question

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)

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 4094 (official GATE 2026 final answer key)

Concept used: Usable hosts =2h−2= 2^h - 2, where hh is the number of host bits.

First step: 240 = 11110000, so the mask has 20 one-bits and 12 host bits.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2026 Session 2 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key