75.3k views
1 vote
This data type is used to store two values: TRUE or FALSE

Boolean
String
Integer
Double

1 Answer

4 votes

Answer: Boolean

Step-by-step explanation:

The Boolean data type can only represent two values: true or false. Typically, a 1 is used to represent True, and a 0 is used to represent False. Consider the following example where a user inputs two values and the program determines whether the first one is smaller than the second one or not.

User Akash Singh
by
8.2k points

No related questions found