Java - Writing Methods

Java - Writing Methods

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Thinglink

Thinglink

9th - 12th Grade

10 Qs

Data Engineering y BigQuery V1

Data Engineering y BigQuery V1

12th Grade

10 Qs

ETWINNING SID EVENT 24

ETWINNING SID EVENT 24

1st - 12th Grade

10 Qs

Safer Internet Quiz Bee

Safer Internet Quiz Bee

11th - 12th Grade

10 Qs

IF, OR, AND, Left, Right, and Left

IF, OR, AND, Left, Right, and Left

11th Grade

10 Qs

Databases

Databases

11th Grade - University

10 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Java - Writing Methods

Java - Writing Methods

Assessment

Quiz

Computers, Instructional Technology

9th - 12th Grade

Practice Problem

Medium

Used 337+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a reason for using procedural abstraction?

Divide a problem into subproblems to solve it a piece at a time

Reuse code by putting it in a method and calling it whenever needed

Smaller methods are easier to debug and understand

Passing arguments to parameters are required when writing methods

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a step to creating and calling a method:

Declare an Object of your class in the main method

Call the method by using objectName.methodName()

Write the method definition (signature) with the header and body

Use System.out.println() to debug your program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following method calls is INVALID? Assume the object name is song and the method name is chorus.

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you create your own method, the variables you define for it in the method header are called

formal parameters

actual parameters (arguments)

objects

primitives

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct method header for this method call:


song.verse(3, "Bob");

Media Image
Media Image
Media Image
Media Image

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?