Which of these declarations will cause an error?
APCSA Unit 7

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Justin Loomis
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ArrayList<int> list = new ArrayList<>();
ArrayList<Integer> list = new ArrayList<>();
ArrayList<Object> list = new ArrayList<>();
ArrayList<Boolean> list = new ArrayList<>();
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the code segment executes?
2
13
15
20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This method is intended to remove all values in list which are equal to n. Which of these describes the functionality of the method.
The method does not function as intended because it skips elements while looping.
The method does not function as intended because it should use == instead of .equals
The method does not function as intended because elements cannot be removed from an ArrayList
The method functions as intended.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the contents of myList after the code segment executes?
["dairy","hay","pesticide"]
["dairy","hay","ranch"]
["poultry","pesticide","ranch"]
["ranch","poultry","pesticide"]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the code segment executes?
[1,4,7]
[6,4]
[4,9]
[4,7,9]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these best describes the list of values returned by this mystery method?
the absolute values of the values in the given array
the frequencies of the values in the given array
the cumulative sums of the values in the given array
the indices of the values int he given array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What algorithm is implemented by this mystery method?
binary search
linear search
insertion sort
selection sort
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Swift-Array Methods

Quiz
•
10th Grade
9 questions
C++ Quiz 5: Searching and Sorting Algorithms

Quiz
•
7th - 12th Grade
9 questions
#111 Selection Sort

Quiz
•
10th Grade
10 questions
Arrays and Lists

Quiz
•
6th - 12th Grade
10 questions
Sorting Algorithms

Quiz
•
9th - 12th Grade
10 questions
Introduction to PHP: Hypertext Preprocessor

Quiz
•
11th - 12th Grade
12 questions
Unit 7 - ArrayList - Test Review

Quiz
•
9th - 12th Grade
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University