Multiple Choice
Your program needs to store a sequence of integers of unknown length. Which of the following is most suitable to use?
A) An array declared as int[] marks;
B) A array list declared as ArrayList<Integer> marks = new ArrayList<Integer>() ;
C) An array declared as int marks[10000];
D) An array declared as int marks[10];
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Which one of the following statements is
Q10: Which one of the following statements is
Q22: What is the output of the code
Q26: Complete the following code snippet with the
Q36: What is the output of the following
Q49: In a partially filled array, the number
Q50: What is the value of myArray[1][2] after
Q71: Consider the following 2-dimensional array. Select the
Q72: What is the output of the following
Q107: What is the output of the following