Java Methods and Return Values

Java Methods and Return Values

10th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

QUIZ DE TECNOLOGÍA E INFORMÁTICA CICLO V (periodo 3)

QUIZ DE TECNOLOGÍA E INFORMÁTICA CICLO V (periodo 3)

1st - 12th Grade

10 Qs

Componentes de la Computadora

Componentes de la Computadora

10th Grade

10 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Identidad Corporativa

Identidad Corporativa

10th Grade

15 Qs

Bài tập Tin học 11 (Tiết 6)

Bài tập Tin học 11 (Tiết 6)

11th Grade

13 Qs

Word 2016

Word 2016

10th Grade

10 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

HTML & Google Site Seatwork

HTML & Google Site Seatwork

12th Grade

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?