Computer Networks MCQs for NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

A computer network is a set of devices (nodes) connected by links so they can share data and resources. This topic covers how networks are organised: the OSI and TCP/IP layered models, physical topologies, network types by size, and the devices that join them. It is the second topic in the Computer Networks and Cloud Computing area, which carries 10% of the NSCT according to HEC's Areas of Competencies. The area had the second-lowest 2026 accuracy, 39.6%, per the HEC NSCT report and APP.

OSI vs TCP/IP

A layered model splits networking into jobs, each layer using the services of the one below. The OSI model is a seven-layer reference model. TCP/IP is the model the internet actually runs on.

OSI layer Job PDU Example TCP/IP layer
7 Application Services to the user Message HTTP, DNS Application
6 Presentation Translation, encryption, compression TLS, JPEG Application
5 Session Dialogue control, checkpoints RPC Application
4 Transport Process-to-process delivery (ports) Segment TCP, UDP Transport
3 Network Host-to-host delivery, routing (IP addresses) Packet IP, ICMP Internet / network
2 Data link Node-to-node delivery, framing (MAC addresses) Frame Ethernet Link
1 Physical Bits on the medium Bits Cables, hubs Link

Textbooks differ on TCP/IP's layer count. RFC 1122 and many courses use four layers (link, internet, transport, application). Forouzan and Kurose-Ross use five, splitting the link layer into data link and physical. Both agree that TCP/IP has no separate session or presentation layer.

Exam angle: learn the PDU, address type and one protocol per layer. Questions like "which layer handles X" are common.

Topologies

A topology is the physical or logical layout of links.

Topology Links for n devices Strength Weakness
Mesh (full) n(n - 1)/2, with n - 1 ports each Robust, private, no traffic sharing Cabling grows quadratically
Star n (each to a hub or switch) Easy to install and isolate faults Central device is a single point of failure
Bus 1 backbone plus drop lines Cheap, little cable Backbone break stops everything
Ring n (each to two neighbours) Simple to add one device One break can disrupt the ring

A full mesh of 8 devices needs 8 x 7 / 2 = 28 links, and each device needs 7 ports. Most real LANs are switched stars; hybrid topologies combine several types.

Exam angle: "n(n - 1)/2 links" and "n - 1 ports" are the two mesh numericals; do not mix them up.

Network types and devices

Networks are grouped by the area they cover:

Devices sit at different layers, and this decides how they split traffic.

Device Layer Collision domains Broadcast domains
Hub / repeater Physical One for all ports One
Switch / bridge Data link One per port One
Router Network One per port One per interface

Networks also differ by role: client-server (dedicated servers) versus peer-to-peer (each node both serves and requests).

Exam angle: a switch splits collision domains; only a router (or a VLAN) splits broadcast domains.

Common traps

Worked examples

1. Understanding. Which layer uses port numbers to deliver data to the correct application? Answer: the transport layer. Ports identify processes, which gives process-to-process delivery. The network layer delivers only to the host.

2. Application. How many links and ports per device does a full mesh of 8 devices need? Answer: 28 links, 7 ports each. Links = 8 x 7 / 2 = 28. Each device connects to the 7 others.

3. Analysis. A router has two interfaces. Interface 1 goes to switch S1, which has three hubs attached. Interface 2 goes to switch S2, which has four hosts attached. Counting the switch-to-router links too, how many collision and broadcast domains are there? Answer: 9 collision domains, 2 broadcast domains. Every switch port is a collision domain: S1 has 3 hub ports plus its uplink (4), and S2 has 4 host ports plus its uplink (5). The router's two interfaces give two broadcast domains.

Practise

The quiz below has 100 questions on this topic, filterable by tier and difficulty.

Practise: 100 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. How many layers does the OSI reference model have?

    1. 5
    2. 7
    3. 6
    4. 4
    Show answer

    Answer: B. 7

    The OSI model has seven layers: physical, data link, network, transport, session, presentation and application. Four and five are the common layer counts for the TCP/IP model.

  2. Which device works only at the physical layer, regenerating and repeating bits out of every port?

    1. Router
    2. Hub
    3. Switch
    4. Bridge
    Show answer

    Answer: B. Hub

    A hub (a multiport repeater) just regenerates the electrical signal and sends it out of every other port; it does not read addresses. Bridges and switches read MAC addresses (layer 2), and routers read IP addresses (layer 3).

  3. A network that links offices across a single city, larger than a LAN but smaller than a WAN, is called a:

    1. SAN (storage area network)
    2. LAN (local area network)
    3. PAN (personal area network)
    4. MAN (metropolitan area network)
    Show answer

    Answer: D. MAN (metropolitan area network)

    A MAN covers a town or city, for example a cable-TV operator's data network or links between a university's campuses in one city. A LAN covers a building or campus, a WAN spans countries, and a PAN covers a few metres around one person.

  4. Which OSI layer chooses the path a packet takes across interconnected networks?

    1. Network layer
    2. Session layer
    3. Data link layer
    4. Transport layer
    Show answer

    Answer: A. Network layer

    The network layer handles logical (IP) addressing and routing between networks, host to host. The data link layer delivers frames hop to hop within one link, and the transport layer delivers data process to process.

  5. In TCP/IP terminology, what is the protocol data unit (PDU) at the transport layer when TCP is used?

    1. Packet
    2. Segment
    3. Bit
    4. Frame
    Show answer

    Answer: B. Segment

    Moving down the stack the PDUs are: message (application), segment (transport, TCP; UDP's is a user datagram), packet or datagram (network), frame (data link) and bits (physical).

  6. Which two OSI layers have no separate layer in the TCP/IP model, their jobs being handled by the application layer instead?

    1. Network and transport
    2. Session and presentation
    3. Transport and session
    4. Data link and physical
    Show answer

    Answer: B. Session and presentation

    TCP/IP folds the OSI session and presentation functions into the application layer; applications handle their own encoding, encryption and dialogue control. Data link and physical survive as the link (or network access) layer, and transport and network exist in both models.

  7. Which kind of address does the data link layer use to deliver a frame to the next node on a LAN?

    1. A domain name
    2. A 48-bit MAC (physical) address
    3. A 32-bit IPv4 address
    4. A 16-bit port number
    Show answer

    Answer: B. A 48-bit MAC (physical) address

    The data link layer uses physical (MAC) addresses, 48 bits on Ethernet, for hop-to-hop delivery. IP addresses are logical addresses used by the network layer, port numbers identify processes at the transport layer, and domain names live at the application layer.

  8. In which topology does a break in the single shared backbone cable stop the whole network?

    1. Mesh
    2. Bus
    3. Tree with a switch at each branch
    4. Star
    Show answer

    Answer: B. Bus

    In a bus topology every device taps one backbone cable, so a cut or missing terminator brings the whole segment down. In a star only the device on a broken cable is lost, and a mesh has alternative paths.

  9. The three key elements of a protocol are syntax, semantics and timing. What does timing refer to?

    1. When data should be sent and how fast
    2. The physical medium used
    3. The structure and format of the data
    4. The meaning of each section of bits
    Show answer

    Answer: A. When data should be sent and how fast

    Syntax is the format of the data, semantics is the meaning of each field and the action it triggers, and timing is when data is sent and at what speed (for example, a fast sender overwhelming a slow receiver). The medium is not one of the three elements.

  10. What best describes a peer-to-peer (P2P) network compared with a client-server network?

    1. Every computer can act as both client and server, with no dedicated central server
    2. One dedicated server answers requests from many clients
    3. It works only over a WAN
    4. All computers must be connected in a ring
    Show answer

    Answer: A. Every computer can act as both client and server, with no dedicated central server

    In P2P networks, such as BitTorrent, each peer both requests and serves resources, so there is no single central server. Client-server networks depend on dedicated servers. P2P is about roles, not topology or network size.

FAQs

Why does the OSI model have 7 layers but TCP/IP only 4 or 5?

TCP/IP merges OSI's session and presentation jobs into its application layer, because real applications handle their own encoding and dialogue. The four-layer version also merges physical and data link into one link layer. OSI was designed as a general reference model; TCP/IP describes the protocols the internet actually uses.

What is the difference between a hub, a switch and a router?

A hub works at the physical layer and repeats every signal to every port. A switch works at the data link layer, learns MAC addresses and forwards each frame only to the right port. A router works at the network layer, forwards packets between networks using IP addresses, and blocks broadcasts.

Which topology is most reliable?

A full mesh, because every pair of devices has its own link, so one failed link does not isolate anyone. The cost is n(n - 1)/2 links, which becomes impractical for large networks. That is why mesh is used for small backbones, while LANs use switched stars.

Next step

Continue with the Data Link Layer MCQs (framing, CRC and Ethernet). For a deeper layer comparison, see OSI vs TCP/IP. Browse all topics on the Networks & Cloud hub, then take an NSCT mock test.