1st Period Feb 22, 2024 - Virtual AP CompSci AP

1st Period Feb 22, 2024 - Virtual AP CompSci AP

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

looping and branching statements in C

looping and branching statements in C

9th Grade

20 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Spreadsheet - Advanced Functions and Formulae

Spreadsheet - Advanced Functions and Formulae

10th - 11th Grade

20 Qs

Java 2 Quiz 9

Java 2 Quiz 9

10th - 12th Grade

20 Qs

Arrays and ArrayLists in Java

Arrays and ArrayLists in Java

9th - 12th Grade

25 Qs

одномерные массивы

одномерные массивы

10th Grade

22 Qs

Bài 11: KIỂU MẢNG MỘT CHỀU

Bài 11: KIỂU MẢNG MỘT CHỀU

1st - 10th Grade

20 Qs

Unit 6 ArrayLists and String Methods

Unit 6 ArrayLists and String Methods

9th - 12th Grade

20 Qs

1st Period Feb 22, 2024 - Virtual AP CompSci AP

1st Period Feb 22, 2024 - Virtual AP CompSci AP

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Scotty Johnson

Used 5+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

out.print(Stuff);

0

[0]

[]

null

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

out.print(Stuff.size());

0

[0]

[]

null

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

Assume Stuff = [3, 6, 12, 5];

out.print(Stuff.get(2));

3

6

12

5

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

Assume Stuff = [3, 6, 12, 5];

out.print(Stuff.size());

3

[3]

4

[4]

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

Stuff.add(7);

Stuff.add(2);

Stuff.add(5);

out.print(Stuff);

[2, 5 ,7]

[5, 2 ,7]

[7, 5, 2]

[7, 2, 5]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

Assume Stuff = [3, 6, 12, 5];

Collections.sort(Stuff);

out.print(Stuff);

[3, 6, 12, 5]

[12, 6, 5, 3]

[3]

[3, 5, 6, 12]

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ArrayList<Integer>Stuff = new ArrayList<Integer>();

Assume Stuff = [3, 6, 12, 5];

Stuff.remove(0);

out.print(Stuff);

[6, 12, 5]

[3]

[6]

[3, 6, 12]

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?