Related Articles

# GATE | GATE-IT-2004 | Question 26

• Last Updated : 09 Mar, 2018

A subnet has been assigned a subnet mask of 255.255.255.192. What is the maximum number of hosts that can belong to this subnet?
(A) 14
(B) 30
(C) 62
(D) 126

Explanation: The given subnet mask, 255.255.255.192, in binary is- 11111111.11111111.11111111.1100000
Number of bits for the network prefix is- 8 + 8 + 8 + 2 = 26
Number of bits avaiable for hosts – 32 – 26 = 6
Number of addresses available =
The first address is reserved for the subnet and the last address is reserved as the broadcast address.
So, number of host addresses = 64 – 2 = 62
Therefore option (C) is correct.

This explanation is provided by Chirag Manwani.

Quiz of this Question

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up