QUESTIONS FROM HOMEWORK
COMPLETE STUDY GUIDE PRACTICE
QUESTIONS and ANSWER KEY 2026
Which of these data types requires the most amount of memory? -
CORRECT ANSWER-long
What is the result of ? - CORRECT ANSWER-11
Which of the following expressions results in value 1? -
CORRECT ANSWER-37 % 6
25 % 1 is _____ - CORRECT ANSWER-0
How do you write 2.5 ^ 3.1 in Java? - CORRECT ANSWER-
Math.pow(2.5, 3.1)
Math.pow(2, 3) returns __________. - CORRECT ANSWER-
8.0 (8 would be WRONG, must be 8.0)
, Math.pow(4, ) returns __________. - CORRECT
ANSWER-1.0 (1 is WRONG, 1.0 is CORRECT)
Analyze the following code.
public class Test { public static void main(String[] args) { int
month = 09; System.out.println("month is " + month); } } -
CORRECT ANSWER-The program has a syntax error, because
09 is an incorrect literal value.
Which of the following is incorrect? - CORRECT ANSWER-
_4544
Which of the following are the same as 1545.534? Please select all
that apply.
1545534.0e-3
0.1545534e+4
1.545534e+3
154553.4e-2 - CORRECT ANSWER-1545534.0e-3
0.1545534e+4
1.545534e+3
154553.4e-2
The expression 4 + 20 / (3 - 1) * 2 evaluates to - CORRECT
ANSWER-24