CS 3 Midterm 2023
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

32 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which statement is a correct declaration and initialization of an ArrayList of String values? Options: 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>();
Back
ArrayList <String> name; name = new ArrayList<String>();
2.
FLASHCARD QUESTION
Front
Given the nums ArrayList with the values [5, 4, 3, 2], what statement below removes the value 3 from the list? Options: nums.remove(1), nums.get(2) = null, nums.remove(2), nums.remove(3)
Back
nums.remove(2)
3.
FLASHCARD QUESTION
Front
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? Options: nums.set(7, 5), nums.set(7, 5), nums[2] = 5, nums.set(1, 5)
Back
nums.set(1, 5)
4.
FLASHCARD QUESTION
Front
What index value is used to locate the last element in the nums ArrayList? Options: nums.length, nums.size()-1, nums.size(), nums.length()-1
Back
nums.size()-1
5.
FLASHCARD QUESTION
Front
The ArrayList class ____ method returns the current ArrayList size.
Back
size
6.
FLASHCARD QUESTION
Front
What is the output? Options: 15, 5, 9, 11, 7
Back
5
7.
FLASHCARD QUESTION
Front
What is the output?
Back
10
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
25 questions
CPU Architecture - DG
Flashcard
•
10th Grade
19 questions
PRACTICAL RESEARCH 2_Q2_Reviewer
Flashcard
•
12th Grade - University
25 questions
POLITIKA
Flashcard
•
12th Grade
24 questions
Prepositions of Manner Talavera
Flashcard
•
12th Grade
28 questions
Java Programming Basics
Flashcard
•
University
24 questions
Scope 3 The Solar System
Flashcard
•
KG - University
25 questions
Ch. 3 Inventory Management 20252 Flashcard
Flashcard
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade