
CS 3 Midterm 2023
Authored by Danielle Mills
Computers
12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
33 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec âą 1 pt
What is the output?
[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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
32 questions
C++ Chapter 5 Review - Loops
Quiz
âą
10th Grade - University
29 questions
ICT IGCSE Part 2
Quiz
âą
10th - 12th Grade
30 questions
Apple Swift Coding I - Lesson 1 - 6
Quiz
âą
9th - 12th Grade
30 questions
Penormalan Sains Komputer Tingkatan 4
Quiz
âą
10th - 12th Grade
35 questions
98-367 PT3
Quiz
âą
9th - 12th Grade
37 questions
Excel Gmetrix Quiz
Quiz
âą
10th - 12th Grade
29 questions
DzieĆ bezpiecznego Internetu
Quiz
âą
12th Grade
36 questions
Chapter 3 File Management
Quiz
âą
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
âą
3rd Grade
10 questions
Probability Practice
Quiz
âą
4th Grade
15 questions
Probability on Number LIne
Quiz
âą
4th Grade
20 questions
Equivalent Fractions
Quiz
âą
3rd Grade
25 questions
Multiplication Facts
Quiz
âą
5th Grade
22 questions
fractions
Quiz
âą
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
âą
7th Grade
10 questions
Greek Bases tele and phon
Quiz
âą
6th - 8th Grade