What is the output?
CS 3 Midterm 2023

Quiz
•
Computers
•
12th Grade
•
Medium
Danielle Mills
Used 8+ times
FREE Resource
33 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
[two, five]
[two, four]
[two, three]
[four, five]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is a correct declaration and initialization of an ArrayList of String values?
ArrayList <String> name;
name = new ArrayList<String>();
String name; name = new String<ArrayList>();
ArrayList <String> name; name = ArrayList<String>();
ArrayList name; name = new ArrayList<String>();
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the nums ArrayList with the values [5, 4, 3, 2], what statement below removes the value 3 from the list?
nums.remove(1)
nums.get(2) = null
nums.remove(2)
nums.remove(3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the ArrayList nums with the values [3, 7, 6, 0], what code below is the proper way to change the 7 to be a 5?
nums.set(7, 5)
nums.set(7, 5)
nums[2] = 5
nums.set(1, 5)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What index value is used to locate the last element in the nums ArrayList?
nums.length
nums.size()-1
nums.size()
nums.length()-1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The ArrayList class ____ method returns the current ArrayList size.
length
size
capacity
rows
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
15
5
9
11
7
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
REMIDI PBO

Quiz
•
12th Grade
31 questions
N5 High Priority

Quiz
•
12th Grade - University
35 questions
PLTW CSE Unit 1.3 Review

Quiz
•
9th - 12th Grade
30 questions
SOAL JAVASCRIPT

Quiz
•
12th Grade
35 questions
Hash Tables & Other Data Structures

Quiz
•
10th - 12th Grade
30 questions
SUMATIF BAB 1 XII RPL

Quiz
•
12th Grade
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
29 questions
JavaScript

Quiz
•
9th - 12th Grade
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