CS FundamentalsModerateTCS · Infosys
A function divides by (x - 7). Black-box tests from equivalence partitioning used x = 3, 50 and -10 and all passed. Which additional technique is most likely to expose the crash?
- A. Special-value (error-guessing) testing, which targets inputs such as 7, 0 and very large numbers that commonly cause failures
- B. Retesting the same three values
- C. Pairwise testing
- D. Load testing
Correct answer: A. Special-value (error-guessing) testing, which targets inputs such as 7, 0 and very large numbers that commonly cause failures
Equivalence partitioning assumes all values in a class behave alike; a single special point (x = 7) breaks that assumption. Error guessing and special-value testing target such singularities.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A web form's 'Date of birth' accepts dates from 1 Jan 1950 to 31 Dec 2005 inclusive. Using two-value boundary value analysis, which dates…
- A control-flow graph has nodes 1-8 and edges 1→2; 2→3, 2→4, 2→5 (a switch); 3→6; 4→6; 5→6; 6→7, 6→8; 7→2 (loop back); node 8 is the exit…
- A UML class diagram shows Order with a filled (black) diamond connected to OrderLine with multiplicity 1.. on the OrderLine end. Which…
- In an ATM use-case diagram, 'Withdraw Cash' always performs 'Authenticate User', while 'Print Receipt' happens only when the customer asks…
- In a UML sequence diagram, how are a synchronous call, an asynchronous message and a return message usually drawn?
- In a UML activity diagram, after an order is paid, 'Pack items' and 'Send invoice' happen in parallel, and 'Ship' may start only when both…