Question Detail

COS 102 If staments Objective Question

Question

What is the result of the expression `18 >= 18` using the 'Greater than or Equal' operator?
Options
A False
B True
Correct Answer
C Error
D Undefined
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 10, 'Relational Operators' table, shows the example '18 >= 18' with a 'Result' of 'True'. The condition checks if 18 is greater than OR equal to 18, which is true because it is equal.

Hint

Remember that 'greater than or equal' means either condition (greater than, or equal to) needs to be met.

Question Info