Matching
Match each term with a statement below.
Premises:
A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method
Occurs when methods have access to the same globally defined variables
The ability of a method to act appropriately according to the context
Occurs when a copy of data that must be shared is passed from one method to another
A new memory location is reserved and named
The arguments sent to a method in a method call
When the method receives the actual memory address of the array and has access to the actual values in the array elements
A program module that contains a series of statements that carry out a task
The declaration or definition
When all the operations in a method contribute to the performance of a single task
Responses:
functionally cohesive
polymorphism
redeclared
method
passed by value
method header
actual parameters
tight coupling
loose coupling
passed by reference
Correct Answer:
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
Occurs when methods have access to the same globally defined variables
The ability of a method to act appropriately according to the context
Occurs when a copy of data that must be shared is passed from one method to another
A new memory location is reserved and named
The arguments sent to a method in a method call
When the method receives the actual memory address of the array and has access to the actual values in the array elements
A program module that contains a series of statements that carry out a task
The declaration or definition
When all the operations in a method contribute to the performance of a single task
Premises:
A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method
Occurs when methods have access to the same globally defined variables
The ability of a method to act appropriately according to the context
Occurs when a copy of data that must be shared is passed from one method to another
A new memory location is reserved and named
The arguments sent to a method in a method call
When the method receives the actual memory address of the array and has access to the actual values in the array elements
A program module that contains a series of statements that carry out a task
The declaration or definition
When all the operations in a method contribute to the performance of a single task
Responses:
Related Questions
Q1: When a copy of a variable is
Q10: _ occurs when methods excessively depend on
Q24: In implementation hiding,the calling method needs to
Q32: A calling method sends a(n)_ to a
Q35: _ provide an overview of input to
Q37: Programs that use recursion are error-prone but
Q41: Discuss the cumulative summing relationship.
Q46: The last statement in a method is
Q53: You can think of the _ in
Q60: A(n)_ chart is a tool that identifies