Unit 5 ✔️ Flashcards
List
An ordered collection of elements
Element
An individual value in a list that is assigned a unique index
Index
A common method for referencing the elements in a list or string using numbers
Iteration
a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.
infinite loop
occurs when the ending condition will never evaluate to true.
Traversal
The process of accessing each item in a list one at a time
Append
add elements to the end of a list
Data abstraction
manage complexity in programs by giving a collection of data a name without referencing the specific details of the representation. In programming a list is a form of data abstraction.
Loops (iteration statements)
change the sequential flow of control by repeating a set of statements zero or more times, until a stopping condition is met
Logic Error
a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.
Simulations
Are the production of a computer model of something, especially for the purpose of study. They are also abstractions of more complex objects or phenomena for a specific purpose. They can be used to test a hypothesis about a pattern.
Substring
Part of an existing string