
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
Technical Quiz 2022-23
Quiz
•
University
50 questions
Application Software Quiz
Quiz
•
12th Grade - University
40 questions
Database Systems Quiz
Quiz
•
University
50 questions
XIRPL2_PASQUIZZ
Quiz
•
1st Grade - Professio...
50 questions
Grade 10 Computer Systems Quiz
Quiz
•
10th Grade - University
40 questions
Fun-a-thon Quiz
Quiz
•
University
40 questions
MOS 2023
Quiz
•
University
44 questions
Round 1 Code2duo
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - 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
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University