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

USE A NUMBER LINE TO FIND 8/9 / 8/45.
If ab = 10 and a2 + b2 = 30, what is the value of (a + b)^2?
A circular pool is ten feet in diameter and five feet deep. What is its volume, in cubic feet?
Why were people from Africa brought to Georgia?
China, Korea, and Japan share cultural similarities in part due to their (1) clashes with Russian imperialists (2) shared river systems (3) contacts through tra
If it takes Mark twice as long to earn $6.00 as it takes Carl to earn $4.00, what is the ratio of Mark’s pay per hour to Carl’s pay per hour?
A flight instructor charges $50 per lesson, plus an additional fee for the use of his plane. The charge for the use of the plane varies directly with the square
What is 0.05 percent of 6.5?
A circular pool is ten feet in diameter and five feet deep. What is its volume, in cubic feet?
The significance of the Open Door Policy for the United States lay in its (A) providing a use for the Philippines as a way station between China and the United