Exam 3: Using Methods, Classes and Objects

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each term with the correct statement below.
Premises:
Included within the method declaration parentheses
Responses:
header
mutator method
return statement
Correct Answer:
Verified
Premises:
Responses:
Included within the method declaration parentheses
header
(Matching)
4.9/5
(42)

For ease in locating class methods, many programmers store them in ____ order.

(Multiple Choice)
4.9/5
(38)

When creating a method that requires multiple parameters, why would a programmer need to understand a method's signature, and why must a method call match the called method's signature?

(Essay)
4.9/5
(35)
Match each term with the correct statement below.
Premises:
Encapsulating method details in a class
Responses:
class user
header
return statement
Correct Answer:
Verified
Premises:
Responses:
Encapsulating method details in a class
class user
(Matching)
4.8/5
(36)

Describe what a public access class is and when you would use one. 

(Essay)
4.8/5
(39)

A method body provides information about how other methods can interact with it.

(True/False)
4.8/5
(40)

An empty method is called a ____.

(Multiple Choice)
4.9/5
(41)
Match each term with the correct statement below.
Premises:
The first line of a method
Responses:
class user
extended
instance variables
Correct Answer:
Verified
Premises:
Responses:
The first line of a method
class user
(Matching)
4.8/5
(38)

The arguments in a method call are often referred to as ____ . The variables in the method declaration that accept the values from the actual parameters are ____.

(Multiple Choice)
4.9/5
(37)

What are the two parts of every method? Describe them.

(Essay)
4.8/5
(38)
Match each term with the correct statement below.
Premises:
Method that sets or changes field values
Responses:
dead code
extended
method's signature
Correct Answer:
Verified
Premises:
Responses:
Method that sets or changes field values
dead code
(Matching)
4.8/5
(26)

Explain the purpose of a return type of a method. Describe the return value of a method that returns no data.

(Essay)
4.8/5
(43)

To execute a method, you ____ it from another method.

(Multiple Choice)
4.9/5
(45)
Match each term with the correct statement below.
Premises:
The combination of the method name and the number, types, and order of arguments
Responses:
accessor method
return statement
formal parameters
Correct Answer:
Verified
Premises:
Responses:
The combination of the method name and the number, types, and order of arguments
accessor method
(Matching)
4.8/5
(43)

A unique identifier is most likely used as a ____ key in a database.

(Multiple Choice)
4.8/5
(38)

Public classes are accessible by all objects, which means that public classes can be ____, or used as a basis for any other class.

(Multiple Choice)
4.8/5
(36)

A(n) ____ causes a value to be sent from a called method back to the calling method.

(Multiple Choice)
4.8/5
(44)

Hidden implementation methods are often referred to as existing in a(n) ____.

(Multiple Choice)
4.8/5
(41)

Describe how you can use multiple arguments in a method. Provide an example.

(Essay)
4.8/5
(39)
Showing 61 - 79 of 79
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)