APCSA Unit 7 On AP Classroom Study Quiz

APCSA Unit 7 On AP Classroom Study Quiz

10th Grade

21 Qs

quiz-placeholder

Similar activities

Array and ArrayLists in Java

Array and ArrayLists in Java

9th - 12th Grade

25 Qs

APCSA Unit 8

APCSA Unit 8

9th - 12th Grade

17 Qs

Python Unit 6 Sequences Quiz

Python Unit 6 Sequences Quiz

9th - 12th Grade

20 Qs

SAINS KOMPUTER F5 BAB 3

SAINS KOMPUTER F5 BAB 3

10th - 12th Grade

18 Qs

Computer Application Practice Quiz Class 10

Computer Application Practice Quiz Class 10

10th Grade

20 Qs

Pemograman Dasar

Pemograman Dasar

10th Grade

20 Qs

JavaScript Cert Prep 2 Quiz (made by you for you)

JavaScript Cert Prep 2 Quiz (made by you for you)

7th - 12th Grade

21 Qs

MICS Unit 10 and 11 Retest 2

MICS Unit 10 and 11 Retest 2

9th - 12th Grade

20 Qs

APCSA Unit 7 On AP Classroom Study Quiz

APCSA Unit 7 On AP Classroom Study Quiz

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Mayank Yerragondu

Used 5+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Is The Difference Between An Array And An ArrayList

Arrays are dynamic-size and can only store objects, while ArrayLists are fixed-size and can store primitive data types and objects.
Arrays can only store primitive data types, while ArrayLists can store both primitive data types and objects.
Arrays and ArrayLists are the same in terms of size and data types they can store.
Arrays are fixed-size, can store primitive data types and objects, while ArrayLists are dynamic-size and can only store objects.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Exactly Is An ArrayList

An ArrayList is a dynamic array in Java that allows for the coder to add as much data values needed

An ArrayList is a fixed-size array in Java that allows for the coder to add a fixed number of values at the intialization stage

An ArrayList is a linked list in Java.

An ArrayList is a primitive data type in Java.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How Do You Intialize An ArrayList

ArrayList listName = new ArrayList<>();
ArrayList listName = new ArrayList();

ArrayL listName = new ArrayL();

ArrayList listName = new ArrayList<>;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Does The Add() Method Do In ArrayLists

It removes an element from the list
It multiplies two elements in the list
It divides an element by another in the list

It adds a specified element to the end of the list or at a specific part in the ArrayList

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Does The Remove Method Do In ArrayLists

Removes the element at the specified index
Adds a new element to the ArrayList
Returns the size of the ArrayList
Updates the element at the specified index

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Does The Set Method Do In ArrayLists

Returns the index of the specified element
Adds a new element to the end of the ArrayList
Replaces the element at the specified index with the specified element.
Removes the element at the specified index

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How Do You Return An ArrayList In A Method

public ArrayList returnArrayList() { return new ArrayList(); }
ArrayList list = new ArrayList<>(); return list;
public ArrayList returnArrayList() { ArrayList list = new ArrayList<>(); list.add("element1"); list.add("element2"); return list; }
public void returnArrayList() {

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?