49W Exam 2 PLTW

49W Exam 2 PLTW

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Java Quiz 1

Java Quiz 1

9th Grade

12 Qs

Project STEM AP CS A Unit 1 Quiz Review

Project STEM AP CS A Unit 1 Quiz Review

9th - 12th Grade

11 Qs

"switch" Java Statement - 1

"switch" Java Statement - 1

9th - 10th Grade

17 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

CWA Java 6

CWA Java 6

11th - 12th Grade

8 Qs

java

java

10th Grade

15 Qs

Java Inheritance Quiz

Java Inheritance Quiz

11th Grade

15 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?