Programming Java Chaprer 4(2)
True
Unicode is an international encoding system that is extensive enough to represent ALL the characters of ALL the world's alphabets. True or False
100
What is the value of ans after the following code has been executed? int x = 35; int y = 20, ans = 80; if (x < y); ans += y; -80 -100 -35 -55
No value, there is is a syntax error
What will be the value of ans after the following code has been executed? int x = 65; int y = 55; if (x >= y) int ans = x + y;
Multiple alternative decision structure
The switch statement is a: -Multiple alternative decision structure -Nested decision structure -Sequence structure -Test expression
ans = 60, x = 0, y = 50
What will be the values of ans, x, and y after the following statements are executed? int ans = 35, x = 50, y = 50; if (x >= y) { ans = x +10; x-=y; } else { ans = y +10; y +=x; }
(str1.compareTo(str2) < 0)
If str1 and str2 are both Strings, which of the following will correctly test to determine whether str1 is less than str2? -(str1 < str2) -(str1.equals(str2) < 0) -(str1.compareTo(str2) < 0)
True
In a switch statement, each of the case values must be unique. True or False
False
Programs never need more than one path of execution. True or False
##0.0%
Which of the following will format .1278 to display as 12.8%? -000.0% -#0.00% -###.##% -##0.0%