Chapter 4 Case Study: Interface Design Flashcards

1
Q

Method

A

A function that is associated with an object and called using dot notation.

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 run 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 a the parameter as a “keyword”.

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

Interface

A

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
7
Q

Refactoring

A

The process of modifying a working program to improve function interfaces and other qualities of the code.

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

Development Plan

A

A process for writing programs.

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

Docstring

A

A string that appears at the top of a function definition to document the function’s interface.

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

Preconditon

A

A requirment that should be satisfied by the caller before a function starts.

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

Postcondition

A

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