Computer Networks MCQs

Computer Networks MCQs covering the OSI 7-layer model, TCP/IP stack, routing algorithms, DNS, and HTTP/HTTPS.

22 MCQsComputer ScienceAll Levels
Key Concept Overview & Exam Context

Review core principles of Computer Networks before answering questions. These questions simulate placement technical assessments (TCS, Infosys, Amazon), university exams (CS/IT), and technical certifications.

Target Readiness
Placements & Job Interviews
Question Format
Multiple-Choice with Explanations
Verified Solutions
Step-by-step Output Traces

Computer Networks MCQ Questions

Page 1 of 2 (22 total)
Q1

What is the main difference between TCP and UDP?

medium
Correct Answer: TCP is connection-oriented and guarantees reliable delivery, while UDP is connectionless and does not guarantee delivery
Explanation:
TCP establishes a connection through a handshake and ensures packets arrive in order and without loss, while UDP simply sends packets without such guarantees, making it faster but less reliable, which suits use cases like live video streaming.
Q2

What is the purpose of DNS in computer networking?

easy
Q3

What is the primary function of a firewall?

easy
Q4

What does DHCP stand for and what does it do?

medium
Q5

What is the purpose of the three-way handshake in TCP?

medium
Q6

What is the difference between a MAC address and an IP address?

medium
Q7

What is the main purpose of Network Address Translation (NAT)?

medium
Q8

What is the difference between HTTP and HTTPS?

easy
Q9

What is the function of a router in a computer network?

easy
Q10

What is bandwidth in the context of computer networks?

medium
Q11

What is the purpose of a subnet mask in IP networking?

hard
Q12

What is the purpose of ARP (Address Resolution Protocol)?

hard
Q13

What is the primary difference between a hub and a switch?

medium
Q14

What is latency in networking terms?

medium
Q15

What is the purpose of the Transport layer in the OSI model?

hard
Q16

What does the term 'packet switching' refer to in networking?

hard
Q17

What is the function of the Application layer in the OSI model?

medium
Q18

What is a VPN primarily used for?

medium
Q19

What is the purpose of a checksum in network data transmission?

medium
Q20

How many layers does the OSI model have?

easy
Showing 1 to 20 of 22 questions