Chapter 12 Flashcards

1
Q

dictionary

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

hint

A

Temporary storage of a precomputed value to avoid redundant computation.

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

event

A

A signal such as a keyboard press, mouse click, or message from another program.

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

event-driven program

A

In computer programming, event-driven programming or event-based programming is a programming paradigm in which the flow of the program is determined by events—i.e., sensor outputs or user actions (mouse clicks, key presses) or messages from other programs or threads.

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

event loop

A

A programming construct that waits for events and processes them.

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

overflow

A

A numerical result that is too large to be represented in a numerical format.

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