Java Methods

Java Methods

12th Grade

10 Qs

quiz-placeholder

Similar activities

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Data Structures: Linked Lists and Hashtables

Data Structures: Linked Lists and Hashtables

11th Grade - University

14 Qs

ONLINE Quiz - Computer Hardware Basics (COMSYS 1)

ONLINE Quiz - Computer Hardware Basics (COMSYS 1)

12th Grade

15 Qs

Know thy Peer-to-Peer

Know thy Peer-to-Peer

12th Grade

10 Qs

TCP/IP & other protocols [A Level]

TCP/IP & other protocols [A Level]

12th Grade

14 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

My Sql

My Sql

12th Grade

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Java Methods

Java Methods

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Mr. Kedwell

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

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

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?