Ask Question
24 December, 18:51

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. 24 December, 20:57
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers