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

What did William Penn think would attract new settlers to his colony in Pennsylvania?
jerry wonders "how many $10 bills are equal to a $1,000 bill?
describe the color change that occur in matter at it is heated
Which age group shows the greatest difference between males and females?
Both men and women generally experience a hormone decline in their middle adulthood. a. True b. False
Draw or write to explain why 1 hundred 4 tens and 14 tens name the same amount
To derive energy from food, you must eat foods that contain A. water. B. carbohydrates, proteins, and fats. C. vitamins and minerals. D. fiber.
Suppose you work for the government in 1944 and need to have a new recruitment poster made. Which agency would you approach? The War Department The Office of
According to the simulation, _______ helps predators to survive by allowing them tosneak up on their prey.
What is 8/9 as a decimal?