Interview questions

Interview questions and answers by topic

Question banks written for people preparing for real interviews. Every question has a short answer you can say out loud, a deeper explanation, code where it helps and the follow-up questions interviewers tend to ask next.

Choose a topic

What each answer includes

  • A 30-second answer for the moment an interviewer wants the point quickly.
  • A deeper explanation with the reasoning and trade-offs, so you can answer the second question as well as the first.
  • Code for questions where seeing it is clearer than describing it.
  • Follow-up questions that interviewers commonly ask next, so you can rehearse beyond the first answer.
  • Difficulty and level labels, and a marker on the questions that come up most often.

For a plan that fits these into a few weeks, with behavioural preparation and mock interviews, read the interview preparation guide.

More ways to prepare

Frequently asked questions

What is a 30-second answer?

It is the short version you would give if an interviewer asked the question in a screening call: two or three sentences that state the idea clearly. The longer explanation underneath is for when they ask you to go deeper. Learn the short one first, then the reasoning behind it.

What do the difficulty and level labels mean?

Difficulty (easy, medium, hard) shows how demanding the question is. The level (fresher, 2 to 5 years, senior) is the experience at which it is most commonly asked. Fresher candidates should be solid on the easy ones; experienced candidates are expected to handle the follow-ups too.

How should I use these question banks?

Pick a topic, answer each question aloud before reading the answer, compare with the 30-second version, then read the deeper explanation and try the follow-ups. Mark the ones you stumbled on and return to them after a day and again after a week. Finish with a mock interview to test whether you can explain them under pressure.

Are there more topics?

These are the banks with enough questions to be useful on their own. Other topics, including data science, machine learning, data engineering, DevOps and security, are growing inside Tech Learn. For deeper study, see the learning tracks for system design, Docker, Kubernetes and data science.