A method's interface is its ____.

CIST 1305 Chapter 9

Quiz
•
Computers
•
University
•
Medium
Becca Whitmire
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
parameter list
return type
identifier
all of the above
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following is most closely related to the concept of local?
program level
abstract
object-oriented
in scope
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Assume you have written a method with the header num yourMethod(string name, num code). The method's type is _____.
num and string
num
string
void
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
The value used in a method's return statement must _____.
be a variable
be numeric
match the data type used before the method name in the header
two of the above
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
When you write the declaration for a method that can receive a parameter, which of the following must be included in the method declaration?
the name of the argument that will be used to call the method
a local name for the parameter
two of these
the data type of the parameter
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Assume you have written a method with the header string myMethod(num score, string grade). Also assume you have declared a numeric variable named test. Which of the following is a correct method call?
myMethod(test, "A")
myMethod(test)
myMethod()
myMethod(test,test)
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Methods in the same program with identical names and identical parameter lists are _____.
overwhelmed
overloaded
overworked
ambiguous
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Java Programming Quiz

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
15 questions
Java

Quiz
•
University
20 questions
OOP

Quiz
•
University
15 questions
Basic Java Quiz

Quiz
•
University
20 questions
JDBC

Quiz
•
University
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
15 questions
C# Structured, Selection and Iteration

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade