Question Detail

COS 102 If staments Objective Question

Question

If you want to check if an account balance is enough to withdraw ₦5,000, which relational operator would be most appropriate?
Options
A ==
B <
C >=
Correct Answer
D !=
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 18, Practice Question 3, asks to 'check if an account balance is enough to withdraw ₦5,000'. This implies the balance must be ₦5,000 or greater, which corresponds to the 'Greater than or Equal' operator, >=, as shown on Page 10.

Hint

The condition 'enough to withdraw' implies the balance should be at least, or equal to and above, the withdrawal amount.

Question Info