CS 3 Midterm 2023

Flashcard
•
Computers
•
12th Grade
•
Hard
Quizizz 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
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
CSP Unit 6 Review

Flashcard
•
12th Grade
23 questions
Comp 210 MT2 Review

Flashcard
•
University
21 questions
Python Basisc

Flashcard
•
University
25 questions
Strategi Algoritmik dan Pemrograman

Flashcard
•
11th Grade
20 questions
Python - List and Tuples

Flashcard
•
11th - 12th Grade
22 questions
Final Review Part 4

Flashcard
•
11th Grade
25 questions
C++ arrays

Flashcard
•
12th Grade
27 questions
Python PCEP Flashcard #1

Flashcard
•
KG - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University