CS113 – Ch09 Review – Advanced Modularization Techniques

Your page rank:

Total word count: 1028
Pages: 4

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant


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


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

A variable declared within a method ceases to exist when the method ends. It goes out of scope.

A method can also return "nothing" also known as a void method.

A method can return a value when it ends.

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


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


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

List the three things that you need to know to design effective methods.

What the method does in general. The name of the called method. What type of information to send to the method, if any. What type of return data to expect from the method, if any.


____ refers to how the internal statements of a method serve to accomplish the method’s purpose.

Tight coupling

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


____ is a measure of the strength of the connection between two program methods.


A method’s name and parameter list constitute the method’s ____.


All modern programming languages contain many methods that are predefined.


A method can return nothing, in which case the method is a ____ method.


Arrays, unlike simple built-in types, are passed by ____.


Using recursion successfully requires a thorough understanding of ____________________.

Nothing, if the method does not pass anything to the method being called.

If a method requires data to be passed in, the data items and their types are listed between the parentheses in the method header. (Parameter List)

List the items that must be included within the method declaration’s parentheses.


When a data item is known to all of a program’s modules, it is a ____data item.

This is regarding recursion. For these the sum of all the integers up to and including any number is that number plus the sum of the integers for the next lower number.

Discuss the cumulative summing relationship.

This occurs when methods do not depend on others.
The loosest (best) methods pass single arguments if possible, rather than many variables or entire records.

Discuss loose coupling.


A program module that contains a series of statements that carry out a task

Method Header

Contains identifying information about the method

Passed By Value

A copy of a variable’s value is sent to the method and stored in a new memory location accessible to the method

Actual Parameters

The arguments sent to a method in a method call

Passed By Reference

When the method receives the actual memory address of the array and has access to the actual values in the array elements


The ability of a method to act appropriately according to the context

Functional Cohesion

When all the operations in a method contribute to the performance of a single task

Tight Coupling

Occurs when methods have access to the same globally defined variables

Loose Coupling

Occurs when a copy of data that must be shared is passed from one method to another

Overload A Method

​Multiple methods with a shared name but different parameter lists


When methods must share data, you can pass the data into and return the data out of methods.


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


A called method accepts the value of an argument passed to it as its ____.

List the arguments within the method call, separated by commas.

List a data type and local identifier for each parameter within the method header’s parentheses, separating each declaration with a comma. Even if multiple parameters are the same data type, the type must be repeated with each parameter.

Describe how you create and use a method with multiple parameters.


When the method ends at the ____________________ statement, the locally declared parameter variable ceases to exist.

Recursive Method

A method that calls itself is a ____.


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


When you ____ a method, you write multiple methods with a shared name but different parameter lists.


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


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


A method’s return type is part of its signature.


When a data item is known to all of a program’s modules, it is a(n) ____________________ data item.


____ occurs when a method is defined in terms of itself.

Black Box

Programmers refer to hidden implementation details as existing in a(n) ____________________.


You can invoke or call a method from another program or method.

Interface To The Method

Using implementation hiding means that the ____ is the only part of a method with which the method’s client interacts.


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


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

IPO Charts

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


A method could be called using any numeric value as an argument, whether it is a variable, a named constant, or a literal constant.

In Scope

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


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.


Programmers use the term ____ to describe any extra time and resources required by an operation.


Every time you call a method, the address to which the program should return at the completion of the method is stored in a memory location called the ____.


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

Share This

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more


A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message