Chapter 6 - Methods Flashcards

1
Q

means paying attention to important properties while ignoring nonessential details.

A

Abstraction

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

the process of breaking down a large program into modules

A

Modularization

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

The feature of modular programs that allows individual modules to be used in a variety of applications

A

Reusability

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

includes the method identifier and possibly other necessary identifying information.

A

Method Header (methods declaration)

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

contains all the statements in the method.

A

Methods body (methods implementation)

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

marks the end of the method and identifies the point at which control returns to the calling program or method.

A

Return Statement

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

is the feature of programs that assures you a module has been tested and proven to function correctly

A

Reliability

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

SOC stands for?

A

Service Oriented Computing

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

SOAP stands for?

A

Simple Object Access Protocol

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

methods that require information to be sent in from the “outside” (user input or other programs) are called ?

A

Parameters

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

When you call a method using a value within its parentheses, the value is an

A

Argument

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

When you want to 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
13
Q

A method can return nothing, in which case the return type is usually indicated as_____?

A

Void (Void Method)

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

A variable passed into a method is a?

A

passed by value

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

When you make a request to a method, you don’t know the details of how the method is executed
(The encapsulation of method details) what is this called?

A

Implementation hiding

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

Data items are _______ only within the method or program in which they are declared

A

Visible

17
Q

Variables and constants declared within a method are __ _____ only within that method

A

In Scope

18
Q

The scope of a variable or constant is _____ to the method or program in which it is declared

A

Local

19
Q

When variables and constants are declared within the methods that use them, the methods are more _______.

A

Portable

20
Q

________ variables and constants are those that are known to the entire program

A

Global

21
Q

Variables and constants that are declared outside any method are declared at the ______ level?

A

Program

22
Q

______ states that a task’s instructions and its data should be contained in the same method

A

Encapsulation

23
Q

A data item is ________ when it is __ ______.

A

Visible…..In Scope

24
Q

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

A

Value

25
Q

You can pass multiple arguments from calling method to a called method by listening arguments within the method call and separating them with______.

A

Commas

26
Q

A comma separates each parameter, and each requires its own declarared________ (in case, both are numeric) as well as its own identifier.

A

Type

27
Q

When you want to retain a value that exists in a method, you _____ the value from the method.

A

Return

28
Q

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

A

Parameters