Search Header Logo

Topic 2.4 Video 2

Authored by Myra Deister

Computers

11th Grade

Used 1+ times

Topic 2.4 Video 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I will be checking AP Classroom to verify that you have viewed the video.

How many methods will be written for the frog class?

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is method overloading?

Method overloading is a feature in object-oriented programming where multiple methods can have different names but the same parameters.

Method overloading is a feature in procedural programming where multiple methods can have the same name but different method signatures.

Method overloading is a feature in object-oriented programming where multiple methods can have the same name but different method signatures.

Method overloading is a feature in object-oriented programming where multiple methods can have the same name and same method signatures.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can be overloaded?

methods

constructors

both methods and constructors

neither methods or constructors

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If a variable is declared as private , then it can be used in _______.

Any class of any package.

Any class of same package.

Only in the same class.

Only subclass in that package.

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

In what ways do method signatures need to be different for overloading to work? Check all that apply.

The parameter types must be different

The parameter names must be different

The order of different typed parameters must be different

The number of parameters need for be different

The method names need to be different

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?