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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!