Behavioral questions

MathWorks

Tell me about a project in which you wrote tests or otherwise checked how well your code worked.

BehavioralLast seen Nov 4, 2026 · Software engineer
Technical impactOwnership

What they're looking for

The interviewer wants to see whether you care about how well your own code works and know how to check it. A strong answer shows the kinds of tests you wrote and why, how you decided what to test, a bug or problem your checks found, and what changed because of it.

What works

  • Pick a class, research or internship project where testing made a real difference.
  • Name the kinds of checks you used, such as unit tests, edge cases, code review or comparing against known results.
  • Explain how you chose what to test first, for example the riskiest or most used parts.
  • Give a specific bug you caught and what would have happened without the test.

What hurts

  • Saying you tested by running the program a few times by hand.
  • Listing test tools without showing how you used them.
  • Picking a project where testing played no real part.

Sample answer

Think of your own story first, then compare.