The calculation instructions in an algorithm should state _____. A. Only what is to be calculated B. Only how to calculate something C. Both what is to be calculated and how to calculate it D. Both what is to be calculated and why is it calculated E. None of the above

[amp_mcq option1=”Only what is to be calculated” option2=”Only how to calculate something” option3=”Both what is to be calculated and how to calculate it” option4=”Both what is to be calculated and why is it calculated E. None of the above” correct=”option3″]

The correct answer is: C. Both what is to be calculated and how to calculate it.

An algorithm is a step-by-step procedure for solving a problem. The calculation instructions in an algorithm should state both what is to be calculated and how to calculate it. This is because the algorithm needs to be able to be followed by someone who does not know the problem domain, and it needs to be able to be implemented in a computer program.

Option A is incorrect because it does not state how to calculate the result. Option B is incorrect because it does not state what is to be calculated. Option D is incorrect because it does not state how to calculate the result, and it does not state what is to be calculated. Option E is incorrect because it is not one of the possible answers.