Computer Programmer Interview Questions
30 questions
Question 1: Walk me through a hard-to-find bug you fixed, from the first report to confirming the fix worked.
Suggested answerThe interviewer wants to see how you debug: whether you follow a method or guess. Use Situation, Task, Action, Result. Set the scene briefly, then spend most of your answer on the steps: how you reproduced the bug, how you narrowed down the cause, what you changed and how you retested. Sample answer: "Users reported that a monthly report sometimes showed duplicate orders, but I couldn't make it happen on my machine. I compared the failing runs and noticed they all happened when two people ran the report at the same time. I wrote a small test that ran it twice in parallel, and the duplicates appeared. The cause was a temporary table both runs shared. I gave each run its own table, added the parallel test to our test suite, and checked the next few reports against the database totals. The duplicates stopped." Pitfalls to avoid: picking a bug that took five minutes to fix; skipping how you confirmed the fix; blaming the person who wrote the original code.
What interviewers listen forListen for a clear method: reproducing the bug, narrowing the cause, fixing the root cause and retesting. Guessing at changes until the symptom went away is a red flag.
Candidate tipPick a real bug that took some digging. Say how you reproduced it, how you narrowed down the cause, what you changed, and how you rechecked that the program gave the right results.
Question 2: Tell me about some of your most recent computer programming projects.
Suggested answerThe interviewer wants to know what you have built lately, how current your skills are, and how you approach programming work.
Pick one or two recent projects. For each, say what problem it solved, the languages and tools you used, your role, and one thing you learned or would do differently. Keep it short and plain.
Sample answer: "My most recent project was a small web form that lets our staff request equipment and tracks each request until it's filled. I built it with a database to store the requests and simple email alerts, and I handled the coding, testing, and setup. Before that, I wrote a script that cleans up our monthly sales data before it goes into reports. Both projects taught me to show users an early draft, because their needs often changed once they saw something working."
Pitfalls: Don't list projects without saying what you did on them. Avoid jargon the interviewer may not follow. Don't pick old projects if you have recent ones.
Question 3: Share an experience in which you successfully increased the operating efficiency of a program or adapted a program to fit new requirements. What methods made you successful?
Question 4: Tell me about a computer program or software package you wrote to handle a specific job.
Question 5: Describe a trial run you conducted of a program or software application. How did you ensure that it produced desired information and that the instructions were correct?
Question 6: Describe a program you wrote using workflow chart and diagram. How did you apply your knowledge of computer capabilities, subject matter, and/or symbolic logic?
Question 7: Provide a time when consulting with other personnel helped you identify or solve a problem in a program.
Question 8: Tell me how you used code, documents and conversations to find the information that mattered for a programming change.
Suggested answerThe interviewer wants to see how you choose useful information from several sources before changing a program.
Use Situation, Task, Action, Result. Set up the programming change and the information gap. Name the sources you consulted, explain which details mattered to the requirements, and end with the effect on your code or tests.
Sample answer: "A spec asked me to add a late fee to overdue invoices but did not explain partial payments. I checked the billing code, the policy document and the business analyst's explanation. I set aside code for closed accounts because this change covered open invoices. The remaining sources still left a gap, so I sent the analyst examples of the different fee outcomes. The analyst confirmed the intended rule, and I used those examples in the tests."
Avoid listing sources without explaining their relevance, treating old code as the final authority, or guessing when the requirement remains unclear.
What interviewers listen forA strong example compares sources and explains which details mattered to the programming change. Gathering documents without judging their relevance is a weak answer.
Candidate tipUse a real programming change. Name the sources you consulted, explain which details mattered to the requirements, and show how your choices shaped the code or tests.
Question 9: Tell me about a time testing you did on a program uncovered a problem and led you to improve its quality or performance.
Suggested answerThe interviewer wants to see whether you test your own code thoroughly and act on what the tests show. Use Situation, Task, Action, Result: what you tested, how you chose the tests, what you found, and what changed. Sample answer: "I had finished a program that imported customer records from a partner's file each night. Before release, I tested it with files that had missing fields, very long names and a copy of the largest real file we had received. The large file took far too long, because the program checked each record against the database one at a time. I changed it to load the existing IDs once and check against that list in memory. I reran the tests, the large file finished well within the nightly window, and the edge cases were handled with clear error messages." Pitfalls to avoid: describing testing someone else did; giving no detail on how you chose the test cases; skipping how you confirmed the improvement.
What interviewers listen forListen for what they tested, how they chose test cases, and what changed after the fix. Testing only the expected inputs, or leaving all testing to others, is a red flag.
Candidate tipExplain what you tested and how, such as edge cases or load tests, what the results showed, and what you changed in the code. Describe how you confirmed the improvement.
Question 10: Walk me through a time you weighed the pros and cons of different ways to code a feature or fix.
Suggested answerThe interviewer wants to see how you make design choices in code and whether you think about tradeoffs beyond getting it to work. Use Situation, Task, Action, Result, and spend most of the answer on the options and how you compared them. Sample answer: "We needed to add search to an internal parts catalog. One option was a simple database query with wildcards, which was quick to build. The other was a separate search index, which would be faster for users but meant one more system to maintain. I tested the simple query on a copy of the full catalog, and it returned results quickly enough for the number of people who used it. I shared the results with my lead, we chose the simple query, and I wrote down when we should revisit the choice if the catalog grew a lot." Pitfalls to avoid: describing only the option you picked; ignoring maintenance and risk; making the decision sound like it had no input from others.
What interviewers listen forA strong answer names real tradeoffs, such as speed, readability, maintenance cost and risk, and checks the choice with others. Picking a favorite approach without comparing is a red flag.
Candidate tipName the options you considered and what each would cost or risk. Say what you chose, why, and how it worked out once the code was in use.
Question 11: Tell me about a time you applied a new programming tool, technology or technical information to improve your team's work.
Suggested answerThe interviewer wants to learn how you applied new technology or information to produce a useful change in programming work.
Use Situation, Task, Action, Result. Describe the team's need, the new tool or information and your role in applying it. Explain the checks you made and the benefit you could actually observe.
An illustrative example: "Our team maintained a reporting program, and I applied a new testing approach when adding an export. I started with a small part of the code, built checks for date handling and compared the generated files with known examples. I asked another developer to review the tests before we used them for later changes. A test caught an end-of-month date error before release. I corrected the export and added the case to our regular checks, so the team could catch the same error when changing that code again."
Avoid listing technologies without an application, claiming a tool was better simply because it was new, or inventing time savings. State any limits in how you measured the benefit.
What interviewers listen forListen for a concrete application in code or a programming workflow and evidence of its benefit. Claiming improvement simply because the technology was new is a red flag.
Candidate tipName the new tool or information and the programming problem it addressed. Focus on how you applied it, checked the work and assessed the benefit to your team.
Question 12: Tell me about a time when you compiled and wrote documentation of a program development. What is one thing you would like to improve in your documentation?
Question 13: 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 14: Share an experience in which you prepared detailed workflow charts and successfully converted them into a series of instructions coded in a computer language.
Question 15: Tell me about a time you spotted a problem in a program's output, logs or error reports before users did.
What interviewers listen forListen for what they were watching, what made them notice, and how they confirmed and fixed the issue. Ignoring warnings until users complained is a red flag.
Candidate tipExplain what you were reviewing and what looked wrong. Describe how you checked the cause, what you did about it, and whether you added anything to catch it sooner next time.
Question 16: Describe your approach when a program you write has to process a very large volume of records.
What interviewers listen forA strong answer covers testing with realistic data volumes, efficient queries or batching, and checks that no records were lost. Never having considered speed or data volume is a red flag.
Candidate tipUse a real example. Explain how you handled memory, speed and errors, how you tested with realistic data, and how you confirmed the output was complete and correct.
Question 17: Walk me through how you prioritize when bug fixes, change requests and new programming work all land on you at once.
Suggested answerThe interviewer wants to see how you decide what to work on when everything seems urgent, and whether you keep others informed. Explain your general method, then back it up with a recent example. Sample answer: "I sort work by impact and deadline. A bug that stops users from working comes first, then work with a fixed date, then smaller changes. When two requests compete and I'm not sure which matters more, I ask my lead rather than guess. Recently I was midway through a new feature when a bug stopped orders from saving. I paused the feature, fixed and tested the bug the same day, then told my lead the feature would be a day late and asked whether a small change request could wait until the following week. They agreed, and everything shipped in that order." Pitfalls to avoid: saying you just work harder or longer; treating every request as top priority; leaving your manager out when plans change.
What interviewers listen forA strong answer weighs impact and urgency and checks priorities with the lead or manager. Working tickets strictly in arrival order, or never pushing back, is a red flag.
Candidate tipExplain the method you use, such as ranking by impact on users and by deadline, and give a recent example. Mention how you keep your lead informed when priorities change.
Question 18: Tell me about a time you had to tell a manager or client that a program would miss its deadline or had a serious bug.
Suggested answerThe interviewer wants to know whether you raise bad news early and honestly, and whether you bring options along with the problem. Use Situation, Task, Action, Result. Sample answer: "Two weeks before a release, I found that the data conversion I was writing would take much longer than planned, because the old records had far more errors than expected. I told my manager that day rather than hoping to catch up. I explained what I had found, showed a few examples of the bad records, and offered two options: move the date, or release with the clean records converted and fix the rest in a second pass. My manager chose the second option and explained the plan to the client. The release went out on time, and the second pass finished a few weeks later." Pitfalls to avoid: waiting until the deadline to speak up; blaming teammates or the client; bringing the problem with no ideas for what to do next.
What interviewers listen forLook for early, honest notice with the facts, the impact and some options. Hiding the problem until the deadline, or blaming teammates, is a red flag.
Candidate tipSay what the news was, when and how you raised it, and what options you offered, such as a smaller scope or a fix plan. End with how the people involved responded.
Question 19: Tell me about a time you worked with a teammate who was hard to deal with, such as during code reviews or on a shared program.
Suggested answerThe interviewer wants to know whether you can work professionally with a difficult teammate while keeping programming work moving.
Use Situation, Task, Action, Result. Describe the behavior and its effect on the code review or shared program. Focus on your own actions, then explain the outcome and anything you would change.
Sample answer: "A teammate rejected my changes in code reviews with short comments that did not explain the problem. I asked for a conversation about a specific review. They were worried that the new code would be hard to test. I added testing notes to my changes, and we agreed that review comments should name the concern and explain the requested change. Our next review focused on test coverage rather than personal criticism. I learned to ask about a concern before assuming what a comment meant."
Avoid attacking the person's character, claiming you were entirely right, or hiding information to undermine them. Involving a lead can be appropriate when a conflict remains unresolved.
What interviewers listen forListen for specific steps to resolve the code-review conflict and keep work moving. Personal attacks or hiding information to undermine the teammate are red flags; involving a lead can be appropriate.
Candidate tipDescribe the behavior, not the person's character. Explain what you did to keep the work moving, such as talking one on one or agreeing on review rules, and how the working relationship ended up.
Question 20: Provide an experience in which you worked with a computer operator or system analyst to successfully resolve a problem in running a computer program.
Question 21: Share an effective method you have used to ensure that networks, workstations, central processing units, and peripheral equipment respond to programs' instructions.
Question 22: Describe an effective method you have used to maintain and control the use of computer systems software.
Question 23: Share an experience in which your contribution to the development of instructions for end users benefited your company.
Question 24: Tell me about a time when your ability to analyze needs and product requirements helped you create an effective design or make an informed decision to benefit your company.
Suggested answerThe interviewer wants to see how you find out what is really needed before you design something or make a decision.
Use Situation, Task, Action, Result. Explain how you gathered the needs or requirements, how you weighed them, the design or decision you reached, and how it helped the company.
Sample answer: "Our team was asked to choose a new tool for tracking customer requests. Instead of starting with product demos, I talked to the people who would use it every day and listed what they needed most: quick search, simple tags, and reports for managers. I scored three options against that list and shared the results. We chose the one that fit the daily work best, even though it had fewer extra features. People were using it within a week, and we didn't need a second round of training."
Pitfalls: Don't jump to the solution without showing how you learned the needs. Avoid a decision made only on cost or personal preference. Don't skip the benefit to the company.
Question 25: Provide a time when you were able to identify a complex problem, evaluate the options, and implement a solution. How did the solution benefit your employer?
Suggested answerThe interviewer wants to see how you handle problems with many parts: how you break them down, choose a path, and follow through.
Use Situation, Task, Action, Result. Explain why the problem was complex, such as several causes or many people affected. Walk through how you found the root cause, the options you weighed, and how you put the solution in place. End with the benefit to your employer.
Sample answer: "Our monthly billing kept going out late. The cause wasn't one thing: data arrived late from two departments, and the billing software needed manual fixes. I mapped each step, timed them, and found the manual fixes took the most time. I compared hiring temporary help with automating the fixes, and we chose automation with help from our technology team. Billing went out on time for the next three months, and customers paid faster."
Pitfalls: Don't pick a simple problem and call it complex. Avoid skipping the options you considered. Don't take credit for others' work; name who helped.
Question 26: Share an experience in which your ability to consider the costs or benefits of a potential action helped you choose the most appropriate action.
Suggested answerThe interviewer wants to see that you think through the trade-offs of a decision before acting.
Use Situation, Task, Action, Result. Describe the decision, the options, and the costs and benefits you weighed, including money, time, risk, and the effect on people. Explain which you chose and how it turned out.
Sample answer: "Our team's printer broke for the third time in a year. One option was another repair, which was cheap. Another was a new printer, which cost more up front. I looked at the past year's repair bills and the downtime each breakdown caused. The repairs plus lost time were likely to cost more than a new machine over two years. I shared that with my manager, we bought a new printer, and we haven't had a breakdown since."
Pitfalls: Don't focus only on money; include time and people. Avoid a decision you made without checking the facts. Don't skip how it turned out.
Question 27: Tell me about a time you found an unusual approach to a programming problem that the obvious solution couldn't handle.
What interviewers listen forListen for why the usual solution failed and how they tested the alternative. Needless complexity without explanation, documentation or a plan for maintenance is a red flag.
Candidate tipDescribe the problem and why the standard approach didn't fit. Explain your idea, how you tested it, and what it meant for the program or its users.
Question 28: Provide an example of a time when you were able to demonstrate excellent listening skills. What was the situation and outcome?
Suggested answerThe interviewer wants evidence that you listen to understand, not just to reply, and that it makes a difference to your work.
Use Situation, Task, Action, Result. Show what careful listening looked like: letting the person finish, asking follow-up questions, and repeating back what you heard. The outcome should show that listening caught something you would otherwise have missed.
Sample answer: "A manager from another department asked for a monthly report and said they wanted it faster. Instead of starting right away, I asked what they used the report for. They mentioned twice that they only looked at two of the columns. I confirmed that with them, built a one-page summary of just those figures, and it took a third of the time to produce. They used the summary format from then on."
Pitfalls: Don't just describe yourself as a good listener without an example. Avoid an answer where you talk mostly about what you said. Don't leave out the outcome the question asks for.
Question 29: Share an experience in which your understanding of a current or upcoming problem helped your company to respond to the problem.
Suggested answerThe interviewer wants to see that you keep up with what is happening around your work and use that knowledge to help the organization prepare.
Use Situation, Task, Action, Result. Explain what the problem was, how you came to understand it early (reading, training, talking with others), what you recommended, and how the organization responded.
Sample answer: "I read in an industry newsletter that a key supplier planned to stop making a part we used in several products. I checked with our purchasing team, confirmed the news, and researched two replacement parts. I shared a short summary with my manager, and we ordered extra stock of the old part while we tested a replacement. When the supplier stopped production months later, we switched over without any delays to customers."
Pitfalls: Don't take credit for spotting something everyone already knew. Avoid a story where you noticed the problem but did nothing. Don't leave out how you learned about it.
Question 30: Provide a time when you worked in a rapidly evolving workplace. How did you deal with the change?
Suggested answerThe interviewer wants to know how you respond when processes, tools, or priorities change quickly, and whether you help or slow things down.
Use Situation, Task, Action, Result. Describe what was changing and how it affected your work. Then explain what you did to adjust: learning the new way, asking questions, or helping others through it. End with how things turned out and what you took from it.
Sample answer: "In one year my team changed its scheduling software, its reporting process, and its manager. When the new software came in, I signed up for the first training session, wrote a one-page guide for the steps we used most, and shared it with the team. Questions to our manager dropped within a couple of weeks, and I was asked to help test the next update."
Pitfalls: Don't complain about the changes or past leadership. Avoid saying you just went along with it; show what you actively did. Don't pick a change so small it doesn't show adaptability.
What interviewers listen forMake sure the candidate is flexible.
Candidate tipShow that you can adapt.