Search Header Logo

Void, Return and Static Methods

Authored by Joseph Krontz

Mathematics

9th - 12th Grade

Used 7+ times

Void, Return and Static Methods
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we use void and return methods together?

Yes

No

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This is an example of a non-return method.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The name of this method is ....

Oddsum

int Oddsum

int Oddsum (int number)

return totaloddsum

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The different between static and non static method is ....

for non static method : user need to create object in a class to call a method.

A method is to perform only specific task.

There is no significant differences between static and non - static method.

Both are bounded with a class.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Data type for non return method is

int

double

void

public static

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Fix the syntax error in Line 8.

Cylinder sc = new System.in( );

Scanner sc = new Scanner (System.in);

Cylinder Volume = new Volume( );

Cylinder call = new Cylinder( );

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of a method that does not return any value?

int

float

void

double

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?