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 content of rooster array after executing the following code segment?
7.3
Oops!
Check
Okay!
Check
10
×
What is the problem in the following code segment? double[] score = new int[99];
Type mismatch
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
×
baam
Lose 10 points!
Oops!
×
gold
Win 50 points!
Okay!
×
rocket
Go to first place!
Okay!
×
baam
Lose 20 points!
Oops!
10
×
What is the output of the given code segment?
2345
Oops!
Check
Okay!
Check
10
×
What is the valid range of index values for an array of size 20?
0 to 19
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
10
×
What will be the output of the following code segment?
0
Oops!
Check
Okay!
Check
×
seesaw
Swap points!
Oops!
×
magnet
Take 25 points!
Okay!
×
gift
Win 20 points!
Okay!
×
banana
Go to last place!
Oops!
10
×
What output is generated by the following code segment?
4
Oops!
Check
Okay!
Check
×
eraser
Reset score!
Oops!
×
rocket
Go to first place!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
banana
Go to last place!
Oops!
10
×
Which one of the following statements is correct for the given code segment?
b) Line 2 causes a bounds error because 3 is an invalid index number.
Oops!
Check
Okay!
Check
10
×
What is the index of the last element of the array values? int[ ] values = new int[10]
9
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 is the value that represents the length of the extra array that is declared in the following code segment?
22
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies