After planning an algorithm, you should _____ to verify that it will work correctly. A. Analyze the algorithm B. Code the algorithm C. Desk-check the algorithm D. Evaluate and modify (if necessary) the program. E. None of the above

[amp_mcq option1=”Analyze the algorithm” option2=”Code the algorithm” option3=”Desk-check the algorithm” option4=”Evaluate and modify (if necessary) the program. E. None of the above” correct=”option3″]

The correct answer is C. Desk-check the algorithm.

A desk check is a manual technique used to verify the correctness of an algorithm. It involves following the algorithm step-by-step, using sample data, and checking the results to make sure they are correct.

Option A is incorrect because analyzing an algorithm is not the same as verifying its correctness. Analyzing an algorithm involves understanding its structure and how it works. Verifying its correctness involves checking that it produces the correct results for all possible inputs.

Option B is incorrect because coding an algorithm is not the same as verifying its correctness. Coding an algorithm involves writing a program that implements the algorithm. Verifying its correctness involves checking that the program produces the correct results for all possible inputs.

Option D is incorrect because evaluating and modifying (if necessary) the program is not the same as verifying its correctness. Evaluating a program involves testing it to see how well it performs. Modifying a program involves making changes to improve its performance. Verifying its correctness involves checking that it produces the correct results for all possible inputs.

Option E is incorrect because it is not a valid option.