Subnetting Questions and Answers

By BYJU'S Exam Prep

Updated on: September 25th, 2023

Subnetting Questions and Answers are provided here for candidates who are actively preparing for the GATE CSE exam 2023. Subnetting questions and answers can provide a quick overview of the types of questions to be expected in the exam on this topic.

Subnetting will be better understood by using objective-based MCQ questions and answers. 5 specially picked questions are mentioned here based on the recent GATE CSE exam pattern. Attempt and get the detailed answer to each Subnetting question mentioned in this article. 

Subnetting Question 1

On a local subnet with the subnet mask, what is the maximum number of IP addresses that can be issued to hosts? 

  1. 8190
  2. 4094
  3. 16382
  4. 2048


A. 8190


The given subnet mask is The third octet has 224, which means three consecutive ones that are:

Subnetting Questions and Answers

So the number of zeros = 13

The maximum number of IP addresses that hosts can issue is 213 – 2, which is 8190.

Therefore option A is correct.

Subnetting Question 2

Suppose an organization want 6 subnets, and each subnet has at least 22 hosts. What subnet mask should the organization use to fulfil the above condition?





We see that the given subnet mask is of a class C IP address. So the subnetting is done in the last octet.

 If the organization want 6 subnets, so the 3 bits are required that is 23 = 8.

The remaining bits in the last octet = 8 – 3 = 5.

So the number of hosts = 25 – 2 = 30

But the organization won’t only 22 host, which is less than 30. Hence the organization’s condition is fulfilled.

Therefore the subnet mask is:

Subnetting Questions and Answers

Thus option B is correct.

Subnetting Question 3

Consider a subnet mask of with an IP address of The network wants to manually create subnets or define them as zero subnets and DBA subnets.

Consider the following assertions:

  1. The subnet ID for the zero subnets is
  2. The zero subnet’s last host is
  3. The DBA subnet’s first host is
  4. is the DBA of the DBA subnet.

Which of the following assertion is true?

  1. Statement I, II, and III are true.
  2. Statement I, II, and IV are true.
  3. Statement I and IV are not true.
  4. None of these


B. Statement I, II, and IV are true


Given, IP address =

Subnet mask = decimal) = binary)

As the given IP is of class C, so the total subnets = 21 = 2

Here, we have explicitly configured the zero subnet and DBA.

Statement I:

Subnetting Questions and Answers

So, the zero subnet ID is 


Statement II:

Last host of the zero subnets.

Subnetting Questions and Answers


Statement III:

Now, IP address = 1100011

Now, we need to calculate the first host of the DBA subnet.

So, the required IP is :

Subnetting Questions and Answers 


Statement IV:

Here, we need to find the DBA of the DBA subnet.

So, the required IP is:

Subnetting Questions and Answers


Hence, option B is the correct answer.

Subnetting Question 4

The subnet mask of a subnetwork is, IP address of a host in this subnet is What is the number of the subnet in that network?

  1. 25
  2. 28
  3. 8
  4. Not possible to determine


B. 28


Given that, is the IP address of class B, with 16 bits for network ID, the rest 16 bits for host & subnet ID.
Subnet mask =255.255.11100000.000000000
So 3 bits for subnet ID.
So the number of the subnet in the network is 23= 8

Therefore option B is correct.

Subnetting Question 5

If the subnet mask is, the number of subnets is X, and the number of hosts in each subnet is Y in Class C, what is X+Y?

  1. 30
  2. 38
  3. 32
  4. 25

Solution is the default subnet mask for Class C.

We steal bits from the host while subnetting.

As a result, the subnet mask is 255.255.224, or 11111111.11111111.11111111.11100000.

The default mask is 11111111.11111111.11111111.00000000. Therefore, we shall borrow three bits from the host part.

The total amount of subnet bits is three.

Also, the total number of host bits is equal to 5.

As a result, subnet number (X) = 2subnet bits= 8

And each subnet’s number of hosts (Y) = 2host bits – 2 = 30

X=8 and Y=30

X + Y = 38

Hence, the option B is correct.

☛ Related Questions:

The section with the maximum shape factor is the___.

Which is not a valid constructor of thread class

Our Apps Playstore
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303
Home Practice Test Series Premium