Unit 6 - Lists, Loops, and Traversals Flashcards
1
Q
List
A
an ordered collection of elements
2
Q
Element
A
an individual value in a list that is assigned a unique index
3
Q
Index
A
a common method for referencing the elements in a list or string using numbers
4
Q
Iteration
A
a repetitive portion of an algorithm which repeats a specified number of times or until a condition is met.
5
Q
Infinite loop
A
occurs when the ending condition will never evaluate to true
6
Q
Traversal
A
the process of accessing each item in a list one at a time.
7
Q
Data Abstraction
A
manage complexity in programs by giving a collection of data a name without referencing the specific details of the representation.