Chap. 6 (Strings) Flashcards

1
Q

Define a 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
2
Q

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

Define flag

A

A Boolean variable used to indicate whether a variable is true or false.

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

Define invocation

A

A statement that calls a method.

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

Define Immutable

A

The proper of a sequence whose items cannot be assigned.

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

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

Define item

A

One of the values in a sequence

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

Define method

A

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

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

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

Define Search

A

A a pattern traversal that stops when it finds what it’s looking for

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

Define Sequence

A

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

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

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

Define 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