Parts of a Method (Java)

Parts of a Method (Java)

9th Grade

16 Qs

quiz-placeholder

Similar activities

JS #2 Understanding Function Arguments and Parameters

JS #2 Understanding Function Arguments and Parameters

12th Grade - University

20 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

U3.2. Statements (JDBC)

U3.2. Statements (JDBC)

University

17 Qs

1.2.3 - Introduction to programming

1.2.3 - Introduction to programming

3rd - 9th Grade

15 Qs

G12 Search Engines

G12 Search Engines

12th Grade

18 Qs

Unit 1 Lesson 6 Vocabulary

Unit 1 Lesson 6 Vocabulary

12th Grade

20 Qs

More on JavaScript

More on JavaScript

University

19 Qs

Sweethome 3D

Sweethome 3D

7th - 9th Grade

20 Qs

Parts of a Method (Java)

Parts of a Method (Java)

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Bryan Campbell

Used 3+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the method declaration public static int calculateSum(int a, int b), what does the word public represent?

Method name

Parameters

Return type

Access modifier

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In regards to the parts of a method, what is the add?

Access modifier

Return type

Method name

Parameters

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which part of a Java method specifies what type of value the method will return?

Method name

Parameters

Return type

Access modifier

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In regards to the parts of a method, what is the integer value for a and b?

Access modifier

Return type

Method name

Parameters

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In regards to the parts of a method, what is the keyword public?

Access modifier

Return type

Method name

Parameters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In regards to the parts of a method, what is the keyword void?

Access modifier

Return type

Method name

Parameters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the variables within the parentheses of a method declaration called?

Method name

Parameters

Return type

Access modifier

Statements

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?