Search Header Logo

Java Methods

Authored by Mr. Kedwell

Computers

12th Grade

10 Questions

Used 22+ times

Java Methods
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the method?
public static void nameReverse(String first, String last)

nameReverse
NameReverse
String
first

public

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type does the function method return?
public static int sum(float num1, double num2)

int

float

static

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the parameters?
public static void fullName(String userFirst, char userMiddle, String userLast);

fullName
userFirst, usetMiddle, userLast

public

void

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These control the behavior of a program.

class
object
method
void

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable defined inside a method body. 

local variable
global variable
instance
method

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a method, the return type should be __________ when the method returns no value.

Static
Private
Public
Void

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you have two methods with the same name in the same class file?

YES

NO

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?