MCQ Quiz with Score

Multiple Choice Quiz

1:What is an ArrayList in Java?




2: Which package is ArrayList class a part of in Java?




3:Which method is used to retrieve an element from a specific index in an ArrayList?




4:Which of the following methods is used to remove an element from an ArrayList?




5: Which of the following methods is used to get the size of an ArrayList?




6: Which of the following methods is used to sort an ArrayList?




7:What happens if you try to access an index that is out of bounds in an ArrayList?




8:Which of the following statements is true about ArrayLists?




9:Which of the following is true about ArrayList's capacity?




10: What is the purpose of the remove() method in ArrayList?z