InterviewDryRun
Final-year placements interview

TCP vs UDP: differences and when to use each

How the interviewer asks it

“Compare TCP and UDP. For a video call app, a file download and an online game, say which you would use and why.”

Typed drills are free and unlimited: the AI scores your answer against the outline below.

What the interviewer is looking for

  • Core differences: connection, reliability, ordering, flow and congestion control, overhead.
  • Reasoning from the application's needs, not memorised pairs.
  • Awareness that real apps often add their own reliability on top of UDP.

How to structure your answer

  1. 01

    TCP

    Connection-oriented, reliable, ordered byte stream with retransmission and congestion control.

  2. 02

    UDP

    Connectionless datagrams with no delivery or order guarantees and very little overhead.

  3. 03

    Video call

    UDP: a late frame is useless, so dropping is better than waiting.

  4. 04

    File download

    TCP: every byte must arrive, in order.

  5. 05

    Online game

    Usually UDP with the game's own logic for the few messages that must arrive.

Best answers from candidates

No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.

Answers are shared by candidates, without names, after a privacy check. Add yours

Common mistakes

  • Saying UDP is simply "faster" without explaining why.
  • Forgetting congestion control in TCP.
  • Choosing TCP for live video without discussing delay.

Follow-up questions to expect

  • How does TCP know a packet was lost, and what does it do about it?
  • What is the three-way handshake?

Now answer it out loud

Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.

Practice with Max

Free: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.

More campus placement interview questions

Preparing for this round? Read how to answer “tell me about yourself” as a software engineer and hR interview questions for freshers, with sample answers and campus placement interview preparation: a guide for final-year students.