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

How would you define psychological realism?
What was the South’s greatest concern when California applied for statehood?
An object with mass 60 kg moved in outer space. When it was at location < 13, -19, -3 > its speed was 3.5 m/s. A single constant force < 220, 320, -120
An ice cube is dropped into boiling water. How will heat flow between the water and the ice cube?
What was the South’s greatest concern when California applied for statehood?
The Commissariat established by Frederick William in Prussia became A. the overseer of the army. B. an agency of civil government. C. both a military and civil
wats the 60% off a prize that is $20.00
List all integers between -0.6 and 4.17 THANK U
When MgCO3(s) is strongly heated, it produces solid MgO as gaseous CO2 is driven off.Does the oxidation number of carbon change upon the formation of CO2?
2-3 facts about Warsaw Pact