Question Detail

COS 102 If staments Objective Question

Question

Which keyword is used in Python to initiate a decision-making process based on a condition?
Options
A <code>begin</code>
B <code>check</code>
C <code>if</code>
Correct Answer
D <code>decide</code>
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 5, 'Binary Choices', mentions: 'In Python, we use the if keyword to begin this process.'

Hint

Refer to the slide titled 'Binary Choices' and the first line of the code examples for syntax.

Question Info