Assume that the Boolean variable hot is assigned the value true and the Boolean variable humid is assigned the value false. Which of the following will display the value true ?
Select two answers.
Assume that the Boolean variable hot is assigned the value true and the Boolean variable humid is assigned the value false. Which of the following will display the value true ? Select two answers.
Share
Answer C, Since hot OR humid evaluates to true, the body of the IF statement is executed. Since hot is true, true is displayed.