Question Detail

COS 102 If staments Objective Question

Question

What is a 'Boolean result' in the context of decision making in programming?
Options
A A numerical value representing the outcome of a calculation.
B A string of text used to display messages.
C A value that can only be <code>True</code> or <code>False</code>.
Correct Answer
D A complex data structure used for storing multiple items.
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 5, 'Binary Choices', states: 'Decision making is the ability of a computer to choose an action based on a Boolean result.' The heading of the slide also highlights 'True or False' as 'Binary Choices'.

Hint

Binary choices imply two possible outcomes.

Question Info