
Term-long Review

Quiz
•
Computers
•
University
•
Medium
Farah Habib
Used 8+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an advantage of proper encapsulation?
Encapsulation helps to enforce constraints
Encapsulated code uses less memory when executed
Encapsulation provides a more abstract view of classes
All of the above are advantages encapsulation provides
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
_____ helps deal with complexity by hiding unnecessary details.
Abstraction
Access modifiers
Encapsulation
Privacy screens
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
private, public, and protected are examples of __________
Attribute modifiers
Method modifiers
Access modifiers
Static modifiers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these variable assignments is valid?
int x = 5.7;
double x = "5";
char x = "A";
String x = "5";
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If A is a subclass of B, then which of the following is true:
Objects of type B can be stored in variables of type A
Objects of type A can be stored in variables of type B
Both of the above are true
None of the above is true
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To treat an object of type A as an object of type B, this must be true:
A implements the interface B
B is a descendant class of A
Both of the above can be true
None of the above are true
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
'Upcasting' a variable is a safe operation that does not require an explicit typecast statement.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
OOPS quiz-1

Quiz
•
University
33 questions
Node JS

Quiz
•
University
30 questions
TES RPL ASLAB INFORMATIKA

Quiz
•
University
30 questions
UJIAN MID SMSTR 1 XI RPL PEMROGRAMAN WEB DAN PERANGKAT BERGERAK

Quiz
•
University
33 questions
Post assessment quiz_Backend + Mongo.db_Gokak

Quiz
•
University
28 questions
PRE/POST TEST - CSS

Quiz
•
University
35 questions
Object-Oriented Programming_LQ#1_AVW1

Quiz
•
University
30 questions
Midterm Quiz | CSC 324 SPL

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University