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

Solve this super quickly please. Just a graph is fine no explanation needed
A 15 V constant voltage battery is connected to 120 kΩ resistor. A 15 V constant voltage battery is connected to 120 kΩ resistor. 1) What is the current in the
hi, I would like help with this please and ty
The following is a table of probabilties calculated from a survey of BHCC students with the question asked "How many classes are you taking this semester?" X: #
hey ms or mr can you please help me out?
I need help with a homework
A radioactive tracer has a half-life of two hours how much of a 2500 g sample will be available after 18 hours?
Airline information for three years is given in the table.What was the probability that a scheduled flight in 2018 was canceled.
2) The shape of a playground is a parallelogram. The city is going to treat the asphalt with sealant this spring with cans that will cover 4 square yards each.
Define vector and state two examples.