Quiz3 1
Quiz3 1
int
Welcome
a (*)
Correct Correct
a=2
Correct Correct
3. Which two are valid assignments of a? Mark for Review
(1) Points
int a = 10
int a = �10�;
Correct Correct
String x = Java;
True (*)
False
Correct Correct
strVal (*)
Hello
String
int
intVal (*)
Correct Correct
int (*)
float
String
short
Correct Correct
+ (*)
� (*)
Correct Correct
x = x +1; (*)
x = +1;
x+;
x++; (*)
x += 1; (*)
Correct Correct
11. Which of the following data types is the largest? Mark for Review
(1) Points
byte
short
int
long (*)
Correct Correct
9 (*)
34
Correct Correct
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 Correct
14. Which two are recommended practices for naming final variables?
Mark for Review
(1) Points
15. What is the range of the byte data type? Mark for Review
(1) Points
�215 to 215�1
�231 to 231�1
�263 to 263�1
Correct Correct