230k views
0 votes
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?

User Friherd
by
8.8k points

1 Answer

0 votes

Answer:

Boolean

Step-by-step explanation:

Though the options are missing, the question is still answerable.

From the question, we understand that isOpen can only assume any of two values which are: open or close

i.e. whether a store is opened or currently.

When a variable can only assume any of two values, the most suitable data type of that variable is Boolean.

Hence, Boolean answers the question.

User Ravindra Gupta
by
8.8k points

No related questions found