Question Detail

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

Question

Which of the following commands is used under 'Assign Values' in the 'NOTE' section for algorithms?
Options
A ADD
B DOWHILE
C Initialise
Correct Answer
D IF...THEN...ELSE
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 13 lists 'Initialise: Initialise totalPrice to zero', 'Set: Set totalPrice to zero', and 'Store: Store zero in totalPrice' as actions for assigning values.

Hint

Look for keywords specifically related to giving a starting value to a variable.

Question Info