Python Chapter 4 Flashcards

1
Q

instance:

A

A member of a set. The TurtleWorld in this chapter is a member of the set of Turtle- Worlds.

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

loop:

A

A part of a program that can execute repeatedly.

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

encapsulation:

A

The process of transforming a sequence of statements into a function definition.

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

generalization:

A

The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).

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

keyword argument:

A

An argument that includes the name of the parameter as a “keyword.” interface: A description of how to use a function, including the name and descriptions of the arguments and return value.

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

refactoring:

A

Theprocessofmodifyingaworkingprogramtoimprovefunctioninterfacesandother qualities of the code.

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

development plan:

A

A process for writing programs.

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

docstring:

A

A string that appears in a function definition to document the function’s interface. precondition: A requirement that should be satisfied by the caller before a function starts. postcondition: A requirement that should be satisfied by the function before it ends.

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

instance:

A

A member of a set. The TurtleWorld in this chapter is a member of the set of Turtle- Worlds.

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

loop:

A

A part of a program that can execute repeatedly.

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

encapsulation:

A

The process of transforming a sequence of statements into a function definition.

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

generalization:

A

The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).

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

keyword argument:

A

An argument that includes the name of the parameter as a “keyword.” interface: A description of how to use a function, including the name and descriptions of the arguments and return value.

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

refactoring:

A

Theprocessofmodifyingaworkingprogramtoimprovefunctioninterfacesandother qualities of the code.

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

development plan:

A

A process for writing programs.

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

docstring:

A

A string that appears in a function definition to document the function’s interface. precondition: A requirement that should be satisfied by the caller before a function starts. postcondition: A requirement that should be satisfied by the function before it ends.