Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 1 - No. 42)
What is the purpose of testing different scenarios with the same algorithm?
To make the user interface more appealing.
To see if there are errors in the calculations.
To improve the speed of the algorithm.
To find the logic errors that might lead to incorrect calculations for specific inputs.
Explanation
Testing different scenarios is to verify the algorithm will produce the correct result no matter the inputs.
Comments (0)
