Computer Networking MCQs

How computers talk to each other — networks, addresses, protocols and devices, from a home LAN to the internet.

Facts checked 28 November 2026.273 practice MCQs on this topic

Computer Networking — Study Notes

What to learn in Computer Networking

This topic is how computers talk to each other — from two computers sharing a printer in one room, to the whole internet. Learn it in the order of the sections below: first what a network is, then the models that describe it, then how data travels, then addressing, then protocols and ports, then devices and cables, then topologies, then wireless, then tools and security, and last the history. There are 273 practice questions on this topic in the bank, drawn from real past papers and from new questions written to fill the gaps the papers never asked. Learn the facts in the sections below, then test yourself with the questions at the foot of the page. The tables in this topic — the OSI layers, the IP classes and the port numbers — are the parts the examiners ask most, so learn them by heart.

A. Network basics — what a network is, and its types

A network is two or more computers connected together so they can share data, printers and an internet connection. The five things every communication system needs are a message, a sender, a receiver, a medium and a protocol — remember those five, because the examiners ask them as one question. In a peer-to-peer network all the computers are equal and share directly with each other, with no central server. In a client-server network one computer, the server, provides shared files, printers and services, and the other computers, the clients, use them. The internet itself is a network of networks — an internetwork — but in exam papers it is usually called a WAN, and that is the answer the examiners expect. An intranet uses the same TCP/IP and web technology as the internet, but it is private to one organisation. An extranet extends an organisation's intranet to selected outside partners, such as suppliers or clients.

Network types by size, smallest to largest
  • PAN (Personal Area Network) — the network around one person, such as Bluetooth devices, about 10 metres
  • LAN (Local Area Network) — a small area such as a room, building or campus
  • MAN (Metropolitan Area Network) — a city or a large campus
  • WAN (Wide Area Network) — a large area such as a country or the world
  • Internet — the worldwide network of networks
Intranet, extranet and internet
  • Intranet — a private network inside one organisation, using internet technology
  • Extranet — an organisation's intranet extended to selected outside partners
  • Internet — the public worldwide network, open to everyone

B. Reference models — the OSI seven layers and TCP/IP

Two models describe how network communication works, and you must know both. The OSI model has seven layers, and the examiners ask the order and the job of every layer. Learn the layers from the bottom up: Physical, Data Link, Network, Transport, Session, Presentation, Application. The Physical layer moves raw bits over the cable. The Data Link layer packs bits into frames and works with MAC addresses. The Network layer routes packets between networks and works with IP addresses. The Transport layer carries data end to end between two computers. The Session layer manages a session between two computers. The Presentation layer formats, encrypts and compresses the data. The Application layer is the layer the user meets — web browsers, email and file transfer live here. The TCP/IP model is the practical model the internet actually runs on, and it has four layers: Link, Internet, Transport and Application. Here is the fact that confuses students: some textbooks teach a five-layer version of the internet stack, splitting the Link layer into Physical and Data Link. Both describe the same stack. In the exam the answer is four layers, because that is what RFC 1122, the internet's own standard, names, and it is what the bank asks. The Application layer of TCP/IP covers the OSI Session, Presentation and Application layers together.

The seven OSI layers, bottom to top, with their unit of data
  • 1. Physical — bits — moves raw bits over the cable
  • 2. Data Link — frames — packs bits into frames, uses MAC addresses
  • 3. Network — packets — routes packets between networks, uses IP addresses
  • 4. Transport — segments — carries data end to end
  • 5. Session — manages a session between two computers
  • 6. Presentation — formats, encrypts and compresses data
  • 7. Application — the layer the user meets: web, email, file transfer
The four TCP/IP layers
  • Link — the physical network and the link to it (Physical + Data Link in the five-layer textbook version)
  • Internet — routing and IP addressing
  • Transport — end-to-end delivery (TCP and UDP)
  • Application — everything the user meets: HTTP, FTP, SMTP, DNS, DHCP

C. Data communication — modes, switching and media

Data travels in one of three modes. In simplex mode data flows in one direction only, like a television broadcast. In half-duplex mode data flows in both directions but only one way at a time, like a walkie-talkie. In full-duplex mode data flows in both directions at the same time, like a telephone call. There are three kinds of switching. Circuit switching sets up a dedicated path before any data is sent, and the path stays reserved until the call ends — the traditional telephone network is the classic example. Packet switching breaks data into packets that travel independently and are put back together at the destination — this is how the internet works. Message switching stores the whole message at each intermediate node and forwards it when the next link is free, so it needs no dedicated path. The signal itself weakens as it travels, and that weakening is called attenuation. In a copper cable it is mainly caused by the resistance of the wire. Noise is any unwanted signal that mixes with the data signal and distorts it. An amplifier boosts a signal together with its noise, while a repeater regenerates the original digital signal, which is why a repeater gives a cleaner signal. The data rate of a digital channel is measured in bits per second. Serial communication sends data one bit at a time over a single wire, which is why it suits long distances. Parallel communication sends several bits at once, each over its own separate wire. Twisted-pair cable is twisted so that induced noise is the same on both wires and the receiver can cancel it — the twisting reduces electromagnetic interference and crosstalk between neighbouring pairs.

Transmission modes
  • Simplex — one direction only, like television
  • Half-duplex — both directions, one at a time, like a walkie-talkie
  • Full-duplex — both directions at the same time, like a telephone call
Switching methods
  • Circuit switching — a dedicated path is reserved first; the telephone network
  • Packet switching — data is broken into packets that travel independently; the internet
  • Message switching — the whole message is stored and forwarded at each node; no dedicated path
Guided and unguided media
  • Guided — twisted pair, coaxial cable, fibre optic cable
  • Unguided — radio waves, microwaves, infrared, satellite

D. Addressing — IPv4, IPv6, classes and subnets

Every device on a network has two addresses. The IP address is its logical address, and it can change. The MAC address is its physical address, 48 bits long, burned into the network interface card by the manufacturer, and it does not change. IPv4 addresses are 32 bits long, written as four decimal numbers separated by dots, such as 192.168.1.1. IPv6 addresses are 128 bits long, written in hexadecimal. IPv6 is the latest version of the Internet Protocol, but IPv4 still carries most internet traffic: Google measured about 45 to 50 percent of its users on IPv6 in 2026, and the daily figure first passed 50 percent on 28 March 2026. The IPv4 loopback address, 127.0.0.1, tests the local machine itself. The IPv6 loopback address is ::1. IPv4 addresses are divided into classes by their first number. A subnet mask, such as 255.255.255.0, marks which part of an address is the network and which part is the host. In CIDR notation the same mask is written /24, and a /24 network gives 254 usable host addresses, because two addresses are reserved — the network address and the broadcast address. The default gateway is the router a computer sends its traffic to when the destination is outside its own network. ARP resolves an IP address into a MAC address on the local network, and the mappings a computer learns are kept in its ARP cache. RARP does the reverse: it finds the IP address of a machine from its MAC address.

IPv4 address classes
  • Class A — 1 to 126 — very large networks
  • Class B — 128 to 191 — medium networks
  • Class C — 192 to 223 — small networks
  • Class D — 224 to 239 — multicast, one packet to a selected group
  • Class E — 240 to 255 — experimental, reserved
Special IPv4 ranges to remember
  • 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 — private addresses for use inside a network
  • 127.0.0.1 — loopback, the local machine itself
  • 169.254.0.0/16 — the address a device gives itself when it cannot get one from DHCP
  • 192.0.2.0/24 — reserved for documentation and examples
Subnet sizes — usable host addresses
  • /30 — 2 usable hosts, used for point-to-point links
  • /25 — 126 usable hosts
  • /24 — 254 usable hosts
  • /16 — 65,534 usable hosts

E. Protocols and ports — the numbers to memorise

A protocol is the agreed set of rules that governs how computers communicate. TCP is reliable and connection-oriented: it sets up a connection with a three-way handshake — SYN, SYN/ACK, ACK — and checks that every piece of data arrives. UDP is fast and connectionless: it sends data without setting up a connection and without checking delivery, which is why it suits video calls and live streams. Email has three protocols: SMTP sends email, while POP3 and IMAP receive it. POP3 downloads messages to the device and usually deletes them from the server; IMAP keeps them on the server. DNS translates a domain name into an IP address, and its MX record names the mail server for a domain. DHCP assigns IP addresses automatically, in four steps remembered as DORA: Discover, Offer, Request, Acknowledge. ICMP is the protocol the ping command uses to test whether another host is reachable. The port numbers in the table below are pure memory work, and they are among the most-asked facts in the whole topic. Learn them in pairs: web 80 and 443, file transfer 20 and 21, email 25, 110 and 143, and the rest one by one.

Port numbers to memorise
  • 20 — FTP data, 21 — FTP control
  • 22 — SSH (secure remote access)
  • 23 — Telnet
  • 25 — SMTP (sending email)
  • 53 — DNS
  • 67 — DHCP server, 68 — DHCP client
  • 69 — TFTP
  • 80 — HTTP, 443 — HTTPS
  • 110 — POP3, 143 — IMAP
  • 161 — SNMP (monitoring and managing network devices)
TCP against UDP
  • TCP — reliable, connection-oriented, three-way handshake (SYN, SYN/ACK, ACK)
  • UDP — fast, connectionless, no handshake and no delivery check
Email flow
  • SMTP sends email — port 25
  • POP3 receives email and downloads it to the device — port 110
  • IMAP receives email and keeps it on the server — port 143

F. Devices and cabling — what each box does

Learn each device by the one job it does, and by the address it works with. A network interface card (NIC) connects a computer to the network; the Ethernet card is a network interface card, and it holds the MAC address. A modem, short for modulator-demodulator, converts digital signals to analogue and back again, and connects a computer to the internet over a telephone line. A hub is the simplest device: it sends incoming data out of every port, to all connected devices. A switch is smarter: it forwards a frame only to the intended device, using its MAC address. A bridge joins two similar LAN segments into a single network and works at the Data Link layer. A router joins different networks and forwards packets between them by IP address. A gateway translates between networks that use different protocols. A repeater regenerates a weak signal so it can travel further. A firewall blocks unauthorised access to a network; a packet-filtering firewall checks each packet against rules about its source, destination and port, while a stateful firewall also keeps track of active connections. A proxy server sits between a user's computer and the internet, forwarding requests on the user's behalf. The cables matter too. UTP is unshielded twisted pair, with no shielding around its wires. STP is shielded twisted pair, with a metal shield that protects the signal against electromagnetic interference. Cat5e cable supports up to 1 Gbps, and Cat6 supports up to 10 Gbps over short distances. Ethernet is the standard for wired local networks (IEEE 802.3), and its cables use the RJ-45 connector.

Devices, one job each
  • NIC — connects a computer to the network; holds the MAC address
  • Modem (modulator-demodulator) — connects a computer to the internet over a telephone line
  • Hub — sends incoming data to every connected device
  • Switch — forwards a frame only to the intended device, by MAC address
  • Bridge — joins two similar LAN segments; works at the Data Link layer
  • Router — joins different networks; forwards packets by IP address
  • Gateway — translates between networks using different protocols
  • Repeater — regenerates a weak signal to extend its range
  • Firewall — blocks unauthorised access
  • Proxy server — sits between the user and the internet, forwarding requests
Cables and connectors
  • UTP — Unshielded Twisted Pair, no shielding
  • STP — Shielded Twisted Pair, metal shield against interference
  • Cat5e — up to 1 Gbps
  • Cat6 — up to 10 Gbps over short distances
  • Coaxial cable — a central wire with shielding, used for cable television and older networks
  • Fibre optic cable — carries data as light; fast and immune to electrical interference
  • RJ-45 — the connector for Ethernet cables

G. Topologies and access methods

A topology is the shape of a network. In a bus topology all the computers share one cable, and a break in the cable brings the whole network down. In a star topology every node connects to a central hub or switch, which controls the network — if the central device fails, the whole network fails, which is its single point of failure. In older star networks the central device was a hub; in modern star networks it is a switch, so when a question says 'hub' and the answer is 'star', that is the historical wording, not a mistake. In a ring topology the computers form a closed loop, and data travels in one direction around the ring — that is true for token ring, while FDDI dual-ring networks can send both ways. In a mesh topology every computer connects to every other computer, which makes it the most reliable topology and also the most expensive. A hybrid topology combines two or more topologies, such as a star-bus network. Unicast sends a message to one device, broadcast sends it to every device on the network, and multicast sends it to a selected group. On a wired network, Ethernet uses CSMA/CD: a device listens, sends, and if two devices collide it stops and tries again. On Wi-Fi, CSMA/CA is used instead, because a wireless device cannot detect a collision while it is transmitting. In token passing, a special frame called a token circulates around the ring, and only the device holding the token may transmit; Token Ring networks run at 4 Mbps or 16 Mbps.

Topologies
  • Bus — one shared cable; a break in the cable stops the network
  • Star — every node connects to a central hub or switch; the central device is its single point of failure
  • Ring — a closed loop; data travels in one direction (token ring)
  • Mesh — every computer connects to every other; the most reliable and the most expensive
  • Hybrid — two or more topologies combined, such as star-bus
Access methods and addressing modes
  • CSMA/CD — Ethernet: listen, send, detect a collision and retry
  • CSMA/CA — Wi-Fi: avoid collisions, because a wireless device cannot detect one while transmitting
  • Token passing — only the device holding the token may transmit
  • Unicast — one device; broadcast — every device; multicast — a selected group

H. Wireless — Wi-Fi, Bluetooth and mobile generations

Wi-Fi is wireless local networking, based on the IEEE 802.11 family of standards, and Wi-Fi 6 is 802.11ax. A Wi-Fi hotspot is a place that provides wireless internet access. Bluetooth is short-range wireless for nearby devices, typically over about 10 metres. NFC, Near Field Communication, works over only a few centimetres, about 4 cm, which is why it suits contactless payment. LiFi is a wireless technology that carries data on light waves. The mobile generations are a short history to learn in order: 1G was analogue and carried voice calls only; 2G introduced digital voice calls using the GSM standard; 3G introduced mobile internet and data services; 4G brought fast mobile broadband, and 5G is the fifth generation. In a communication satellite, the repeaters are called transponders, and the GPS constellation has 24 operational satellites. CDMA stands for Code Division Multiple Access.

Wireless technologies
  • Wi-Fi — IEEE 802.11; Wi-Fi 6 is 802.11ax
  • Bluetooth — short-range, about 10 metres
  • NFC — a few centimetres, about 4 cm; contactless payment
  • LiFi — data carried on light waves
  • CDMA — Code Division Multiple Access
Mobile generations
  • 1G — analogue, voice calls only
  • 2G — digital voice calls, GSM
  • 3G — mobile internet and data services
  • 4G — fast mobile broadband (LTE)
  • 5G — the fifth generation

I. Tools, performance and security

Five commands come up again and again. Ping tests whether another host is reachable, using ICMP. Ipconfig shows the IP configuration of a computer in Windows, and ipconfig /all shows it in detail, including the MAC address of each network adapter. Tracert traces the route packets take to reach a destination. Nslookup looks up the IP address of a domain name. Netstat shows active network connections and listening ports. The arp command shows the ARP cache, the table of IP-to-MAC mappings the computer has learned. On performance, learn the four words apart: bandwidth is the maximum data transfer rate a link can carry; throughput is the data rate actually achieved; latency is the delay before data starts to arrive; jitter is the variation in the delay of packets arriving. The MTU, the Maximum Transmission Unit, is the largest single packet that can be transmitted. NAT lets many devices on a private network share a single public IP address. A VPN creates a secure private connection over a public network and encrypts the traffic. A VLAN divides one physical network into separate logical networks. On security, WPA secures Wi-Fi, and SSL/TLS encrypts the traffic between a web browser and a web server — the padlock in the browser. Kerberos is a network authentication protocol that uses tickets issued by a trusted third party. Spoofing is falsifying an email address, IP address or caller identity so the victim believes the message comes from a trusted source. A man-in-the-middle attack is an attacker secretly intercepting communication between two parties. A Denial of Service attack floods a server with so much traffic that legitimate users cannot use it.

Network commands
  • ping — tests whether another host is reachable (uses ICMP)
  • ipconfig — shows the IP configuration; ipconfig /all shows it in detail, including the MAC address
  • tracert — traces the route packets take to a destination
  • nslookup — looks up the IP address of a domain name
  • netstat — shows active connections and listening ports
  • arp — shows the ARP cache, the IP-to-MAC table
Performance words, kept apart
  • Bandwidth — the maximum data transfer rate a link can carry
  • Throughput — the data rate actually achieved
  • Latency — the delay before data starts to arrive
  • Jitter — the variation in the delay of packets arriving
  • MTU — Maximum Transmission Unit, the largest single packet that can be transmitted

K. History — how the internet began

The internet began as ARPANET, the first packet-switching network, which sent its first message in 1969 between computers at UCLA and Stanford. Its first communication device was a switch called the Interface Message Processor, the IMP. ARPANET first used the Network Control Protocol, NCP, which TCP/IP replaced on 1 January 1983. Ray Tomlinson sent the first email in 1971, and he chose the @ symbol to separate the username from the hostname in an email address. Vint Cerf is known as one of the fathers of the internet for co-developing TCP/IP. Tim Berners-Lee proposed the World Wide Web in 1989 while working at CERN. Edge computing, which processes data near where it is produced instead of sending it all to a distant data centre, is the newest idea in this branch — and the cloud and the Internet of Things, which this topic links to, build on everything above.

How to revise Computer Networking

Do this topic in small sets, not in one sitting. First learn the OSI layers in order, bottom to top, and say them out loud until they are automatic. Then learn the port table the same way — web, file transfer, email, then the rest. Then learn the IP classes by their first numbers, and the device table by one job per device. Then do the practice questions on this page and read the full explanation of every question you get wrong — the explanation is where the learning happens. The same facts come up again and again in past papers, so a fact you miss today is a fact you will meet again. The traps are always the same: router against switch, TCP against UDP, hub against switch, bandwidth against throughput, and the port numbers that sit next to each other — FTP 20 against 21, DHCP 67 against 68, POP3 110 against IMAP 143. When you can answer every question on this page without looking, move on to the next topic and come back to this one after a day. That second visit is what moves a fact from short memory into long memory. There are 273 practice questions on this topic in the bank, and the page shows ten at a time — page through them all with the buttons below the questions.

More facts to learn

  1. What is a LAN (Local Area Network)A network that connects computers within a small area, such as an office or a home
  2. What is a computer networkA group of computers connected together to share data and resources
  3. What is an 'IP address' in computer networkingA number that identifies a computer on a network
  4. The HTTP protocol works on which port by default80
  5. In which network topology is a single central point failure (e.g., via a DoS Denial of Service attack on the hub) most likely to disrupt the entire networkStar Topology
  6. Data transfer between computers through which communication method:Protocol
  7. We can send data and text by which serverMail Server
  8. Among the following, which one is the characteristic of serial communicationIt is good for long distances
  9. Which class of IP address provides the most host addresses per networkClass A. IP stands for Internet Protocol
  10. How many layers does the OSI model have7
  11. Which type of computer network is used to cover a wide geographical areaWAN
  12. Which Command line tool is used in Windows environment to check the IP Configuration in detailIPConfig/all
  13. The first communion device in the internet was a switch calledInterface message processor
  14. SMTP is aCommunication Protocol
  15. A proxy server is used for which of the followingTo provide security against unauthorized users
  16. WPA is used for the security ofWi-Fi
  17. Which of the following is the most common type of networking connector used in PCs' network interface cardsRJ-45
  18. SMTP is the abbreviation for which of the followingSimple Mail Transfer Protocol
  19. Which topology provides the highest reliabilityMesh topology
  20. Which of the following is a valid IP address192.168.1.1
  21. The abbreviation 'MAN' stands for whatMetropolitan Area Network
  22. What does DNS stand for in internet networkingDomain Name System
  23. A switch differs from a hub because a switch sends data:Only to the intended device
  24. A VPN is mainly used to:Create a secure private connection over a public network
  25. Which system translates human-readable domain names such as example.com into the numeric IP addresses computers useDomain Name System (DNS)
  26. Which transport protocol is connection-oriented and guarantees reliable, ordered delivery of data, unlike the faster but unreliable UDPTCP
  27. Which layer of the OSI model is closest to the user and provides network services such as email and web browsingApplication layer
  28. Which device connects two local area networks and forwards traffic between them based on MAC addressesBridge
  29. Bluetooth is a short-range wireless technology typically used over distances of about how many metres10 metres
  30. Which protocol does the ping command use to test whether another host on a network is reachableICMP
  31. Which mode of communication allows data to flow in only one direction, as in a television broadcastSimplex
  32. Which port number is used by default by the Post Office Protocol version 3 for downloading email110
  33. In which older LAN technology does a special frame called a token circulate around the ring, and only the device holding it may transmitToken ring
  34. How many bits are in a MAC address48 bits
  35. Which layer of the TCP/IP model handles routing and IP addressingInternet layer
  36. Which IP address class covers first octets 128 to 191 and suits medium networksClass B. Which command tests whether another host is reachable on a network ping
  37. What does the subnet mask 255.255.255.0 represent in CIDR notation/24
  38. What does NAT do on a routerTranslates private IP addresses to a public IP address
  39. Which command shows active network connections and listening portsnetstat
  40. What is the term for sending a message to one specific device on a networkUnicast
  41. Which email protocol keeps messages on the server so they can be read from many devicesIMAP
  42. Which layer of the OSI model establishes, manages and terminates sessions between applicationsSession layer
  43. Which type of firewall examines each packet and allows or blocks it based on rules about its source, destination and portPacket-filtering firewall
  44. What is the main purpose of a VPNTo encrypt internet traffic and hide the user's location
  45. What does Modem stand forModulator-Demodulator
  46. Ethernet card is a network adaptor used to set up a wirednetwork
  47. It is also known as:Network interface card
  48. In the five-layer textbook model of the internet, the TCP/IP Link layer is split into which two layersPhysical and Data Link
  49. Which network is the classic example of circuit switchingThe traditional telephone network
  50. Why does a repeater give a cleaner signal than an amplifierA repeater regenerates the original digital signal, while an amplifier boosts the signal together with its noise
  51. Which range of IPv4 addresses belongs to Class E240.0.0.0 to 255.255.255.255
  52. How many usable host addresses does a /30 network provide2
  53. Which transport protocol does FTP use to transfer filesTCP, because file transfer needs reliable, ordered delivery
  54. In DNS, which type of record identifies the mail server for a domainMX (Mail Exchange) record
  55. At which OSI layer does a bridge operateData Link layer
  56. How does an STP cable differ from a UTP cableSTP has a metal shield around the wires that protects against electromagnetic interference
  57. At which speeds does a Token Ring network operate4 Mbps or 16 Mbps
  58. What does the `arp` command show on a computerThe ARP cache, the table of IP-address-to-MAC-address mappings the computer has learned
  59. Ray Tomlinson, who sent the first email, chose which symbol to separate the username from the hostname in an email address @

Keep Learning — Computer Networking