Ask 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 value

+5
Answers (1)
  1. 6 June, 17:12
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers