Chapter 20 Flashcards

1
Q

call graph

A

A graph consisting of nodes which represent function frames (or invocations), and directed edges (lines with arrows) showing which frames gave rise to other frames.

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

dictionary

A

A collection of key:value pairs that maps from keys to values. The keys can be any immutable value, and the associated value can be of any type.

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

immutable data value

A

A data value which cannot be modified. Assignments to elements or slices (sub-parts) of immutable values cause a runtime error.

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

key

A

A data item that is mapped to a value in a dictionary. Keys are used to look up values in a dictionary. Each key must be unique across the dictionary.

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

key:value pair

A

One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.

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

mapping type

A

A mapping type is a data type comprised of a collection of keys and associated values. Python’s only built-in mapping type is the dictionary. Dictionaries implement the associative array abstract data type.

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

memo

A

Temporary storage of precomputed values to avoid duplicating the same computation.

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

mutable data value

A

A data value which can be modified. The types of all mutable values are compound types. Lists and dictionaries are mutable; strings and tuples are not.

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