CS FundamentalsHardAccenture · ISTQB-style
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 should be tested?
- A. 1 Jan 1950, 31 Dec 2005
- B. 1 Jan 1950, 2 Jan 1950, 30 Dec 2005, 31 Dec 2005
- C. 31 Dec 1949, 1 Jan 1950, 31 Dec 2005, 1 Jan 2006
- D. 1 Jan 1949, 1 Jan 1950, 31 Dec 2005, 31 Dec 2006
Correct answer: C. 31 Dec 1949, 1 Jan 1950, 31 Dec 2005, 1 Jan 2006
Two-value BVA tests each boundary and its nearest neighbour outside it, using the field's step (one day): 31 Dec 1949 | 1 Jan 1950 and 31 Dec 2005 | 1 Jan 2006. Year-sized steps skip the true neighbours.
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 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…
- A class diagram shows a dashed line with a hollow triangle from PaymentService to the interface IPayment, and a solid line with a hollow…