Void, Return and Static Methods

Void, Return and Static Methods

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Java Quiz: Methods

Java Quiz: Methods

Safety in CCE

Safety in CCE

Physical Fitness Quiz

Physical Fitness Quiz

Computer Programming Quiz

Computer Programming Quiz

Void, Return and Static Methods

Void, Return and Static Methods

Assessment

Quiz

Mathematics

9th - 12th Grade

Medium

Created by

Joseph Krontz

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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?