Skip to content
Sharp

Testing interview questions

API Contract Testing, Arrange Act Assert, Basic pytest Assertions, Boundary And Failure Tests, Fixtures, Monkeypatching and Mocks

225 questions with answers and explanations · 207 flashcards

Questions (page 3 of 5)

  1. When is boundary and failure tests being used in the wrong way?Multiple choiceHard
  2. What assumption should be made explicit when working with api contract testing?Multiple choiceHard
  3. What do interviewers usually hear as a strong signal when you discuss fixtures well?Multiple choiceHard
  4. Which naming or modeling choice is strongest for api contract testing?Multiple choiceHard
  5. Another engineer will maintain this code later. What choice helps the most around api contract testing?Multiple choiceHard
  6. A senior interviewer asks for one tradeoff behind api contract testing. What is the strongest follow-up?Multiple choiceHard
  7. If you wrote a test around basic pytest assertions, what should the test prove first?Multiple choiceEasy
  8. Which boundary choice best fits boundary and failure tests in a maintainable Python system?Multiple choiceHard
  9. Which option is the safer default when shipping code around reliability stories?Multiple choiceHard
  10. What does a strong engineer do when reasoning through reliability stories code?Multiple choiceHard
  11. Which naming or modeling choice is strongest for fixtures?Multiple choiceMedium
  12. What production risk should you worry about most if tmp_path and file tests is handled lazily?Multiple choiceHard
  13. What is the healthiest performance judgment around monkeypatching and mocks?Multiple choiceMedium
  14. What production risk should you worry about most if monkeypatching and mocks is handled lazily?Multiple choiceMedium
  15. Another engineer will maintain this code later. What choice helps the most around reliability stories?Multiple choiceHard
  16. You cannot rewrite everything today. What is the best incremental improvement around tmp_path and file tests?Multiple choiceHard
  17. What does a strong engineer do when reasoning through tmp_path and file tests code?Multiple choiceHard
  18. If parameterized tests fails in production, what handling philosophy is strongest?Multiple choiceMedium
  19. Which judgment is strongest when choosing a data shape for tmp_path and file tests?Multiple choiceHard
  20. Which move is the best default when reliability stories becomes part of this workflow?Multiple choiceHard
  21. What production risk should you worry about most if fixtures is handled lazily?Multiple choiceMedium
  22. If you wrote a test around monkeypatching and mocks, what should the test prove first?Multiple choiceMedium
  23. What production risk should you worry about most if reliability stories is handled lazily?Multiple choiceHard
  24. Which naming or modeling choice is strongest for monkeypatching and mocks?Multiple choiceMedium
  25. Another engineer will maintain this code later. What choice helps the most around fixtures?Multiple choiceMedium
  26. Which explanation would sound strongest in an interview when discussing parameterized tests?Multiple choiceMedium
  27. What is the clearest sign that code around reliability stories should be refactored?Multiple choiceHard
  28. What do interviewers usually hear as a strong signal when you discuss reliability stories well?Multiple choiceHard
  29. A senior interviewer asks for one tradeoff behind parameterized tests. What is the strongest follow-up?Multiple choiceHard
  30. A bug appears around tmp_path and file tests. What is the strongest first debugging move?Multiple choiceHard
  31. Which boundary choice best fits reliability stories in a maintainable Python system?Multiple choiceHard
  32. A bug appears around fixtures. What is the strongest first debugging move?Multiple choiceMedium
  33. What is the healthiest performance judgment around parameterized tests?Multiple choiceMedium
  34. Which response shows the healthiest evidence-first mindset around monkeypatching and mocks?Multiple choiceHard
  35. You cannot rewrite everything today. What is the best incremental improvement around parameterized tests?Multiple choiceMedium
  36. Which naming or modeling choice is strongest for parameterized tests?Multiple choiceMedium
  37. What is the clearest sign that code around tmp_path and file tests should be refactored?Multiple choiceHard
  38. When is fixtures being used in the wrong way?Multiple choiceMedium
  39. Which explanation would sound strongest in an interview when discussing reliability stories?Multiple choiceHard
  40. Which option describes the most likely pitfall around fixtures?Multiple choiceMedium
  41. Which option treats tmp_path and file tests as an engineering policy decision instead of a syntax trick?Multiple choiceHard
  42. Which naming or modeling choice is strongest for tmp_path and file tests?Multiple choiceHard
  43. Another engineer will maintain this code later. What choice helps the most around parameterized tests?Multiple choiceMedium
  44. Which option describes the most likely pitfall around tmp_path and file tests?Multiple choiceHard
  45. If fixtures fails in production, what handling philosophy is strongest?Multiple choiceMedium
  46. Which move is the best default when monkeypatching and mocks become part of this workflow?Multiple choiceMedium
  47. Which option treats reliability stories as an engineering policy decision instead of a syntax trick?Multiple choiceHard
  48. A bug appears around monkeypatching and mocks. What is the strongest first debugging move?Multiple choiceMedium
  49. What do interviewers usually hear as a strong signal when you discuss monkeypatching and mocks well?Multiple choiceHard
  50. What kind of contract clarity matters most for tmp_path and file tests?Multiple choiceHard