16. which method of finding errors is most useful to identify logic errors? * \na. creating new test…

16. which method of finding errors is most useful to identify logic errors? * \na. creating new test cases\nb. hand - tracing\nc. rerunning the program with different inputs to see the impact on outputs\nd. running a simulation

16. which method of finding errors is most useful to identify logic errors? * \na. creating new test cases\nb. hand - tracing\nc. rerunning the program with different inputs to see the impact on outputs\nd. running a simulation

Answer

Brief Explanations:

Logic errors are mistakes in the program's logic. Hand - tracing (also known as desk - checking) involves manually following the execution of the program line by line, which helps in identifying where the logical flow goes wrong. Creating new test cases, rerunning with different inputs, or running a simulation are more about testing the output against expected results rather than directly identifying the logical flaw in the code's flow.

Answer:

B. Hand - tracing