Search Header Logo

IP Quiz#2

Authored by Elyssa Minette Dato

Others

Professional Development

Used 6+ times

IP Quiz#2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in Java?

An instance of a class.

A template, pattern or blueprint in creating objects.

A method in Java

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a class in Java?

An instance of a class.

A template, pattern or blueprint in creating objects.

A method in java.

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to create an instance of a class?

new

classname

object

reference

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an advantage of Object-Oriented Programming?

It helps in creating flexible and efficient code.

Reusability of code

Modularity

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

null

name

0

myDog

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

null

name

Chooey

myDog

7.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

Write the correct code for creating an instance of class Cat.

Note: objectname is myCat.

(a)  

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?