Java Methods and Return Values

Java Methods and Return Values

10th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

tin 10 l11

tin 10 l11

12th Grade

10 Qs

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

12th Grade

10 Qs

Parcial - Módulo IV

Parcial - Módulo IV

1st Grade - University

15 Qs

Debugging Challenge 2

Debugging Challenge 2

7th - 12th Grade

15 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

Java Methods and Return Values

Java Methods and Return Values

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Medium

Created by

Courtney Yatteau

Used 36+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

these are the number and types of variables or objects sent to a method

parameters
arguments

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the returned value of recMethod(5)?

68
70
75
82

3.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Java method definitions require which of the following parts in their headers?

A method name

A set of parentheses

A comma-separated parameter list

A semi-colon

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The body of a method definition is contained within a set of ______________.

parentheses

rectangle brackets

curly braces

angle brackets

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method has a parameter and returns an integer?

public void methodExample(int num1, int num2) {...}

public void methodExample(int num) {...}

public int methodExample(int num) {...}

public int methodExample() {...}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is stored in x after the code segment is executed?


int x;

x = 10 + 5 % 3;

0

5

11

12

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If a method of a class is defined like this:
goDown();
what does the () mean?

It requires data to be passed in
It has no parameters
It can be called from BlueJ

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?