Chapter 6 Questions Flashcards

(14 cards)

0
Q

The process of breaking down a large program into manageable modules is——–.

A

MODULARIZATION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Programmers refer to——as subroutines, procedures, functions, or methods.

A

MODULES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A methods——AKA-Method Declaration includes the method identifier and possibly other necessary identifying information.

A

HEADER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A methods——-statement marks the end of the method and identifies the point which control returns to the calling program or method.

A

RETURN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The more the statements in a method contribute to the same job, the greater the functional——-of the method.

A

COHESION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Programmers say the data items are——, or “can be seen”, only within the method or program in which they are declared.

A

VISIBLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If you declare variables and constants within the methods that use them, the methods are more——; that is they can be easily transported or reused in other programs.

A

PORTABLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

——–variables and constants are those that are known to the entire program.

A

DECLARED

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If a method could not receive a communications called———, then you would have to write an infinite number of methods to cover every possible situation.

A

PARAMETERS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When you call a method using a value within its parentheses the value is a(n)——–to the method.

A

ARGUMENT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A variable passed into a method is paused by——-; that is, a copy of its value I sent to the method and stored in a new memory location accessible to the method.

A

VALUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You can pass multiple arguments from a calling method to a called method by listing the arguments within the method call and separating them with——.

A

COMMAS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A comma separates each parameter and each requires it’s own declared—-, as well as it’s identifier.

A

TYPE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When you retain a value that exists in a method you can——the value from the method.

A

RETURN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly