CMP128 Java Ch. 05 Methods

CMP128 Java Ch. 05 Methods

University

10 Qs

quiz-placeholder

Similar activities

Quiz Pem Mobile

Quiz Pem Mobile

University

10 Qs

Chapter 10: Encryption Techniques

Chapter 10: Encryption Techniques

University

10 Qs

OOP Module 3 Tutorial (Quiz)

OOP Module 3 Tutorial (Quiz)

University

10 Qs

Quiz CodeIgniter 4

Quiz CodeIgniter 4

University

10 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Adobe Illustrator Workshop Quiz

Adobe Illustrator Workshop Quiz

University

15 Qs

CMP128 Java Ch. 05 Methods

CMP128 Java Ch. 05 Methods

Assessment

Quiz

Computers

University

Medium

Created by

Professor Tirrito

Used 95+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

A ___________ is a pre-defined set of steps that complete a specific task, optionally based on parameter values, and optionally returning some result.

array

function

method

module

class

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Java method (function/module) definitions can contain which of the following parts in their headers?

An access modifier such as public or private

An optional access specifier called static

a return type or void

all of the above

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

all of the above

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

2 mins • 1 pt

A method must be called from an object unless the method definition contains the keyword ___________ in its header.
public
void
static
int

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Methods are called (instantiated/invoked) by referencing the __________ of the method and any optional _____________ list.

data type, parameter

method name, argument

public keyword, parameter

static keyword, argument

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Methods that contain the _______ keyword in the data type position do not return any data, so they can simply be called without being part of a larger statement.

void

static

public

boolean

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?