CompTIA ITF+ (FC0-U61) — Question 251

Which of the following data types would BEST be used for conditional operators?

Answer options

Correct answer: A

Explanation

The Boolean data type is ideal for conditional operators as it can only hold two values: true or false, which are essential for making decisions in programming. In contrast, Char, String, and Float can hold a variety of values that do not directly evaluate to true or false, making them less appropriate for this purpose.