Interview Q&A / Computer Networks

INTERVIEW Q&A · 55 QUESTIONS

Computer Networks interview questions

What happens when you open a website, TCP vs UDP, DNS and HTTP.

  1. Convert 255.255.255.240 to CIDR notation, and /21 to a dotted mask.

    255.255.255.240 has 28 one-bits (24 plus 4 from 240 = 11110000), so it is /28, giving 16 addresses and 14 usable hosts. A /21 is 255.255.248.0.

    BeginnerQuick answer1 min read
  2. Given 192.168.10.77/27, find the network address, broadcast address and host range.

    A /27 has blocks of 32 addresses. 77 falls in the block starting at 64, so network is 192.168.10.64, broadcast is 192.168.10.95, and usable hosts are .65 to .94 (30 hosts).

    BeginnerQuick answer1 min read
  3. How do you divide 192.168.1.0/24 into four equal subnets?

    Borrow 2 host bits (2^2 = 4 subnets) to get /26. The subnets are 192.168.1.0/26, .64/26, .128/26 and .192/26, each with 64 addresses and 62 usable hosts.

    BeginnerQuick answer1 min read
  4. How many usable hosts are in a /26 subnet, and what is the general formula?

    A /26 leaves 6 host bits, so 2^6 = 64 addresses, of which 62 are usable because the first is the network address and the last is the broadcast address. The formula is 2^(32 - prefix) minus 2.

    BeginnerQuick answer1 min read