HomeSubjectsUniversityBlogAbout

Computer Networks

Topic in Computer Networks & Cloud Computing

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

A computer network is a set of interconnected devices that share resources and exchange data using agreed protocols over wired or wireless links. MCQs on the fundamentals compare LAN, MAN and WAN by geographic scope, name topologies such as bus, star, ring and mesh, and ask what hubs, switches, routers, modems and network interface cards do. A large share focuses on layering: the seven OSI layers and their protocol data units, how they map onto the four-layer TCP/IP model, and which standards bodies like IEEE define Ethernet. You should also recognise CSMA/CD, ICMP messages and the difference between a layer-3 switch and a router.

Below are 30 practice questions from a pool of 210 Computer Networks MCQs, one of 10 topics in Computer Networks & Cloud Computing. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Computer NetworksEasy

Q1. What type of network covers a small geographical area like a single building?

  1. A.LAN✓ Correct
  2. B.PAN
  3. C.MAN
  4. D.WAN

Explanation

A Local Area Network (LAN) covers a small geographical area such as a single building, office, or campus.

Report an error in this question

Computer NetworksEasy

Q2. Which topology connects all devices to a single central cable?

  1. A.Star
  2. B.Ring
  3. C.Mesh
  4. D.Bus✓ Correct

Explanation

In bus topology, all devices are connected to a single central cable called the bus or backbone.

Report an error in this question

Computer NetworksEasy

Q3. How many layers does the OSI model have?

  1. A.6
  2. B.4
  3. C.7✓ Correct
  4. D.5

Explanation

The OSI (Open Systems Interconnection) model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.

Report an error in this question

Computer NetworksEasy

Q4. Which device operates at the physical layer to regenerate signals?

  1. A.Switch
  2. B.Repeater✓ Correct
  3. C.Gateway
  4. D.Router

Explanation

A repeater operates at the physical layer and regenerates weakened signals to extend the reach of a network.

Report an error in this question

Computer NetworksEasy

Q5. Which network topology provides the highest redundancy?

  1. A.Full mesh topology✓ Correct
  2. B.Bus topology
  3. C.Star topology
  4. D.Ring topology

Explanation

Full mesh topology provides the highest redundancy because every device is connected to every other device, offering multiple paths for data.

Report an error in this question

Computer NetworksEasy

Q6. Which layer of the OSI model is responsible for routing?

  1. A.Data link layer
  2. B.Network layer✓ Correct
  3. C.Physical layer
  4. D.Transport layer

Explanation

The network layer (Layer 3) is responsible for routing packets from source to destination across multiple networks.

Report an error in this question

Computer NetworksEasy

Q7. What does WAN stand for?

  1. A.Wide Access Node
  2. B.Wireless Area Network
  3. C.Web Access Network
  4. D.Wide Area Network✓ Correct

Explanation

WAN stands for Wide Area Network, which spans large geographical areas such as countries or continents.

Report an error in this question

Computer NetworksEasy

Q8. In which switching technique is a dedicated path established before data transfer?

  1. A.Circuit switching✓ Correct
  2. B.Cell switching
  3. C.Message switching
  4. D.Packet switching

Explanation

In circuit switching, a dedicated communication path is established between sender and receiver before data transfer begins. Traditional telephone networks use circuit switching.

Report an error in this question

Computer NetworksEasy

Q9. Which networking device connects two different networks and operates at the network layer?

  1. A.Hub
  2. B.Router✓ Correct
  3. C.Repeater
  4. D.Switch

Explanation

A router connects two or more different networks and operates at the network layer (Layer 3) to forward packets between networks.

Report an error in this question

Computer NetworksEasy

Q10. What is the TCP/IP model also known as?

  1. A.Internet model✓ Correct
  2. B.IEEE model
  3. C.OSI model
  4. D.ISO model

Explanation

The TCP/IP model is also known as the Internet model because it is the protocol suite that powers the Internet.

Report an error in this question

Computer NetworksMedium

Q11. In a full mesh topology with n devices, how many links are required?

  1. A.n
  2. B.n-1
  3. C.n(n-1)/2✓ Correct
  4. D.n^2

Explanation

In a full mesh topology, every device connects to every other device. The number of links needed is n(n-1)/2.

Report an error in this question

Computer NetworksMedium

Q12. Which layer of the OSI model handles data encryption and compression?

  1. A.Presentation layer✓ Correct
  2. B.Application layer
  3. C.Session layer
  4. D.Transport layer

Explanation

The Presentation layer (Layer 6) is responsible for data encryption, decryption, compression, and translation between different data formats.

Report an error in this question

Computer NetworksMedium

Q13. What is the main advantage of packet switching over circuit switching?

  1. A.It has simpler implementation
  2. B.It uses network resources efficiently✓ Correct
  3. C.It guarantees fixed bandwidth
  4. D.It provides much lower latency

Explanation

Packet switching is more efficient because it allows multiple communications to share the same network resources, unlike circuit switching which dedicates resources to a single connection.

Report an error in this question

Computer NetworksMedium

Q14. Which TCP/IP layer corresponds to the OSI network layer?

  1. A.Network access layer
  2. B.Internet layer✓ Correct
  3. C.Application layer
  4. D.Transport layer

Explanation

The Internet layer in the TCP/IP model corresponds to the Network layer in the OSI model. Both handle logical addressing and routing.

Report an error in this question

Computer NetworksMedium

Q15. What type of switching does ATM (Asynchronous Transfer Mode) use?

  1. A.Message switching
  2. B.Cell switching✓ Correct
  3. C.Packet switching
  4. D.Circuit switching

Explanation

ATM uses cell switching, which transmits data in fixed-size cells of 53 bytes (5 bytes header + 48 bytes payload).

Report an error in this question

Computer NetworksMedium

Q16. Which organization is responsible for defining the Ethernet standard (IEEE 802.3)?

  1. A.W3C
  2. B.IETF
  3. C.IEEE✓ Correct
  4. D.ITU

Explanation

IEEE (Institute of Electrical and Electronics Engineers) defines LAN standards including Ethernet (802.3), Wi-Fi (802.11), and others.

Report an error in this question

Computer NetworksMedium

Q17. What is the function of the session layer in the OSI model?

  1. A.Detecting errors in frames
  2. B.Encrypting transmitted data
  3. C.Managing dialog between systems✓ Correct
  4. D.Routing packets across networks

Explanation

The Session layer (Layer 5) manages dialog control, establishing, maintaining, and synchronizing communication sessions between applications.

Report an error in this question

Computer NetworksMedium

Q18. In packet switching, what is the difference between datagram and virtual circuit approaches?

  1. A.Datagrams always use fixed-size data packets
  2. B.Virtual circuits do not include packet headers
  3. C.Virtual circuits set up a path first; datagrams do not✓ Correct
  4. D.Datagrams offer lower latency than virtual circuits

Explanation

In virtual circuit switching, a logical path is established before data transfer. In datagram switching, each packet is independently routed and may take different paths.

Report an error in this question

Computer NetworksMedium

Q19. A hub operates at which layer of the OSI model?

  1. A.Network layer
  2. B.Transport layer
  3. C.Data link layer
  4. D.Physical layer✓ Correct

Explanation

A hub operates at the Physical layer (Layer 1). It simply regenerates and broadcasts incoming signals to all ports without any intelligence.

Report an error in this question

Computer NetworksMedium

Q20. What is the difference between a bridge and a switch?

  1. A.Bridges forward packets faster than switches do
  2. B.Bridges work at Layer 3; switches work at Layer 2
  3. C.There is no functional difference between them
  4. D.Switches handle multiple frames at once; bridges process one✓ Correct

Explanation

Both operate at Layer 2, but switches can process multiple frames simultaneously using hardware-based forwarding, while bridges typically handle one frame at a time using software.

Report an error in this question

Computer NetworksHard

Q21. In the OSI model, at which layer does the PDU (Protocol Data Unit) change from 'segment' to 'packet'?

  1. A.From Session to Transport layer
  2. B.From Transport to Network layer✓ Correct
  3. C.From Data Link to Physical layer
  4. D.From Network to Data Link layer

Explanation

The Transport layer PDU is called a segment. When it is passed down to the Network layer, the PDU becomes a packet (or datagram).

Report an error in this question

Computer NetworksHard

Q22. Which RFC defines the Internet Protocol version 4 (IPv4)?

  1. A.RFC 793
  2. B.RFC 791✓ Correct
  3. C.RFC 2460
  4. D.RFC 768

Explanation

RFC 791 defines IPv4. RFC 793 defines TCP, RFC 2460 defined IPv6 (later obsoleted by RFC 8200), and RFC 768 defines UDP.

Report an error in this question

Computer NetworksHard

Q23. What problem does the Spanning Tree Protocol (STP) solve in switched networks?

  1. A.Domain name resolution failures
  2. B.Broadcast storms from switching loops✓ Correct
  3. C.Automatic IP address assignment
  4. D.Bandwidth allocation conflicts

Explanation

STP prevents broadcast storms and switching loops by creating a loop-free logical topology from a physical topology that may contain loops.

Report an error in this question

Computer NetworksHard

Q24. In a hierarchical network design, what is the role of the distribution layer?

  1. A.Policy-based routing between access and core✓ Correct
  2. B.High-speed backbone packet forwarding
  3. C.Connecting end-user devices directly
  4. D.Providing wireless access to clients

Explanation

The distribution layer acts as a boundary between the access and core layers, providing policy-based connectivity, routing, filtering, and QoS.

Report an error in this question

Computer NetworksHard

Q25. What is the key concept behind Software-Defined Networking (SDN)?

  1. A.Hosting all networking functions in the cloud
  2. B.Eliminating all physical network device hardware
  3. C.Using only software-based routers for all traffic
  4. D.Separating the control plane from the data plane✓ Correct

Explanation

SDN separates the control plane (decision-making) from the data plane (packet forwarding), allowing centralized, programmable network management.

Report an error in this question

Computer NetworksHard

Q26. What is the purpose of MPLS (Multi-Protocol Label Switching) in networking?

  1. A.To encrypt all network traffic end-to-end
  2. B.To provide wireless connectivity to devices
  3. C.To completely replace IP addressing schemes
  4. D.To speed up forwarding using labels not IPs✓ Correct

Explanation

MPLS uses short labels instead of long IP addresses for forwarding decisions, enabling faster packet forwarding and traffic engineering capabilities.

Report an error in this question

Computer NetworksHard

Q27. In network performance, what is jitter?

  1. A.Maximum throughput of a link
  2. B.Total time to deliver a message
  3. C.Loss of packets during transit
  4. D.Variation in packet arrival delay✓ Correct

Explanation

Jitter is the variation in the delay of received packets. High jitter is problematic for real-time applications like VoIP and video conferencing.

Report an error in this question

Computer NetworksHard

Q28. What distinguishes a Layer 3 switch from a traditional router?

  1. A.It performs routing in hardware via ASICs✓ Correct
  2. B.It operates at a much higher OSI layer
  3. C.It cannot route between different VLANs
  4. D.It only works with wireless networks

Explanation

A Layer 3 switch performs routing functions using hardware (ASICs) rather than software, providing wire-speed routing performance within LANs.

Report an error in this question

Computer NetworksHard

Q29. In the context of Quality of Service (QoS), what does DiffServ provide?

  1. A.Guaranteed zero latency for all flows
  2. B.Per-flow resource reservation for traffic
  3. C.Automatic bandwidth doubling on demand
  4. D.Traffic classification using DSCP values✓ Correct

Explanation

DiffServ (Differentiated Services) classifies traffic into service classes using the DSCP (Differentiated Services Code Point) field in the IP header for scalable QoS.

Report an error in this question

Computer NetworksHard

Q30. What is the main purpose of Network Function Virtualization (NFV)?

  1. A.To create virtual LAN segments on switches
  2. B.To create backup networks for failover
  3. C.To virtualize and manage IP address pools
  4. D.To replace hardware appliances with software✓ Correct

Explanation

NFV replaces dedicated network appliances (firewalls, load balancers, etc.) with software-based implementations running on commodity servers, reducing costs and increasing flexibility.

Report an error in this question

Ready to test yourself on Computer Networks?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Computer Networks Quiz