GateAI
IPv4, CIDR and NAT

GATE CSE 2015 Set 3 · Q38

NAT2 marksEasy

Time

In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is _________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 158

IPv4, CIDR and NAT

We are given the CIDR block prefix /27 with an IP in the network 200.10.11.144/27.

  1. For a /27 prefix, the subnet mask is:

    255.255.255.224255.255.255.224

    The number of host bits is 32−27=532 - 27 = 5. Block size in the 4th octet = 25=322^5 = 32.

  2. The network address is found by bitwise ANDing the given 4th octet with the mask:

    144=100100002144 = 10010000_2
    Mask=224=111000002\text{Mask} = 224 = 11100000_2
    Network 4th octet=144&224=128=100000002\text{Network 4th octet} = 144 \& 224 = 128 = 10000000_2
  3. The subnet range for 200.10.11.128/27 is:

    • Network address:200.10.11.128

    • First assignable host IP:200.10.11.129

    • Last assignable host IP:200.10.11.158

    • Directed broadcast address:200.10.11.159 (128+32−1=159128 + 32 - 1 = 159)

Therefore, the fourth octet of the last assignable host IP address is 158.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This IPv4, CIDR and NAT previous year question is Q38 of the GATE CSE 2015 Set 3 paper. Find more GATE CSE PYQs on IPv4, CIDR and NAT in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related IPv4, CIDR and NAT PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

IPv4, CIDR and NAT in GATE CSE

IPv4, CIDR and NAT has 14 GATE CSE PYQs across 10 papers from 2012 to 2025. 3 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2015 Set 3.

How GATE tests IPv4, CIDR and NAT

More from GATE CSE 2015 Set 3

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2015 Set 3 · Q38 · NAT

In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.