Chapter 7 Strings (Ch 1, then 7) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
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
2
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
3
Q

flag

A

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

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

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

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
6
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
7
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
8
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
9
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
10
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
11
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
12
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
13
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