CS FundamentalsHardTCS NQT · Infosys interview pattern
An organisation owns 172.20.0.0/16 and needs equal-sized subnets, each with at least 1000 usable host addresses. What is the maximum number of such subnets?
- A. 32
- B. 64
- C. 128
- D. 16
Correct answer: B. 64
1000 hosts need 10 host bits (2¹⁰ − 2 = 1022; 9 bits give only 510). That makes each subnet a /22, and 16 − 10 = 6 bits are left for subnetting: 2⁶ = 64. 128 uses only 9 host bits.
More Computer Networks questions
- An access-control list needs the wildcard mask that corresponds to the subnet mask 255.255.248.0. What is it?
- In distance-vector routing, which technique stops a router from advertising a route back out of the interface through which it learned…
- An ISP wants to advertise the eight networks 192.168.4.0/24 through 192.168.11.0/24 with a single CIDR prefix. What is the smallest single…
- You type https://shop.example.com into a browser that has nothing cached. In which order do these happen? 1. TLS handshake 2. DNS…
- What is the shortest valid form of the IPv6 address 2001:0db8:0000:0000:0000:ff00:0042:8329?
- Starting from 172.16.32.0/23, subnets are allocated largest first, each at the next aligned boundary, for LANs needing 200, 100 and 50…