
7.02 defining new static methods
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Michael Courtright
Used 3+ times
FREE Resource
Enhance your content in a minute
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
Similar Resources on Wayground
10 questions
Software Testing
Quiz
•
12th Grade - University
10 questions
Structs em C
Quiz
•
9th - 12th Grade
10 questions
Kuis library JMF
Quiz
•
9th - 12th Grade
10 questions
Python - List
Quiz
•
9th - 12th Grade
10 questions
Python- Operators
Quiz
•
12th Grade
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
10 questions
Les variables sous Python
Quiz
•
10th - 12th Grade
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade
