CS FundamentalsModerateTCS NQT · Infosys interview pattern

What is the shortest valid form of the IPv6 address 2001:0db8:0000:0000:0000:ff00:0042:8329?

  1. A. 2001:db8::ff:42:8329
  2. B. 2001:db8::ff00:42:8329
  3. C. 2001:db8:0:0:0:ff00:42:8329:
  4. D. 2001:db8::ff00::42:8329

Correct answer: B. 2001:db8::ff00:42:8329

Drop leading zeros in each group (0db8 → db8, 0042 → 42) and replace the single longest run of zero groups with ::. “ff00” keeps its trailing zeros; :: may appear only once, so the last option is invalid.

More Computer Networks questions

Exams that ask this topic