Chapter 8 Flashcards

1
Q

object

A

something a variable can refer to. For now, you can use ‘object’ and ‘value’ interchangeably.

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

sequence

A

an ordered set; that is, a set of values where each value is identified by an integer index.

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

item

A

one of the values in a sequence

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

index

A

an integer value used to select an item in a sequence, such as a character in a string.

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

slice

A

a part of a string specified by a range of indices.

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

empty string

A

a string with no characters and length 0, represented by two quotation marks.

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

immutable

A

the property of a sequence whose items cannot be assigned.

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

traverse

A

to iterate through the items in a sequence, performing a similar operation on each.

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

search

A

a pattern of traversal that stops when it finds what it is looking for.

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

counter

A

a variable used to count something, usually initialized to zero and then incremented.

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

invocation

A

a statement that calls a method

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