Select the correct answerWhich of these values can a boolean variable contain?Options0 & 1true & falseAny integer valuetrue
Question
Select the correct answerWhich of these values can a boolean variable contain?Options0 & 1true & falseAny integer valuetrue
Solution
The correct answer is "true & false". A boolean variable can only contain the values true or false.
Similar Questions
t answerWhich of these values can a boolean variable contain?
Which of these values can a boolean variable contain?Options0 & 1true & falseAny integer valuetrue
Select the correct answerWhich of the following operators can operate on a boolean variable? 1. && 2. == 3. ?: 4. +=Options1, 2 & 41 & 43 & 21, 2 & 3
Select the correct answerWhich one is a valid declaration of a boolean?Optionsboolean b2 = ‘false’;boolean b1 = 1;boolean b3 = false;boolean b4 = ‘true’
Select the correct answerWhich of these statements is correct?Optionstrue is any non zero value and false is 0 true and false are numeric values 0 and 1true and false are numeric values 1 and 0true and false are non numeric values
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.