How to use the Computer Networks MCQ Quiz
- 1. Pick the lengthChoose 10 Computer Networks questions or all 21, with shuffle on or off.
- 2. Answer each questionTap an option to see at once if it is right, plus a short Computer Networks explanation.
- 3. See your scoreFinish to get your Computer Networks score and a review of all your answers.
What this quiz covers
Computer networks is a core CS subject and a regular part of technical interviews. The quiz covers:
- Models: the 7 OSI layers, what each does, and the names for data at each layer.
- Protocols: TCP vs UDP, the three-way handshake, HTTP and HTTPS ports, SMTP, SSH and ICMP.
- Addressing: IPv4 vs IPv6 sizes, MAC addresses, private ranges, subnet masks and usable hosts.
- Services: DNS, DHCP and ARP.
- Devices and topologies: switches, routers, hubs and the star topology.
Worked example and how to use it
Example: How many usable host addresses are in a /24 subnet? A /24 leaves 32 − 24 = 8 bits for hosts, giving 2⁸ = 256 addresses. Two are reserved: the network address (like 192.168.1.0) and the broadcast address (192.168.1.255). So there are 254 usable hosts. The same formula, 2ⁿ − 2, works for any subnet: a /26 gives 2⁶ − 2 = 62.
Memory aids that help:
- OSI from bottom to top: Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application).
- The handshake is SYN, SYN-ACK, ACK: ask, agree and confirm.
- Ports to know by heart: 22 SSH, 25 SMTP, 53 DNS, 80 HTTP, 443 HTTPS.
See real status codes in the HTTP status codes reference, which ties the Application layer to what developers see every day.
Frequently asked questions
Does it follow a specific textbook?
No. It covers standard topics found in all common networking textbooks and syllabi.
Is subnetting covered in depth?
This quiz has the core subnet questions. Deeper subnetting practice needs a dedicated set.
Is it useful for interviews?
Yes. OSI, TCP vs UDP, DNS and the handshake are among the most asked networking questions.
Is it free?
Yes, completely free. Answering is open to everyone; the final score asks for your name and WhatsApp number once, across all Uncodemy tools.