Chap. 4 (Functions) Flashcards

1
Q

Define Algorithm

A

A general process for solving a category of problems.

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

Define Argument

A

A value provided to a function when the function is called. This value is assigned to to the corresponding parameter in the function.

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

Define Body

A

The sequence of statements inside a function definition.

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

Define Composition

A

Using an expression as part of a larger expression, or a statement as part of a larger statement.

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

Define Deterministic

A

Pertaining to a program that does the same thing each time it runs, given the same inputs.

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

Define Dot Notation

A

The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.

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

Define Flow of Execution

A

The order in which statements are executed during a program run.

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

Fruitful Function

A

A function that returns a value

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

Define Function

A

A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.

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

Define Functional Call

A

A statement that executes a function. It consists of the function name followed by an argument list.

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

Define Function Definition

A

A statement that creates a new function, specifying its name, parameters, and the statements it executes

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

Define Function Object

A

A value created by a function definition. The name of the function is a variable that refers to a function object.

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

Define Header

A

The first line of a function definition

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

Define Import Statement

A

A statement that reads a module file and creates a module object

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

Define Module Object

A

A value created by an import statement that provides access to the data and code defined in a module.

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

Define Parameter

A

A name used inside a function to refer to the value passed as an argument.

17
Q

Define Pseudorandom

A

Pertaining to a sequence of numbers that seem to be random, but are generated by a deterministic program.

18
Q

Define Return Value

A

The result of a function. If a function call is used as an expression, the return value is the value of the expression.

19
Q

Define Void Function

A

A function that doesn’t return a value.