AP CS ArrayLists

AP CS ArrayLists

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How do I find the number of items in an array named colors?

Back

colors.length

2.

FLASHCARD QUESTION

Front

How do I find the number of items in an ArrayList named schools?

Back

schools.size()

3.

FLASHCARD QUESTION

Front

What will the following code print? Options: "Richland", "Bombers", There will be a compiler error, None of the above

Back

"Richland"

4.

FLASHCARD QUESTION

Front

What will the following code print out?

Back

12

5.

FLASHCARD QUESTION

Front

What will print out with the following code? Options: cuddler, a, dog, my

Back

a

6.

FLASHCARD QUESTION

Front

What can I write in the /* Missing Code */ so that the following statement works as intended?
ArrayList<String> newList = /* Missing Code */

Back

II and III

7.

FLASHCARD QUESTION

Front

Which of the following would be the value of nums after the code has been executed? Options: [20, 40, 90, 50], [10, 20, 30, 40, 50], [20, 30, 90, 50], [20, 40, 50, 90]

Back

[20, 30, 90, 50]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?