
CPT 236 Test 3 Review

Quiz
•
Computers
•
University
•
Medium
Reza Naqvi
Used 6+ times
FREE Resource
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"}
Create a free account and access millions of resources
Similar Resources on Wayground
48 questions
NET1L - Lesson 11 (IPv4 Addressing)

Quiz
•
University
40 questions
FINAL EXAMINATION MDW104/104L

Quiz
•
University
50 questions
Java GUI Programming Quiz

Quiz
•
University
40 questions
year 3 QUIZ 3 2nd term

Quiz
•
3rd Grade - University
50 questions
THIRD QUARTER ASSESSMENT IN CSS - GRADE 9

Quiz
•
9th Grade - University
40 questions
TTS Digital Content Creation

Quiz
•
University
40 questions
QUIZ RPL

Quiz
•
University
40 questions
Containerisation and Cloud

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University