Question Detail

COS 102 If staments Objective Question

Question

Decision making in programming is fundamentally based on evaluating conditions that result in what type of outcome?
Options
A Numerical result
B String result
C Boolean result (True/False)
Correct Answer
D List result
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 5, 'Binary Choices' slide, explains: 'Decision making is the ability of a computer to choose an action based on a Boolean result.' A Boolean result is either True or False.

Hint

Consider the two possible 'Binary Choices' that drive decisions in programming.

Question Info