Home / Questions / Which values can be assigned to a boolean variable?
Explanatory Question

Which values can be assigned to a boolean variable?

👁 0 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Options:

  • Yes and No
  • True and False ✅
  • High and Low
  • Zero and One
  • 0 and 1

Answer:
A boolean variable can only have:

👉 true or false

✔ Correct option: True and False