Ask Question
16 June, 20:25

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

+3
Answers (1)
  1. 16 June, 22:22
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers