101k views
3 votes
Which output returns the Boolean value FALSE?

A: 3
B: 2
C: 1
D: 0

2 Answers

5 votes
D) 0. Any non-zero value is usually considered TRUE, whilst 0 is FALSE. 
User Naseer
by
7.5k points
2 votes

The answer is D: 0

Boolean variables are variables that have two possible outcomes only: true (1), and false (0). Boolean values are not stored as the words true or false. They are stored as integers: true becomes the integer 1 and false becomes the integer 0. Boolean values evaluate to integers 0 (false) or true (1).

User Thierry Roy
by
6.8k points