Edit Game
Arrays
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public



 Save

Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






 Save   14  Close
What will be the output of the following code segment?
0
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.
What is the output of the given code segment?
2345
What is the valid range of index values for an array of size 20?
0 to 19
What is the output of the following code segment?
3040
What is the content of rooster array after executing the following code segment?
7.3
What output is generated by the following code segment?
4
Mention one disadvantage of using an enhanced for loop.
Cannot assign a value to an element of an array.
What is the final output of the following code segment?
ArrayIndexOutOfBoundsException
What is the problem in the following code segment? double[] score = new int[99];
Type mismatch
What is the value that represents the length of the extra array that is declared in the following code segment?
22
What is the final value of the variable counter after executing the following code segment?
6
Write a Java statement to print the first element of the array values. int[ ] values = new int[10]
System.out.print(values[0]);
What is the index of the last element of the array values? int[ ] values = new int[10]
9