asked 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

asked
User Shabazz
by
8.6k 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.
answered
User Manigandan
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.