Java Methods flashcard 2024

Java Methods flashcard 2024

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz 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

Back

Error

3.

FLASHCARD QUESTION

Front

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

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

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?