
49W Exam 2 PLTW
Authored by Tony Banning
Computers
9th - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many constructors does this Java class have?
4
8
2
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of Constructors?
int
void
flow
None of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Order of execution of constructors in Java Inheritance is -
Derived to base class
Base to derived class
Random order
Void
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a Multi-Level Inheritance in Java, the last subclass inherits methods and properties of ______.
All classes above it
Few classes above it
Only one immediate Superclass
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Class Cat extends Animal. Which is NOT a valid declaration?
Cat x = new Cat();
Cat x = new Animal();
Animal X = new Animal();
Animal x = new Cat();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Super keyword is used to access
only subclass methods
subclass variables and methods
parent class variables and methods
only parent class methods
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which among the following best describes encapsulation?
a way of combining various data members and member functions that operate on those data members into a single unit
integrating data (variables) and code (methods) into a single unit.
a way of combining data and functions into paired units
a way of combining codes and cats into units of lines and meows
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?