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

Natalie picked 135 berries in 15 minutes. If she continues picking at that rate, how long will it take her to pick 486 berries?
Write equation in function form 2x+2y=8 and 6x-3y=12
How do you work this problem?
how do you solve m/9 divided by mn squared / 3
What conditions must be met in order for a reaction to be considered exothermic?
Why did female factory workers like Charlotte Woodward support the women’s rights movement?
Rectangular classroom seats 72 students. If the seats were rearragned with 3 more seats rows in each row, the classroom would have 2 fewer rows. Find the origin
Write an addition equation with a positive addend and a negative addend and a resulting sum of -8
What is square root of 126 + square root of 56 in standard form
Explain the connection, or relationship between a protagonist and an antagonist.