Python Chapter 4 Flashcards Preview

Fundamentals Of Programming > Python Chapter 4 > Flashcards

Flashcards in Python Chapter 4 Deck (16)
Loading flashcards...
1
Q

instance:

A

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

2
Q

loop:

A

A part of a program that can execute repeatedly.

3
Q

encapsulation:

A

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

4
Q

generalization:

A

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

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.

6
Q

refactoring:

A

Theprocessofmodifyingaworkingprogramtoimprovefunctioninterfacesandother qualities of the code.

7
Q

development plan:

A

A process for writing programs.

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.

9
Q

instance:

A

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

10
Q

loop:

A

A part of a program that can execute repeatedly.

11
Q

encapsulation:

A

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

12
Q

generalization:

A

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

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.

14
Q

refactoring:

A

Theprocessofmodifyingaworkingprogramtoimprovefunctioninterfacesandother qualities of the code.

15
Q

development plan:

A

A process for writing programs.

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.