thecodingcompany
Technical MCQ

Computer Networks

OSI, TCP/IP, addressing, DNS and the HTTP questions that show up in backend rounds.

Questions6
FormatMCQ + explanation

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?
  1. A.Data link
  2. B.Network
  3. C.Transport
  4. 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:
  1. A.Faster
  2. B.Connection-oriented and reliable
  3. C.Connectionless
  4. 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:
  1. A.SYN, SYN-ACK, ACK
  2. B.ACK, SYN, FIN
  3. C.SYN, ACK, FIN
  4. 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:
  1. A.MAC addresses to IP addresses
  2. B.Domain names to IP addresses
  3. C.Ports to services
  4. 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?
  1. A.80
  2. B.443
  3. C.8080
  4. 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?
  1. A./16
  2. B./24
  3. C./32
  4. 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.