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

Jamie has8/10 of a candy bar left over. He wants to split it into 1/3 pieces. How many 1/3 pieces can he make?
What was the initial purpose of the constitutional convention?
Which sentence correctly uses the firstdefinition for the following word:infer1. to hint, imply, suggest2. to draw a conclusion through reasoning A. The mean gi
In what year was the first official world series championship played
Rewrite the rational exponent as a radical by extending the properties of integer exponents. 2 to the 3 over 4 power, all over 2 to the 1 over 2 power the eigh
trace of grain in the melted snow and ice
Diana has available 120 yards of fencing and wishes to enclose a rectangular area. ​(a) Express the area A of the rectangle as a function of the width W of the
What is the magnitude fnet of the net force on the car?
Mount Fuji is most closely related to which religion from Japan?
Add. 6 1/3 + 4 ¾ + 3 7/12 =