Basic Definitions V Flashcards

1
Q

boolean function

A

A function that returns a boolean value.

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

composition (of functions)

A

Calling one function from within the body of another, or using the return value of one function as an argument to the call of another.

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

dead code

A

Part of a program that can never be executed, often because it appears after a return stateme

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

fruitful function

A

A function that yields a return value.

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

incremental development

A

A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.

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

None

A

A special Python value returned by functions that have no return statement, or a return statement without an argument. None is the only value of the type, NoneType.

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

return value

A

The value provided as the result of a function call.

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

scaffolding

A

Code that is used during program development but is not part of the final version.

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

temporary variable

A

A variable used to store an intermediate value in a complex calculation.

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

unit testing

A

An automatic procedure used to validate that individual units of code are working properly. Python has doctest built in for this purpose.

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