Question Detail

COS 102 Concept & Properties of Algorithm lecture 3 Week4 Objective Question

Question

When writing an algorithm, what three key elements are required to be clearly identified?
Options
A The programming language, the compiler, and the debugger.
B The input, the processing/computation, and the output.
Correct Answer
C The designer, the execution time, and the memory usage.
D The software, the hardware, and the network.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 11, under 'Requirement', clearly states: 'While writing an algorithm, it is required to clearly identify the following: The input to be taken from the user, Processing or computation to be performed to get the desired result, The output desired by the user.'

Hint

Look at the 'Requirement' section on page 11 for the bulleted list of items to identify.

Question Info