Chapter 6 - Methods Flashcards Preview

CIS 150 Final Review Ch 4-7 > Chapter 6 - Methods > Flashcards

Flashcards in Chapter 6 - Methods Deck (28):
1

means paying attention to important properties while ignoring nonessential details.

Abstraction

2

the process of breaking down a large program into modules

Modularization

3

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

Reusability

4

includes the method identifier and possibly other necessary identifying information.

Method Header (methods declaration)

5

contains all the statements in the method.

Methods body (methods implementation)

6

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

Return Statement

7

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

Reliability

8

SOC stands for?

Service Oriented Computing

9

SOAP stands for?

Simple Object Access Protocol

10

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

Parameters

11

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

Argument

12

When you want to retain a value that exists in a method, you can ______the value from the method

Return

13

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

Void (Void Method)

14

A variable passed into a method is a?

passed by value

15

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?

Implementation hiding

16

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

Visible

17

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

In Scope

18

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

Local

19

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

Portable

20

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

Global

21

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

Program

22

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

Encapsulation

23

A data item is ________ when it is __ ______.

Visible.....In Scope

24

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.

Value

25

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

Commas

26

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

Type

27

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

Return

28

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.

Parameters