Professional Documents
Culture Documents
1 / 1 pts
Question 1
sequence structure
test expression
1 / 1 pts
Question 2
If str1 and str2 are both String objects, which of the following
expressions will correctly determine whether or not they are equal?
str1 = str2
str1.equals(str2)
str1 += str2
1 / 1 pts
Question 3
What will be the value of x after the following statements are executed?
30
20
25
1 / 1 pts
Question 4
What will be the value of ans after the following statements are
executed?
30
80
50
1 / 1 pts
Question 5
What will be the value of pay after the following statements are
executed?
400.00
450.00
465.00
475.00
1 / 1 pts
Question 6
x <= y
x => y
x >= y
x =< y
1 / 1 pts
Question 7
1 / 1 pts
Question 8
1 / 1 pts
Question 9
Short-circuit evaluation
Reverse logic
Boolean logic
Relational evaluation
1 / 1 pts
Question 10
What will be printed when the following code is executed?
double x = 45678.259;
System.out.printf("%,.2f", x);
45678.259
0,045,678.26
45,678.26
45,678.3