The GATE Grind

GATE 2024 CS (CS2) – Question 38

Computer Networks · IPv4: Addressing, CIDR, Fragmentation and NAT · 2 marks · Multiple choice

Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?

  1. 10.12.2.0/23
  2. 10.12.2.0/24
  3. 10.12.0.0/22
  4. 10.12.2.0/22

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) 10.12.2.0/23

Explanation

The range spans 2 × 256 = 512 addresses starting at a boundary aligned to 512 (third octet 2), which is a /23.