Void, Return and Static Methods

Void, Return and Static Methods

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Chapter 3

Chapter 3

8th - 9th Grade

15 Qs

Systems of Equations and Inequalities

Systems of Equations and Inequalities

8th - 9th Grade

11 Qs

The Riemann Sum and the Definite Integral

The Riemann Sum and the Definite Integral

11th Grade

10 Qs

Цікава інформатика 8-9

Цікава інформатика 8-9

8th - 10th Grade

17 Qs

TRY OUT MANDIRI UN 2

TRY OUT MANDIRI UN 2

12th Grade

10 Qs

System of Inequalities & Number of Solutions in Systems

System of Inequalities & Number of Solutions in Systems

8th - 11th Grade

10 Qs

research project

research project

11th Grade

16 Qs

The structures of the CIE IGCSE Maths programme

The structures of the CIE IGCSE Maths programme

9th - 10th Grade

10 Qs

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?