Team 1
0
Team 2
0
Teams
Name
Score
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Loading
10
×
When are braces optional or necessary in conditional statements?
braces are optional for if/else in case there is only one statement to be executed.
Oops!
Check
Okay!
Check
10
×
State the difference between = and = =.
In Java, â=â is the assignment operator and â==â is a comparison operator
Oops!
Check
Okay!
Check
15
×
double a = - 6.35; double x = Math.abs(Math.ceil(a));
6.0
Oops!
Check
Okay!
Check
5
×
Name the primitive data type in Java that is: a single 16-bit Unicode character whose default value is â\u0000â
char
Oops!
Check
Okay!
Check
×
thief
Give points!
5
10
15
20
25
×
seesaw
Swap points!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
banana
Go to last place!
Oops!
×
lifesaver
Give 25 points!
Oops!
×
star
Double points!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
banana
Go to last place!
Oops!
10
×
Name the the types of conversion from one datatype to another
implicit & explicit
Oops!
Check
Okay!
Check
15
×
y+=++y + y-- + --y; when int y=8
33
Oops!
Check
Okay!
Check
15
×
Which Scanner methods allows us to input a number with a decimal point?
nextFloat(), nextDouble()
Oops!
Check
Okay!
Check
5
×
State one similarity between while and for loop.
entry controlled loops
Oops!
Check
Okay!
Check
×
trap
No points!
Oops!
×
fairy
Take points!
5
10
15
20
25
×
rocket
Go to first place!
Okay!
×
thief
Give points!
5
10
15
20
25
5
×
double num=Math.random(0); is a valid statement.
false
Oops!
Check
Okay!
Check
5
×
If a is of type int and b is of type float what would be the resultant data type of a+b?
float
Oops!
Check
Okay!
Check
×
banana
Go to last place!
Oops!
×
rocket
Go to first place!
Okay!
×
gift
Win 10 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
State the number of bytes occupied by char and int data types.
char =2 , int =4
Oops!
Check
Okay!
Check
10
×
p=5 and q=19: int n = (q-p)>(p-q)?(q-p):(p-q);
14
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies