Question Detail

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

Question

Which of the following operations would typically fall under 'Input Data' in algorithm notation?
Options
A Print 'Program Complete'
B Add num1 to num2
C Initialise totalPrice to zero
D Get student name
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

Page 12, under 'Input Data', lists 'Read: Read student name' and 'Get: Get student name'. The other options fall under 'Output Information', 'Perform Arithmetic', or 'Assign Values'.

Hint

Review the 'NOTE' section on page 12, specifically the 'Input Data' category.

Question Info