36.0k views
5 votes
When testing code for correctness, it always makes sense to _______________. Select one: a. identify boundary cases and test them b. assume invalid input will never occur c. check all cases by hand d. test at least one branch of each test case

User Shabazz
by
6.3k points

1 Answer

1 vote

Answer:

a. identify boundary cases and test them

Step-by-step explanation:

  • The test is great as they serve as the implied contract abut the code should do and the testing enables us to asset the quality of the correctness of the algorithm and is to be correct with the respect to the specification hence its essential to identify the boundary and proves that the program gives a correct output.
User Manigandan
by
6.0k points