7.02 defining new static methods

7.02 defining new static methods

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Quiz on Array

Quiz on Array

11th - 12th Grade

10 Qs

2019 X RE PAS GAN SIMDIG

2019 X RE PAS GAN SIMDIG

10th Grade

10 Qs

Estructura de Lenguaje C

Estructura de Lenguaje C

10th Grade

10 Qs

KUIS Analisis Data

KUIS Analisis Data

11th Grade

10 Qs

Desarrollo de Aplicaciones Web - Día 3

Desarrollo de Aplicaciones Web - Día 3

10th Grade

10 Qs

Know thy Peer-to-Peer

Know thy Peer-to-Peer

12th Grade

10 Qs

MIL March 8, 2023

MIL March 8, 2023

12th Grade

10 Qs

algoritma

algoritma

10th Grade

10 Qs

7.02 defining new static methods

7.02 defining new static methods

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Michael Courtright

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What type of value is returned by the following method?


public static double someMethod(int[] x)

An array of decimal values

An array of integer values

Nothing is returned

One decimal value

One integer value

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The method definition, or declaration, is defined as the method __________ followed by the method ________.

name, parameters

name, return

header, body

header, signature

signature, body

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is a method signature?

int[] someMethod(double x, String s)

public static int[]

public static int[] someMethod(double x, String s)

someMethod(double x, String s)

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The main method contains the statement int num = someMethod(12, 14);.


What is the result after this statement is executed?

num being assigned the value 5

num being assigned the value 6

num being assigned the value 13

error: missing return statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would be consider modifiers in this static method?


public static int doubleMe (double x)

public, static

int

doubleMe

double x