Data is stored differently depending on its type. Numbers are stored as integers or real numbers, text as string or characters. Lists of the same type of data can be stored in an array.
Part ofComputing ScienceSoftware design and development
Boolean data types are very straightforward. A Boolean data type is simply something that only has two possible values, true or false.
The computer will store true as a 1 and false as a 0.
Programmers sometimes use Boolean to represent on/off and yes/no.