Search Header Logo

AP CS ArrayLists

Authored by Christina Perry

Computers

12th Grade

Used 24+ times

AP CS ArrayLists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

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

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

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

3.

DROPDOWN QUESTION

1 min • 1 pt

How do I create an ArrayList of integers?

ArrayList​​​ <Interger> num = ​ (a)   ArrayList<Integer>();

new
Integer
int
String

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print?

"Richland"

"Bombers"

There will be a compiler error

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print out?

12

0

14

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will print out with the following code?

cuddler

a

dog

my

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What can I write in the /* Missing Code */ so that the following statement works as intended?

ArrayList<String> newList = /* Missing Code */

I only

III Only

I and III

II and III

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?