Skip to content
GATEiit

GATE CSE 2024 Session 2 Q38: CIDR prefix covering 10.12.2.0 to 10.12.3.255

Question

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

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2024 final answer key)

Concept used: A block of 2k2^k aligned addresses has prefix length 32−k32 - k.

First step: The range holds 512 = 292^9 addresses, and 10.12.2.0 is a multiple of 512 in the address space.

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 2024 Session 2 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key