Search Header Logo

49W Exam 2 PLTW

Authored by Tony Banning

Computers

9th - 12th Grade

Used 3+ times

49W Exam 2 PLTW
AI

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?