Instructions
- 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
- 2. Thoroughly review each solution before proceeding to ensure full understanding.
- 3. Final results will be available after submission to provide insights into areas for further improvement.
- 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
- 5. Once submitted, responses are final, so ensure you’re confident in your answers.
- 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.
All Problems
Question
Action
1. Which of these methods is used to add an element at the end of a List?
2. Which List implementation is thread-safe by default?
3. Which Set implementation guarantees that elements are sorted in natural order?
4. Which method is used to check if an element exists in a Set?
5. What is the default order in which elements are stored in a HashSet?
6. What happens when you add an element to an ArrayList and it exceeds its current capacity?
7. Which of the following methods is used to remove an element from a specific index in an ArrayList?
8. Which of the following methods is not part of the Set interface?
9. Which of the following statements is true for a TreeSet?
10. What will happen if you try to access an element at an index that is out of bounds in an ArrayList?
1. Which of these methods is used to add an element at the end of a List?
2. Which List implementation is thread-safe by default?
3. Which Set implementation guarantees that elements are sorted in natural order?
4. Which method is used to check if an element exists in a Set?
5. What is the default order in which elements are stored in a HashSet?
6. What happens when you add an element to an ArrayList and it exceeds its current capacity?
<p> </p>
7. Which of the following methods is used to remove an element from a specific index in an ArrayList?
8. Which of the following methods is not part of the Set interface?
9. Which of the following statements is true for a TreeSet?
<p> </p>