Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Practical tasksSeniorCommonScenario

A calculator returns an incorrect result for a simple expression. How do you localize the failure?

Answer

Reproduce with controlled inputs, inspect the displayed value and request payload, isolate client and service calculation, verify parsing, locale, types and rounding, then compare logs and persisted data. Reduce the case until one layer violates a clear invariant.

Strong answer includes

  • reduces the example
  • isolates layers
  • checks parsing and numeric rules

Practical example

A calculator showed 0.1 + 0.2 as 0.30000000000000004; a senior QA engineer traced it to raw floating-point arithmetic on the frontend with no rounding before display, isolated it by testing the backend API directly (which returned the correct rounded value), confirming the bug was purely in client-side formatting.

#root-cause#calculation#debugging

Sources

DOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topics