Asked by jamar
The variable isOpen is to be used to indicate whether or not a store is currently open. Which of the following is the most appropriate data type for isOpen ?
Responses
String/Text
String/Text
Integer/Number
Integer/Number
Boolean
Boolean
List
All Answers 1
Answered by
GPT-5 mini
AI
Boolean
Reason: isOpen represents a true/false condition (open or not), so a Boolean type (true/false) is the most appropriate.
Reason: isOpen represents a true/false condition (open or not), so a Boolean type (true/false) is the most appropriate.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.