Professional Documents
Culture Documents
1. What is the range of the byte data type? Mark for Review
(1) Points
–27 to 27–1 (*)
–215 to 215–1
–231 to 231–1
–263 to 263–1
Correct
(1) Points
2
4
6
7
8 (*)
Correct
Value of age: 20
Value of age: 208
Value of age: 20810
Value of age: 20
Value of age: 8
Value of age: 9
https://myacademy.oracle.com/player/play?in_sessionid=28539411210A51AJ&classroom_id=74941475 1/2
4/25/2021 JFo Section 3 Quiz 1 - L1-L2
Value of age: 9
Correct
4. What is the output? public static void main(String args[]) { Mark for Review
int x = 100;
int y = x; (1) Points
y++;
System.out.println("Value of x is " + x);
System.out.println("Value of y is " + y);
}
Value of x is 0
Value of y is 1
Value of x is 100
Value of y is 1
Value of x is 100
Value of y is 1
Value of x is 100
Value of y is 101 (*)
Correct
5. Which two are recommended practices for naming final variables? Mark for Review
(1) Points
Capitalize every letter (*)
Correct
https://myacademy.oracle.com/player/play?in_sessionid=28539411210A51AJ&classroom_id=74941475 2/2