Exam 9: Advanced Modularization Techniques

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Describe what a method's return statement can return.

Free
(Essay)
4.9/5
(45)
Correct Answer:
Verified

A method's return statement can return one value at most. The value can be a simple data type or it can be a more complex type-like an object.

Variables and constants are ____ within, or local to, only the method in which they are declared.

Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
Verified

A

Programs that use recursion are error-prone but easy to debug.

Free
(True/False)
4.9/5
(41)
Correct Answer:
Verified

False

In implementation hiding, the calling method needs to understand only the interface to the method that is called and it need not know how the method works internally.

(True/False)
4.8/5
(36)

____ provide an overview of input to the method, the processing steps that must occur, and the result.

(Multiple Choice)
5.0/5
(30)

A calling method sends a(n) ____ to a called method.

(Multiple Choice)
4.9/5
(34)

Discuss the cumulative summing relationship.

(Essay)
4.8/5
(32)
Match each term with a statement below.
A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method
functionally cohesive
Occurs when methods have access to the same globally defined variables
polymorphism
The ability of a method to act appropriately according to the context
redeclared
Correct Answer:
Verified
Premises:
Responses:
A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method
functionally cohesive
Occurs when methods have access to the same globally defined variables
polymorphism
The ability of a method to act appropriately according to the context
redeclared
Occurs when a copy of data that must be shared is passed from one method to another
method
A new memory location is reserved and named
passed by value
The arguments sent to a method in a method call
method header
When the method receives the actual memory address of the array and has access to the actual values in the array elements
actual parameters
A program module that contains a series of statements that carry out a task
tight coupling
The declaration or definition
loose coupling
When all the operations in a method contribute to the performance of a single task
passed by reference
(Matching)
4.9/5
(38)

When a copy of a variable is sent to a method, it is passed by ____.

(Multiple Choice)
4.9/5
(39)

A(n) ____________________ chart is a tool that identifies and categorizes each item needed within the method as pertaining to input, processing, or output.

(Short Answer)
4.8/5
(32)

You can think of the ____ in a method declaration as a funnel into the method.

(Multiple Choice)
4.7/5
(40)

The last statement in a method is a(n) ____.

(Multiple Choice)
4.9/5
(36)

____ occurs when methods excessively depend on each other and makes programs more prone to errors.

(Multiple Choice)
4.9/5
(40)

____ is the ability of a method to act appropriately depending on the context.

(Multiple Choice)
4.8/5
(33)

The input value that makes the recursion stop is called the base case or ending case.

(True/False)
4.9/5
(30)

The variables in the method declaration that accept the values from the actual parameters are ____ parameters.

(Multiple Choice)
4.9/5
(36)

Each time a method executes, any parameter variables listed in the method header are ____.

(Multiple Choice)
4.9/5
(37)

Explain what happens when you call a method and the method ends.

(Essay)
4.8/5
(37)

____ occurs when methods do not depend on others.

(Multiple Choice)
4.8/5
(41)

A method's declared return type must match the type of value used in the return statement.

(True/False)
4.8/5
(27)
Showing 1 - 20 of 51
close modal

Filters

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