AP CS ArrayLists

AP CS ArrayLists

12th Grade

17 Qs

quiz-placeholder

Similar activities

Java Program Quiz

Java Program Quiz

Arrays and ArrayLists Review

Arrays and ArrayLists Review

java arrays

java arrays

CodeHS JavaScript Control Functions

CodeHS JavaScript Control Functions

Java-Chapter 18 Exam

Java-Chapter 18 Exam

AP CS ArrayLists

AP CS ArrayLists

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Christina Perry

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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?