Computer Programmer Interview Questions
30 questions
Question 1: Describe a time you reduced the scope of a requested application feature to fit its budget or deadline.
What interviewers listen forListen for the user needs they preserved, evidence behind the smaller scope and the delivery result. Cutting required behavior without agreement is a red flag; ask what they learned about estimating.
Candidate tipChoose one feature request. Explain the time or cost limit, how you identified a useful smaller scope and your role in agreeing on it. End with what was delivered and what you learned.
Question 2: Walk me through the most recent application feature you built, from the user need to the release.
Suggested answerThe interviewer wants to hear how you turn a user need into working, tested software, and what part you played. Walk through it in order: the need, your design, how you built and tested it, the release, and what you learned after. Sample answer: "Our support team spent a lot of time resetting accounts for users who had locked themselves out. The feature was a self-service unlock by email. I met with two support staff to understand the common cases, then wrote a short design covering the email link, how long it stays valid and how to stop abuse. I built the backend endpoint and the email template, and a teammate built the screen. I wrote unit tests for expired and reused links, and we tested the full flow in staging. We released it behind a feature flag to a small group first, watched the error logs, then turned it on for everyone. Support tickets about lockouts dropped noticeably, and we later added a clearer message for expired links based on user feedback." Pitfalls to avoid: listing tools without explaining decisions; not saying which parts you built yourself; skipping testing and release.
What interviewers listen forA strong answer connects code choices to the user need and mentions testing and release. Only listing technologies, or being unable to say what they personally built, is a red flag.
Candidate tipPick one feature and cover the need it met, the design choices you made, how you tested it, and what happened after release. Be clear about which parts were yours.
Question 3: Describe methods you have used to design, develop, and/or modify software systems. How do you predict and measure outcome and consequences of design?
Question 4: What would you do if a software release passed its automated tests but a final check showed it could overwrite user data?
What interviewers listen forProtecting user data should come before release. Expect an investigation of the failing case and a check of the corrected behavior; treating passing automated tests as permission to release is a red flag.
Candidate tipStart with how you would prevent the release from putting user data at risk. Then explain how you would reproduce the overwrite, address the test gap and decide whether the corrected release is ready.
Question 5: Tell me about a time you tracked down and fixed a performance problem in an existing application.
Suggested answerThe interviewer wants to see whether you find the real cause of a slowdown before changing code. Use Situation, Task, Action, Result. Describe what users noticed, what you were asked to do, the steps you took to measure and find the cause, and how you confirmed the fix worked. Sample answer: "Users of our order screen complained it took a long time to load for large accounts. I was asked to look into it. First I added timing logs and ran the page against a copy of a large account's data. The logs showed the page made a separate database query for every order line. I changed it to load the lines in one query and added an index the query needed. I compared the timings before and after on the same data, and the page loaded much faster. I also added a test with a large data set so the problem would show up again if someone reintroduced it." Pitfalls to avoid: describing a fix without saying how you measured the problem; claiming credit for a team effort without saying what your part was; skipping how you made sure the fix did not break anything else.
What interviewers listen forStrong answers measure first, for example with a profiler or logs, then change one thing at a time. Guessing at the cause and rewriting code without measuring is a red flag.
Candidate tipName the symptom users saw, how you measured it before changing anything, what the real cause was, and the before-and-after numbers you could check.
Question 6: Share an example of how you resolved a mismatch between the interfaces two development teams planned to build.
What interviewers listen forA strong example shows how they compared interface expectations with the other team, agreed on a workable contract and checked the result. Assuming the other team would change without agreement is a red flag.
Candidate tipBriefly describe the two interfaces and their mismatch. Focus on your part in clarifying inputs, outputs or limits with the other team. Finish with how the teams confirmed the agreement worked and what you learned.
Question 7: Walk me through a time a model or prototype changed your application design before you built the full feature.
What interviewers listen forListen for the design assumption they tested, evidence from the model or prototype and the resulting change. Calling a prototype proof while ignoring its limits is a red flag; ask what the final implementation showed.
Candidate tipChoose one design decision tested with a model or prototype. Explain your contribution, what the results showed and how you changed the design. Include the eventual outcome and what you learned about the model's limits.
Question 8: Give an example of how you kept an application working while replacing an outdated software interface.
What interviewers listen forListen for their own compatibility checks, changes to dependent code and evidence that existing behavior still worked. Removing the old interface without checking its callers is a red flag; ask what they learned.
Candidate tipPick one interface replacement. Explain what depended on it, your changes and how you checked the application during the transition. Close with the result and a lesson about compatibility.
Question 9: What should an application's response-time standard capture that an average response time can hide?
What interviewers listen forA sound answer addresses slow responses in the distribution, expected load and which requests are measured. Treating a good average as proof that every user receives an acceptable response is a red flag.
Candidate tipExplain how a response-time average can hide long waits. Describe the additional measures and workload conditions you would include so the standard reflects the experience of users making different requests.
Question 10: Describe a time you changed a software rollout plan because the proposed installation window was too short.
What interviewers listen forListen for how they estimated installation time, revised the rollout plan and checked the outcome. Approving a window known to be shorter than the required installation steps is a red flag.
Candidate tipPick a rollout with a tight installation window. Explain the steps or timing evidence that exposed the problem, your change to the plan and the result. End with a lesson about planning installation time.
Question 11: What would you do if the only data available for a system capacity analysis contained sensitive customer details?
What interviewers listen forExpect them to establish authorized access and retain only the data the capacity analysis needs, with protection for sensitive details. Copying unrestricted customer records into an unprotected analysis file is a red flag.
Candidate tipExplain how you would establish what data you may use, identify the fields the capacity analysis needs and protect customer details while preparing it. Keep the proposed data handling tied to the analysis.
Question 12: What would you do if a customer asked to postpone application maintenance that would fix a known security weakness?
What interviewers listen forExpect a clear explanation of the weakness, disruption and risks, followed by a decision involving those responsible for security and the application. Promising that postponement carries no risk is a red flag.
Candidate tipStart with how you would clarify the customer's concern and explain the security risk in everyday language. Then describe how you would discuss maintenance options and involve the people responsible for accepting the risk.
Question 13: Tell me about a time you confirmed performance or data-volume limits with a project manager before agreeing to a software change.
What interviewers listen forListen for the response-time or data-volume limit they confirmed with the manager and its effect on the commitment. Promising performance without checking the stated workload is a red flag; ask how the change worked out.
Candidate tipChoose a change affected by response time or data volume. Explain what you confirmed with the project manager, how it shaped your commitment and the outcome. Include what you learned about agreeing on realistic limits.
Question 14: How do you write a software project status report that separates completed work from work still awaiting validation?
What interviewers listen forExpect clear completion criteria, separate reporting of unvalidated work and an accurate account of remaining checks. Reporting an untested feature as fully validated misleads the report's readers.
Candidate tipWalk through how you establish each feature's status and present it in the report. Explain how you distinguish code being written from behavior being checked, including any remaining uncertainty.
Question 15: Tell me about software system testing and validation procedures, programming, or documentation with you developed.
Question 16: What factors do you consider to determine the feasibility of designs within time and cost constraints?
Question 17: Share an experience in which your retrieval or manipulation of data helped you analyze system capabilities or requirements.
Question 18: Tell me about successful system performance standards which you determined.
Question 19: Provide a time when you successfully explained software system design and/or maintenance to a customer.
Question 20: Share an experience in which conferring with others helped you in your work on a project.
Question 21: How do you ensure that specifications for software system installation and equipment functioning are met?
Question 22: Tell me about a time when you supervised personnel. What methods made you a successful supervisor?
Question 23: Walk me through how you found and fixed the root cause of a hard bug in a production application.
Suggested answerThe interviewer wants to learn how you use evidence to find the cause of a production bug and confirm that your fix works.
Build your answer with Situation, Task, Action, Result. Briefly describe the application's failure and your responsibility. Spend most of the answer on the clues you followed, the explanations you ruled out and the change you made. End with how you checked the fix and what you learned.
For example: "Users reported that saving a form sometimes failed. I was responsible for investigating the application code. I compared failed requests with successful ones and noticed that the failures had an empty optional field. A test with that input reproduced the error. I traced it to code that assumed the field always had a value, corrected that assumption and added a test. After the release, I checked the affected requests for the same failure. I learned to test missing values earlier."
Avoid listing tools without explaining their evidence, claiming a cause based only on a guess, or calling the bug fixed without checking the result.
What interviewers listen forListen for evidence from logs or tests that tied the production bug to its cause, a verified fix and a lesson learned. Claiming the bug was solved without checking the fix is a red flag.
Candidate tipChoose one real production bug. Trace your investigation, the evidence that ruled out other causes and your fix. Finish with how you checked the result and what you learned.
Question 24: Share an example of how you sorted out feature requirements when users, product managers and other developers wanted different things.
What interviewers listen forListen for how they compared input from all three groups, identified the needs behind requests and checked the resulting requirements. Treating the loudest request as the only relevant input is a red flag.
Candidate tipChoose a real feature with competing requests. Show how you gathered input from users, product managers and developers, judged which needs mattered, and checked the requirements. Close with the result and a lesson.
Question 25: Describe how you chose between a quick fix and a larger refactor on an application you worked on.
Suggested answerThe interviewer wants to learn how you compare the costs and benefits of a quick fix and a larger refactor before choosing an approach.
Use Situation, Task, Action, Result to organize a real decision. Explain the application's problem and your responsibility, then compare the options using the user impact, effort and risks you knew at the time. Describe your contribution to the choice, the outcome and what you learned.
For example: "A validation change was needed before an application release. I could patch the affected form or refactor validation shared by several screens. I checked the other screens and compared the testing each option needed. The patch addressed the reported problem with less risk to unrelated screens, so I recommended it and recorded the remaining duplication for later work. We tested the affected form and released the fix. I learned to make the cost of postponing a refactor visible when proposing a smaller change."
Avoid declaring that refactoring is always best, ignoring known risks to meet a deadline, or describing only the team's decision without your reasoning.
What interviewers listen forA strong example compares user impact, effort and risk, then connects the choice to the result and a lesson. Ignoring known risks just to meet the application's deadline is a red flag.
Candidate tipUse a real application change. Explain the costs and benefits of the quick fix and refactor, your part in choosing, and the outcome. Include what the decision taught you.
Question 26: Share an experience in which your attention to detail and thoroughness had an impact on your last company.
Suggested answerThe interviewer wants proof that you catch errors others miss and that this protects the organization.
Use Situation, Task, Action, Result. Describe what you were checking, what you noticed, and how you found it, such as comparing against a source or double-checking totals. Then explain what would have happened if the error had gone through, and what you did to prevent it next time.
Sample answer: "While preparing an order for a large customer, I compared the quantities against the signed quote, as I always do, and saw that one item had been entered as 1,000 units instead of 100. I flagged it to my supervisor, we corrected it before it shipped, and we avoided a costly return. Afterward I suggested adding a quote-check step to the order form, and the team adopted it."
Pitfalls: Don't just say you're detail-oriented without an example. Avoid exaggerating the dollar impact. Don't describe perfectionism that caused missed deadlines.
Question 27: How do you decide what to work on first when bug fixes, feature work and code reviews all compete for your time?
Suggested answerThe interviewer wants to see that you can judge urgency and impact, keep teammates unblocked and stay aligned with the team's priorities. Explain your usual approach, then give a short example. Sample answer: "I start by assessing production bugs for severity, user impact and available workarounds. A serious failure may need immediate attention; a minor issue with a safe workaround can wait if the team agrees. Next I look at code reviews waiting on me, since a teammate may be blocked; I try to do those within the day, even if it is a quick first pass. Then I go back to my planned feature work. When something new comes in and I am not sure where it fits, I ask my lead or product owner rather than guessing. For example, last month a minor bug report came in during a feature sprint. I checked how many users it affected, saw it was a small group with a workaround, and agreed with the product owner to schedule it for the next sprint so the feature stayed on track." Pitfalls to avoid: saying you just do things in the order they arrive; ignoring reviews that block others; changing priorities without telling anyone.
What interviewers listen forListen for weighing user impact and unblocking others, and for agreeing on priorities with the team. Working only on what they find interesting, or letting reviews pile up, is a red flag.
Candidate tipDescribe how you judge urgency and impact, such as bugs affecting users or reviews blocking teammates, and how you check priorities with your lead or product owner.
Question 28: Tell me about a time you had to tell a manager or client that a feature would miss its deadline.
Suggested answerThe interviewer wants to know whether you raise problems early and honestly, and whether you bring options rather than just bad news. Use Situation, Task, Action, Result. Sample answer: "I was building a reporting feature for a client, due at the end of the month. Halfway through, I found their data came from an old system with no clean way to export it, which would add at least a week. I told my manager the same day rather than hoping to catch up. I came with two options: release the reports with the data we could already reach on the original date, or wait an extra week for the full set. My manager and I took both options to the client and explained what each meant for them. They chose the partial release, and we delivered the rest the following week. The client said they appreciated hearing early." Pitfalls to avoid: waiting until the deadline to speak up; blaming teammates or the client; giving a new date you have not thought through.
What interviewers listen forStrong candidates raise problems early and come with options and a revised estimate. Waiting until the deadline or blaming others is a red flag.
Candidate tipSay when you saw the slip coming, how early you raised it, and what options you brought, such as cutting scope or a new date. End with how it worked out.
Question 29: Tell me how you handled a teammate's strong pushback on your code or design during a review.
Suggested answerThe interviewer wants to learn how you respond constructively when a teammate strongly challenges your code or design during a review.
Use Situation, Task, Action, Result. Set up the technical disagreement briefly and explain your role. Focus on how you understood the concern, kept the discussion about the work and helped reach a decision. Close with the review's outcome and what you learned about handling pushback.
For example: "In a code review, a teammate strongly objected to a helper I had added because its behavior was hard to follow. I initially thought the name made it clear. I asked them to walk through the confusing call, then explained the duplication I was trying to remove. Their example showed that the helper hid an important difference between two cases. I revised the code to make that difference explicit, and they accepted the change. I learned to ask for a concrete example before defending my first design."
Avoid personal attacks, claiming you agreed while ignoring the review comment, or giving a hypothetical response instead of a real example.
What interviewers listen forListen for their own response to the teammate, a fair look at the technical concern and a clear outcome or lesson. Dismissing a review comment because of who raised it is a red flag.
Candidate tipPick one real code or design review. Briefly explain the disagreement, then focus on how you responded to the teammate and worked through the concern. End with the outcome and what you learned.
Question 30: Tell me about a time you applied a new library, framework or tool to solve a software project problem.
Suggested answerThe interviewer wants to learn how you judge new technology and whether you help a team adopt it, rather than chasing whatever is new. Use Situation, Task, Action, Result. Sample answer: "Our team spent a lot of time in code reviews arguing about formatting, and the style varied across files. I suggested an automatic code formatter. Before proposing it, I checked that it was well maintained, had a license our company allowed and worked with our editors. I ran it on one small module so people could see the result, then shared a short write-up in our team meeting. We agreed to adopt it, and I set it up to run before each commit and in our build. I formatted the whole codebase in one separate change so it would not mix with real work. After that, reviews focused on logic instead of spacing, and new team members did not have to learn our style rules by hand." Pitfalls to avoid: choosing a tool only because it is popular; skipping how you checked support, security or license; forcing it on the team without agreement.
What interviewers listen forLook for weighing maintenance, security and learning cost, not just novelty, and for bringing the team along. Adding a dependency on a whim is a red flag.
Candidate tipExplain the problem it solved, how you checked it was a good choice, such as a small trial or reviewing its support and license, and how you helped others adopt it.