#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
⚡ FREE · INSTANT FEEDBACK

Computer Networks MCQ Quiz: OSI, TCP/IP and IP Addressing Made Clear

Test your networking basics with 21 questions and short explanations.

  • 🌐 21 questions
  • 🔢 Subnet maths included
  • 💡 Explanations for each

How to use the Computer Networks MCQ Quiz

  1. 1. Pick the lengthChoose 10 Computer Networks questions or all 21, with shuffle on or off.
  2. 2. Answer each questionTap an option to see at once if it is right, plus a short Computer Networks explanation.
  3. 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.

More free tools

See all free tools