Chap. 6 (Strings) Flashcards
Define a counter
A variable used to count something, usually initialized to zero and then incremented.
Define Empty string
A string with no characters and length 0, represented by two quotation marks.
Define flag
A Boolean variable used to indicate whether a variable is true or false.
Define invocation
A statement that calls a method.
Define Immutable
The proper of a sequence whose items cannot be assigned.
Define index
An integer value used to select an item in a sequence, such as a character in a string.
Define item
One of the values in a sequence
Define method
A function that is associated with an object and called using a dot notation.
Define object
Something a variable can refer to. For now, you can use “object” and “value” interchangeably.
Define Search
A a pattern traversal that stops when it finds what it’s looking for
Define Sequence
An ordered set; that is, a set of values in where each value is identified by an integer index.
Define slice
A part of a string specified by a range of indices.
Define traverse
To iterate through the items in a sequence, performing a similar operation on each.