2. Boolean

Boolean data holds one of two values, for example:

  • yes/no
  • true/false
  • 0 / 1

A boolean data type is used to answer questions where there are exactly two options, three options would mean it was no longer boolean data.

Here are some examples of questions where the responses would be stored as boolean data:


  • Has the heating been turned on?

Yes / No

  • Are you employed?

Yes / No


challenge see if you can find out one extra fact on this topic that we haven't already told you

Click on this link: Boolean Data