i have a doubt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

i have a doubt

is Boolean called as true or false

3rd Apr 2017, 1:58 PM
Prashanth Kumar
Prashanth Kumar - avatar
2 Answers
+ 5
A boolean variable can have any one of the two values "true" and "false" only.
3rd Apr 2017, 2:03 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
you can treat any information that only has 2 state as Boolean. for example, up/down, in/out, etc.
21st May 2017, 5:19 PM
Joe Lin
Joe Lin - avatar