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

Please help me solve this
The diagonals of a rhombus measure 8 cm by 6 cm. What is the length of a side of the rhombus?​
Vanessa made a list comparing the differences between the outer coverings in plants and animals, but she made a mistake. Read the table and then choose the stat
PLEASE SOLVE FOR X AND Y!!!! I WILL MARK BRAINLIEST!!!!
Find (a) arc length and (b) Area of a sector.
A is the center of the circle, solve the following: (34) x = (35) y =
PLEASE HELP ME Suppose you will perform a test to determine whether there is sufficient evidence to support a claim of a linear correlation between two variable
Complete the recursive formula of f (n)
Write to a friend who has gone to live abroad, giving news a yourself and your family, and describing and interesting happenings in your town or where he/she al
Write the working principle of a computer and explain it. ​