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

I tried to solve this but I keep getting it wrong - Can someone help!
Calculate the efficiency for each machine, then answer the question. Machine A has an input work of 1,000 J and an output work of 250 J. Machine B has an input
What characteristics disqualifies the organism as being an animal?
If you deposit money today in an account that pays 6.5% annual interest, how long will it take to double your money?
The velocity of a car changes from 15 m/s south to 5 m/s south in 2 seconds what is the acceleration of the car
Washing a wound and covering it with a bandage and a glove is an example of
1. Organisms that can interbreed and bear fertile offspring are considered to be in the same?
What is the volume of a sample that has a mass of 20g and a density of 4g/ml?
Please help me! The question is in the attachment
Explain how predation, disease, and competition impact a population based upon scale and distribution of the organisms. someone please help asap