Computer Networks MCQs - OSI Model, TCP/IP and IP Addressing (Set 1)

Computer Networks MCQs - OSI Model, TCP/IP and IP Addressing (Set 1) - CodingHumans

Brush up on Computer Networks fundamentals: the OSI and TCP/IP layers, TCP vs UDP, common ports and protocols, IPv4 addressing and subnetting. Useful for GATE, campus placements and networking interviews.

How to practise: read each question and tap the option you think is correct. You will see right away whether you got it, along with a short explanation, and your score is tracked at the bottom of the screen. This set has 16 questions.

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

a) 4

b) 5

c) 7

d) 8

Q2. Routers make forwarding decisions at which OSI layer?

a) Data Link layer

b) Network layer

c) Transport layer

d) Session layer

Q3. A switch forwards frames using:

a) IP addresses

b) MAC addresses

c) Port numbers

d) Domain names

Q4. Which protocol provides reliable, connection-oriented delivery?

a) UDP

b) IP

c) TCP

d) ICMP

Q5. The TCP three-way handshake uses which sequence of segments?

a) SYN, ACK, FIN

b) SYN, SYN-ACK, ACK

c) ACK, SYN, SYN-ACK

d) FIN, ACK, SYN

Q6. Which protocol is best suited for live video calls where speed matters more than retransmitting lost packets?

a) TCP

b) UDP

c) FTP

d) SMTP

Q7. What is the default port number for HTTPS?

a) 80

b) 21

c) 443

d) 25

Q8. Which protocol translates a domain name like example.com into an IP address?

a) DHCP

b) DNS

c) ARP

d) SNMP

Q9. ARP is used to find:

a) The IP address for a domain name

b) The MAC address for a known IP address on the local network

c) The fastest route to a network

d) The port number of a service

Q10. How many bits long is an IPv4 address?

a) 16

b) 32

c) 64

d) 128

Q11. How many usable host addresses does a /26 IPv4 subnet provide?

a) 64

b) 62

c) 30

d) 126

Q12. What is the subnet mask for a /24 network?

a) 255.0.0.0

b) 255.255.0.0

c) 255.255.255.0

d) 255.255.255.128

Q13. Which of these is a private IPv4 address?

a) 8.8.8.8

b) 172.16.5.4

c) 100.200.1.1

d) 193.168.1.1

Q14. The command ping uses which protocol?

a) TCP

b) UDP

c) ICMP

d) ARP

Q15. Which device or technique lets many devices on a private network share one public IP address?

a) DHCP

b) NAT

c) VLAN

d) Hub

Q16. In the TCP/IP model, which layer is responsible for end-to-end delivery between processes using port numbers?

a) Network (Internet) layer

b) Transport layer

c) Application layer

d) Link layer

Recommended MCQs

More Computer Networks posts on CodingHumans

All MCQ sets

MCQ Practice hub - every subject in one place

Comments

Answered 0/0Correct 0