Computer Networks Interview Questions and Answers
The networking questions freshers should know, each answered in a sentence or two.
Q1. How many layers does the OSI model have?
- A. 7
- B. 4
- C. 6
- D. 5
Show answerHide answer
Answer: A. 7
Physical, Data Link, Network, Transport, Session, Presentation, Application.Q2. Which protocol is connection-oriented and reliable?
- A. TCP
- B. IP
- C. ICMP
- D. UDP
Show answerHide answer
Answer: A. TCP
TCP uses handshakes, acknowledgements and retransmission.Q3. Which protocol is used for video calls and live streaming where speed matters more than reliability?
- A. UDP
- B. SMTP
- C. FTP
- D. TCP
Show answerHide answer
Answer: A. UDP
UDP has no handshakes or retransmission, so it's faster.Q4. What does DNS do?
- A. Encrypts web traffic
- B. Assigns IP addresses automatically
- C. Translates domain names into IP addresses
- D. Sends email
Show answerHide answer
Answer: C. Translates domain names into IP addresses
skillpark.org → an IP address the browser can connect to.Q5. The default port for HTTPS is:
- A. 80
- B. 21
- C. 443
- D. 25
Show answerHide answer
Answer: C. 443
HTTP uses 80, FTP 21, SMTP 25.Q6. What does DHCP do?
- A. Automatically assigns IP addresses to devices
- B. Resolves domain names
- C. Encrypts data
- D. Routes email
Show answerHide answer
Answer: A. Automatically assigns IP addresses to devices
Your phone gets an IP from the Wi-Fi router via DHCP.Q7. What happens in TCP's three-way handshake?
- A. SYN, FIN, RST
- B. GET, POST, PUT
- C. SYN, SYN-ACK, ACK
- D. HELLO, DATA, BYE
Show answerHide answer
Answer: C. SYN, SYN-ACK, ACK
It sets up a connection before data flows.Q8. An IPv4 address has how many bits?
- A. 128
- B. 32
- C. 16
- D. 64
Show answerHide answer
Answer: B. 32
IPv6 addresses have 128 bits.Q9. Which device works at the Network layer and forwards packets between networks?
- A. Router
- B. Switch (layer 2)
- C. Repeater
- D. Hub
Show answerHide answer
Answer: A. Router
Switches forward frames inside a network using MAC addresses.Q10. Which HTTP method is meant for retrieving data without side effects?
- A. GET
- B. DELETE
- C. POST
- D. PATCH
Show answerHide answer
Answer: A. GET
GET should be safe and idempotent.Q11. What does HTTP status code 404 mean?
- A. Server Error
- B. OK
- C. Unauthorized
- D. Not Found
Show answerHide answer
Answer: D. Not Found
200 OK, 401 Unauthorized, 403 Forbidden, 500 Internal Server Error.Q12. What does HTTPS add on top of HTTP?
- A. Encryption and server authentication using TLS
- B. Faster speed only
- C. Compression only
- D. A different port number only
Show answerHide answer
Answer: A. Encryption and server authentication using TLS
TLS certificates prove the site's identity and encrypt traffic.Q13. A MAC address identifies:
- A. A user account
- B. A website
- C. A network interface's hardware
- D. A program
Show answerHide answer
Answer: C. A network interface's hardware
48 bits, usually written as six hex pairs.Q14. Which layer of the OSI model handles end-to-end delivery and ports?
- A. Transport
- B. Network
- C. Data Link
- D. Session
Show answerHide answer
Answer: A. Transport
TCP and UDP live at the Transport layer.Q15. What is the purpose of a subnet mask?
- A. To speed up DNS
- B. To hide your IP address
- C. To encrypt packets
- D. To separate the network part of an IP address from the host part
Show answerHide answer
Answer: D. To separate the network part of an IP address from the host part
e.g. 255.255.255.0 means the first 24 bits are the network.
Practised these? Now prove it.
Take a timed mock test with new questions every attempt, earn a verified certificate at 70%+, and get noticed by employers.
Start a mock test