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
×
What is the valid range of index values for an array of size 20?
0 to 19
Oops!
Check
Okay!
Check
10
×
What is the output of the following code segment?
3040
Oops!
Check
Okay!
Check
×
thief
Give points!
5
10
15
20
25
×
seesaw
Swap points!
Okay!
×
shark
Other team loses 20 points!
Okay!
×
lifesaver
Give 5 points!
Oops!
×
monster
Reset all scores!
Oops!
×
magnet
Take 15 points!
Okay!
×
rocket
Go to first place!
Okay!
×
thief
Give points!
5
10
15
20
25
10
×
What is the problem in the following code segment? double[] score = new int[99];
Type mismatch
Oops!
Check
Okay!
Check
10
×
What is the final value of the variable counter after executing the following code segment?
6
Oops!
Check
Okay!
Check
10
×
What is the final output of the following code segment?
ArrayIndexOutOfBoundsException
Oops!
Check
Okay!
Check
10
×
What output is generated by the following code segment?
4
Oops!
Check
Okay!
Check
×
boom
Lose 50 points!
Oops!
×
rocket
Go to first place!
Okay!
×
rocket
Go to first place!
Okay!
×
thief
Give points!
5
10
15
20
25
10
×
What will be the output of the following code segment?
0
Oops!
Check
Okay!
Check
×
boom
Lose 50 points!
Oops!
×
gold
Win 50 points!
Okay!
×
gift
Win 15 points!
Okay!
×
baam
Lose 25 points!
Oops!
10
×
What is the output of the given code segment?
2345
Oops!
Check
Okay!
Check
10
×
What is the content of rooster array after executing the following code segment?
7.3
Oops!
Check
Okay!
Check
10
×
Mention one disadvantage of using an enhanced for loop.
Cannot assign a value to an element of an array.
Oops!
Check
Okay!
Check
10
×
What is the value that represents the length of the extra array that is declared in the following code segment?
22
Oops!
Check
Okay!
Check
10
×
Write a Java statement to print the first element of the array values. int[ ] values = new int[10]
System.out.print(values[0]);
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies