Search Header Logo

ArrayList Quiz Review

Authored by David Guy

Mathematics

10th - 12th Grade

CCSS covered

Used 24+ times

ArrayList Quiz Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which index is the last element in an ArrayList called nums at?

nums.length

nums.length-1

nums.size()

nums.size()-1

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

nums[0]

nums[1]

nums.first()

nums.get(0)

nums.get(1)

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

nums[1] = 5;

nums[2] = 5;

nums.set(1, 5);

nums.set(5,1);

nums.set(2, 5);

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

nums.remove(3);

nums.remove(1);

nums.remove(0);

nums.remove(2);

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

nums.add(2, 0);

nums.add(2, 1);

nums.add(0, 2);

nums.add(1, 2);

nums.add(2, 2);

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will print when the following code executes?

[2,3]

[1,2,3]

[1,2]

[1,3]

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will print when the following code executes?

["Sarah", "Destini", "Layla", "Sharrie"]

["Sarah", "Destini", "Anaya", "Layla", "Sharrie"]

["Sarah", "Layla", "Sharrie"]

["Destini", "Layla", "Sharrie", "Sarah"]

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?