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
5
×
double num=Math.random(0); is a valid statement.
false
Oops!
Check
Okay!
Check
15
×
a=30, b=50; a = a + b; b = a â b; a = a â b; Print values of a & b
50,30
Oops!
Check
Okay!
Check
×
thief
Give points!
5
10
15
20
25
×
fairy
Take points!
5
10
15
20
25
×
gift
Win 5 points!
Okay!
×
thief
Give points!
5
10
15
20
25
5
×
The _______statement is used to avoid fall through
break
Oops!
Check
Okay!
Check
×
heart
Other team wins 15 points!
Oops!
×
rocket
Go to first place!
Okay!
×
shark
Other team loses 10 points!
Okay!
×
banana
Go to last place!
Oops!
×
monster
Reset all scores!
Oops!
×
shark
Other team loses 20 points!
Okay!
×
rocket
Go to first place!
Okay!
×
banana
Go to last place!
Oops!
10
×
Give Output: while(true) System.out.println('*');
* endlessly in different lines
Oops!
Check
Okay!
Check
10
×
Give one point of difference between unary and binary operators.
Unary operator works on a single operand and Binary operator works on 2 operands
Oops!
Check
Okay!
Check
5
×
The __________ function of the Scanner class is used to accept a character from the user
next().charAt(0)
Oops!
Check
Okay!
Check
20
×
int a = 63, b = 36; boolean x = (a < b ) ? true : false; int y= (a > b ) ? a : b; Print x & y
false & 63
Oops!
Check
Okay!
Check
×
baam
Lose 20 points!
Oops!
×
rocket
Go to first place!
Okay!
×
shark
Other team loses 20 points!
Okay!
×
baam
Lose 20 points!
Oops!
10
×
p=5 and q=19: int n = (q-p)>(p-q)?(q-p):(p-q);
14
Oops!
Check
Okay!
Check
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
5
×
The while loop is an exit controlled loop
false
Oops!
Check
Okay!
Check
10
×
Name the the types of conversion from one datatype to another
implicit & explicit
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
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies