Search Header Logo

Inheritance Day 3

Authored by Jeffrey Smith

Computers

12th Grade

Used 8+ times

Inheritance Day 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// Type error if there is an erro

A obj1 = new A();

   obj1.setX(10);

   System.out.println(obj1);

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// type error if there is an error

A obj1 = new A();

obj1.setY(13);

System.out.println(obj1);

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// type error if there is an error

A obj1 = new A();

obj1.sayHi();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How long is an Olympic swimming pool (in meters)?

25

50

75

100

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// type error if there is an error

B obj2 = new A();

System.out.println(obj2);

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// if there is an error type error

A obj3 = new B();

obj3.setX(15);

System.out.println(obj3);

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

// type error if there is an error

A obj3 = new B();

obj3.setY(20);

System.out.println(obj3);

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?