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.
Question & Answer
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.
1 Answer
Verified archiveAnswer C, Since hot OR humid evaluates to true, the body of the IF statement is executed. Since hot is true, true is displayed.