
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
50 questions
Quiz Microsoft PowerPoint

Quiz
•
6th Grade - University
50 questions
SKILL QUIZ

Quiz
•
University
40 questions
QUIZ APSIA PRA UTS

Quiz
•
University
40 questions
Unit 12, 13_ Haifaa_2020

Quiz
•
University
45 questions
Level 1- 3 Test

Quiz
•
3rd Grade - University
50 questions
iMPLEMENTASI BASIS DATA

Quiz
•
University
40 questions
Git & GitHub Quiz

Quiz
•
University
49 questions
tin học tn căn bản

Quiz
•
University
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
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University