Question
16 - Assume that aList is a valid ArrayList containing the following: 3, 5, 9, 7, 4, 2, 41 Which of the following places -100
16 - Assume that aList is a valid ArrayList containing the following:
3, 5, 9, 7, 4, 2, 41
Which of the following places -100 immediately before 2 in aList?
Question 16 options:
|
| ||
|
| ||
|
| ||
|
| ||
|
|
17 - Assume that aList is a valid ArrayList containing the following:
5.3, 15.1, 8.2, 6.3, 24.1, 2.0, 4.1
Which of the following places -100 immediately after 6.3 in aList?
Question 17 options:
|
| ||
|
| ||
|
| ||
|
| ||
|
|
18 - Assume that aList is a valid ArrayList containing the following:
Wei, Marila, Anna, Neal, Rachel, Jack, Aneesh
Which of the following removes Anna from aList? (3 points)
I. aList.remove(2, "Anna"); II. aList.remove("Anna"); III. aList.remove("Anna", 2);
Question 18 options:
|
| ||
|
| ||
|
| ||
|
| ||
|
|
19 - Assume that aList is a valid ArrayList containing the following:
Wei, Marila, Anna, Neal, Rachel, Jack, Aneesh
When the following statement executes, what does aList contain?
aList.set(1, "Beth");
Question 19 options:
|
| ||
|
| ||
|
| ||
|
| ||
|
|
20 - Which of the following would be best handled with an array?
Question 20 options:
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started