Java Methods flashcard 2024

Java Methods flashcard 2024

Assessment

Flashcard

Computers

10th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

22 questions

Show all answers

1.

FLASHCARD QUESTION

Front

When the type of a method is defined as void, this indicates...

Back

the method returns nothing

2.

FLASHCARD QUESTION

Front

What will the output of this code be? Options: 11, Error, -1, sum

Media Image

Back

Error

3.

FLASHCARD QUESTION

Front

What will the output of this code be? Options: 11, 24, Error, Product

Media Image

Back

24

4.

FLASHCARD QUESTION

Front

In the following code, what is the name of the method?
public void squared(int num1)

Back

squared

5.

FLASHCARD QUESTION

Front

In the following code, what type of method is it?
public void squared(int num1)

Back

void

6.

FLASHCARD QUESTION

Front

In the following code, what type of method is it?
public double squared(int num1)

Back

non-void

7.

FLASHCARD QUESTION

Front

What goes in the parentheses after a method name?

Back

parameters

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?