Technical MCQ
Computer Networks
OSI, TCP/IP, addressing, DNS and the HTTP questions that show up in backend rounds.
6 questions
Answer each one before scrolling to the solution. The explanation names the mechanism, not just the choice.
01Which layer of the OSI model does a router primarily operate at?
- A.Data link
- B.Network
- C.Transport
- D.Session
Answer. Routers forward packets based on IP addresses, which is the network layer (layer 3).
02TCP differs from UDP mainly because TCP is:
- A.Faster
- B.Connection-oriented and reliable
- C.Connectionless
- D.Encrypted by default
Answer. TCP establishes a connection and guarantees ordered, acknowledged delivery; UDP is connectionless with no delivery guarantee.
03The three-way handshake in TCP consists of:
- A.SYN, SYN-ACK, ACK
- B.ACK, SYN, FIN
- C.SYN, ACK, FIN
- D.SYN, FIN, ACK
Answer. The client sends SYN, the server replies SYN-ACK, and the client confirms with ACK, after which the connection is established.
04DNS primarily maps:
- A.MAC addresses to IP addresses
- B.Domain names to IP addresses
- C.Ports to services
- D.IP addresses to subnets
Answer. DNS resolves human-readable domain names into IP addresses. MAC-to-IP mapping is ARP.
05Which port does HTTPS use by default?
- A.80
- B.443
- C.8080
- D.22
Answer. HTTP defaults to port 80 and HTTPS to 443. Port 22 is SSH; 8080 is a common alternate HTTP port.
06A subnet mask of 255.255.255.0 corresponds to which CIDR prefix?
- A./16
- B./24
- C./32
- D./8
Answer. Three octets of 255 give 24 network bits, written /24, leaving 8 bits for hosts.
Practise here. Get placed there.
Prep+ is unlimited practice. When you are ready to turn it into an offer, TCC Placement Partner handles portfolio, resume and interviews.