
CPT 236 Test 3 Review
Authored by Reza Naqvi
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What modifier should you use on a class so that a class in the same package can access it but a class (including a subclass) in a different package cannot access it?
public
private
protected
Use the default modifier
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Polymorphism means ______________.
that data fields should be declared private
that a class can extend another class
that a variable of supertype can refer to a subtype object
that a class can contain another class
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Inheritance means ______________.
that data fields should be declared private
that a class can extend another class
that a variable of supertype can refer to a subtype object
that a class can contain another class
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Encapsulation means ______________.
that data fields should be declared private
that a class can extend another class
that a variable of supertype can refer to a subtype object
that a class can contain another class
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You can create an ArrayList using _________.
new ArrayList[]
new ArrayList[100]
new ArrayList<>()
ArrayList()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What modifier should you use on the members of a class so that they are not accessible to another class in a different package, but are accessible to any subclasses in any package?
public
private
protected
Use the default modifier.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose an ArrayList list contains {"red", "green", "red", "green"}. What is the list after the following code?
list.remove("red");
{"red", "green", "red", "green"}
{"green", "red", "green"}
{"green", "green"}
{"red", "green", "green"}
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
50 questions
HTML CSS Quiz
Quiz
•
University
40 questions
Copyright & Intellectual Property
Quiz
•
University
40 questions
TTS Digital Content Creation
Quiz
•
University
50 questions
2ºDAW - Diseño de Interfaces Web - Trim.2 - Prof. C. Boni
Quiz
•
University - Professi...
44 questions
Movies
Quiz
•
2nd Grade - Professio...
50 questions
Algoritmika 1.
Quiz
•
10th Grade - University
40 questions
CompTIA Security+ SY0-601 Chapters 9 - 12
Quiz
•
University
50 questions
CN Quiz-1
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University