Question: 3) An expression tested by an if statement must evaluate to a. 0 or 1 b. +1 or -1 c. true or false d. torf
3) An expression tested by an if statement must evaluate to a. 0 or 1 b. +1 or -1 c. true or false d. torf 4) What does the following code fragment write to the monitor? int sum 21; if (! (sum != 20)) System.out.print("You win"); else System.out.print("You lose "); System.out.println("the prize."); a. You win b. You lose c. You win the prize. d. You lose the prize. 5) When two strings are compared using the String class's compare To method, the comparison is not case sensitive. True b. False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
