49W Exam 2 PLTW

49W Exam 2 PLTW

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Classes in C++

Classes in C++

6th - 9th Grade

14 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Java Classes

Java Classes

12th Grade - University

10 Qs

Enkapsulasi

Enkapsulasi

11th Grade

10 Qs

Python - тест

Python - тест

1st - 12th Grade

15 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Java Basics (Data Types and Variables)

Java Basics (Data Types and Variables)

6th - 10th Grade

16 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

49W Exam 2 PLTW

49W Exam 2 PLTW

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Tony Banning

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?