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
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
Create a free account and access millions of resources
Similar Resources on Wayground
32 questions
1.4.2 Data Structures

Quiz
•
12th Grade
35 questions
CS Unit 10 Data Types Key words

Quiz
•
12th Grade
30 questions
bug hunt(jr)

Quiz
•
12th Grade - University
30 questions
Greenfoot Vocabulary

Quiz
•
9th - 12th Grade
28 questions
Networking I Chapter 8 Test Review

Quiz
•
9th - 12th Grade
29 questions
Parcial 1 Programación en Java

Quiz
•
12th Grade
35 questions
python

Quiz
•
11th Grade - University
30 questions
CooperKing NOCTI Quiz

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade