joavan784 joavan784
  • 01-12-2020
  • Computers and Technology
contestada


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?

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 05-12-2020

Answer:

Boolean

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.

Answer Link

Otras preguntas

Melanie swam 918 meters in 3 days if she swam the distance each day how many far did melanie swim in one day
The streams and smaller rivers that feed into a main river are its (blank)?
What is the least common multiple of 12, 20, and 18?
In Western Europe, what city would you find at 53 degrees north and 0 degrees west
Which phrase best describes this type of sentence? Sandy creates her best pieces of art late in the day. prepositional phrase modifying an adverb adverb modifyi
Why dose yellow river have that nick name?
What is the least common multiple of 12, 20, and 18?
I need a equation for a problem in using a pulling force a mass a coefficient of static friction a coefficient of kinetic friction and solving for the frictiona
What were the outcomes of European Exploration?
a baseball team has won 15 games and lost 12 games. Based on the results, which is the best prediction for the number of wins the team will have if they play162