Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
A registration form has an "Age" field that accepts whole numbers from 18 to 65. What checks would you come up with for this field, and how would you choose the specific values?JuniorIn an online store, the discount depends on three conditions: whether the customer has a loyalty card, whether the order total is over $100, and whether this is their first order. How would you design the tests so that you don't miss a single combination?JuniorYou need to test a web app across different configurations: four browsers, three operating systems, three interface languages and two pricing plans. Testing every combination means seventy-two of them. How would you reduce the number of tests?JuniorThere's a function is_valid_password: it takes a string and returns true or false. A password is valid if it has 8 to 20 characters, at least one digit, and at least one uppercase Latin letter. You don't have the function's code; write a set of automated tests for it.JuniorA checkout form has four payment methods, three delivery methods, five regions, and a "have a promo code" checkbox. Testing every combination exhaustively takes too long. How would you reduce the test set, and what are you risking by doing that?Mid-levelAn online store's discount depends on the customer's status, the order total and whether there's a promo code, and the rules overlap in places. How would you design tests for this logic?Mid-levelThere's a "transfer amount" field: valid values are from $1 to $1,000, and cents are allowed. What checks would you put together for this field, and why those in particular?Mid-levelTell me when you use pairwise testing, and in which cases it can miss a serious defect.SeniorYou're given a business rule for calculating a discount that depends on the order total, the customer's status and a promo code. How would you design tests for it?Senior