1.
How do you initialize an array in C?
2.
Which of these best describes an array?
3.
How do you instantiate an array in Java?
4.
Which of the following is a correct way to declare a multidimensional array in Java?
5.
What is the output of the following piece of code?
public class array { public static void main(String args[]) { int []arr = {1,2,3,4,5}; System.out.println(arr[2]); System.out.println(arr[4]); } }
6.
What is the output of the following piece of code?
public class array { public static void main(String args[]) { int []arr = {1,2,3,4,5}; System.out.println(arr[5]); } }
7.
Which of the following concepts make extensive use of arrays?
8.
When does the ArrayIndexOutOfBoundsException occur?
9.
What are the advantages of arrays?
10.
What are the disadvantages of arrays?