Software engineer interview questions, and what each one tests
Software engineering interviews test more than whether you can code. Interviewers watch how you clarify a problem, explain trade-offs, test your own work, and talk about past projects. Here is the usual loop at US companies and the question types you will meet in it.
The usual interview stages
Every employer runs its own process. This is the common shape, so nothing surprises you.
- Recruiter screenBackground, the role and level, salary range and timeline. Keep a two-minute summary of your work ready.
- Technical screenOne coding interview in a shared editor or an online assessment, usually 45 to 60 minutes. Some companies use a take-home project instead.
- The onsite or virtual loopFour or five interviews: two or three coding, one system design for mid-level and above, and one behavioral. Some add a domain or debugging round.
- Team match and offerLarger companies may match you with a team after the loop. References and the offer follow.
Questions you are likely to be asked
Typical questions for this role, not a leaked list. Prepare the skill behind each one rather than a memorized answer.
- Experience
Walk me through a project you are proud of.
- What it tests
- Your real contribution, the technical decisions you made and why.
- How to prepare
- Pick one project and prepare the problem, your part, two key decisions with trade-offs, and the result.
- Coding: arrays and hashing
Given an array of numbers, find two that add up to a target.
- What it tests
- Starting from a working solution, then improving time and space complexity.
- How to prepare
- Practice common patterns: hash maps, two pointers, sliding window. Say the brute force first, then optimize.
- Coding: graphs
Find the shortest path between two points in a grid.
- What it tests
- Choosing BFS or DFS correctly and handling edge cases.
- How to prepare
- Practice graph traversal on grids and adjacency lists, and explain why you chose one.
- System design
Design a URL shortener.
- What it tests
- Requirements, data model, scaling, caching and trade-offs.
- How to prepare
- Use a structure: clarify requirements, estimate scale, sketch the API and storage, then deep-dive into one bottleneck.
- System design
How would you design a news feed or a chat system?
- What it tests
- Fan-out, consistency, real-time delivery and storage choices.
- How to prepare
- Study a few classic designs and practice explaining them in 35 minutes, out loud.
- Debugging
This code has a bug. Find it and fix it.
- What it tests
- Reading unfamiliar code, forming hypotheses and testing them.
- How to prepare
- Practice reading code you did not write. Narrate what you expect, what you see, and what you will check next.
- Engineering practice
How do you test your code?
- What it tests
- Unit and integration tests, edge cases, and how you prevent regressions.
- How to prepare
- Bring a concrete example of a bug a test caught or a test you wish you had written.
- Behavioral
Tell me about a time you disagreed with a technical decision.
- What it tests
- Influencing with data, and committing once a decision is made.
- How to prepare
- Prepare a STAR story with the options, your argument, what was decided, and how it turned out.
- Behavioral
Tell me about a production incident you handled.
- What it tests
- Calm under pressure, communication, and learning from the post-mortem.
- How to prepare
- Describe detection, mitigation, root cause and the change that stopped it happening again.
- Behavioral
Tell me about a time you missed a deadline or a project failed.
- What it tests
- Ownership and what you changed in how you plan.
- How to prepare
- Be honest about your part. Spend most of the answer on what you learned and do differently.
- Collaboration
How do you approach code review?
- What it tests
- Giving and receiving feedback respectfully and usefully.
- How to prepare
- Share what you look for and one time review feedback changed your code for the better.
- Motivation
Why do you want to work here?
- What it tests
- Interest in their product and engineering challenges.
- How to prepare
- Read their engineering blog or product docs and connect one problem they have to your experience.
How to prepare
- Practice coding out loud in a plain editor, with a timer. Explaining while you code is the skill that is tested.
- Cover the common patterns (arrays, strings, hash maps, trees, graphs, dynamic programming) instead of memorizing individual problems.
- For mid-level and above, practice two or three system designs end to end, out loud.
- Prepare five behavioral stories: a proud project, a conflict, a failure, an incident and a time you helped a teammate.
- Ask the recruiter for the format of each round and the language you may use.
Frequently asked questions
What questions are asked in a software engineer interview?
Coding problems on data structures and algorithms, a system design question for mid-level and senior roles, debugging or code review, and behavioral questions about projects, conflict and failure.
How long should I prepare for a coding interview?
It depends on how recently you practiced. Many people plan several weeks of steady practice. Consistent practice out loud matters more than the number of problems solved.
Do junior engineers get system design questions?
Usually not a full system design round, but you may be asked to design a small component or explain how a feature you built works end to end.
What if I get stuck in a coding interview?
Say what you are thinking, go back to a brute force solution, try a small example by hand, and ask a clarifying question. Interviewers score your process, not only the final answer.
Are behavioral questions important for engineers?
Yes. Many companies have a dedicated behavioral round, and a weak one can block an offer even after strong coding rounds.