Chapter 4 - Functions Flashcards

1
Q

A general process for solving a category of problems.

A

Algorithm

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

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

A

Argument

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

The sequence of statements inside a function definition.

A

Body

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

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

A

Composition

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

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

A

Deterministic

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

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

A

Dot Notation

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

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

A

Flow of Execution

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

A function that returns a value.

A

Fruitful Function

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

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.

A

Function

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

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

A

Function Call

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

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

A

Function Definition

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

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

A

Function Object

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

The first line of a function definition.

A

Header

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

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

A

Import Statement

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

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

A

Module Object

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

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

A

Parameter

17
Q

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

A

Pseudorandom

18
Q

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

A

Return Value

19
Q

A function that does not return a value.

A

Void Function