
7.02 defining new static methods
Authored by Michael Courtright
Computers
9th - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Cloud Storage
Quiz
•
8th Grade - University
10 questions
Comments and Variables in Python Programming
Quiz
•
11th Grade
10 questions
Swift-Array Methods
Quiz
•
10th Grade
10 questions
Processador de texto
Quiz
•
11th Grade
10 questions
Intro to MIL
Quiz
•
11th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
10 questions
Staff CPD Internet Safety and AI Quizizz
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade