carcvalhob5943 carcvalhob5943
  • 22-08-2019
  • Computers and Technology
contestada

If variable answer stores a Boolean value, then what are the possible values for the variable?

0 or 1

"true" or "false"

true or false

any value

Respuesta :

ExieFansler ExieFansler
  • 30-08-2019

Answer:

true or false and 0 or 1.

Explanation:

The boolean variable can have only two values that can be true or false.

Since we have variable answer of type boolean it can store true or false.In boolean algebra 0 is considered as false and 1 is considered as true.So we can also store 0 or 1 in boolean.If we store any other value in boolean algebra it will be regarded as 1 because only 0 is considered as false everything else is true.

Answer Link

Otras preguntas

What is the mass of the green cone?  A. 542.0 g B. 540.2 g C. 500 g D. 480 g
Find the missing number 25,3,x,14 when the mean is 16
Which of the following allowed criminals to be used as slaves? A. The government of Canada B. The Thirteenth Amendment C. The Emancipation Proclamation D. Gener
which element has more valence electrons; Rb or Ca?
PLEASE HELP ME Jamie used a microscope to measure the diameter of a hair. She found that the diameter of the hair was 0.000072 meter. How is this number written
Write a simplified polynomial expression in standard form to represent the area of the rectangle below. X-4 5x + 25x^2+18-25x^2+13x+85x^2+13x+25x^2-18x-8
Name element atomic mass 26 mass number 58 with charge of 2+
Find me midpoint of -9 and 6
Members of the Progressive Movement generally supported the idea that the federal government should A Prevent unfair business practices B. Restrict immigration
-2 3/4 ÷ -1/7= help​