Unit 6: Lists, Loops, and Traversals Overview

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

List

an ordered collection of elements

2
New cards

Element

an individual value in a list that is assigned a unique index

3
New cards

Index

a common method for referencing the elements in a list or string using numbers

4
New cards

Iteration

a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met. (Loops are a type of iteration.)

5
New cards

Infinite loop

occurs when the ending condition will never evaluate to true.

6
New cards

Traversal

the process of accessing each item in a list one at a time.

7
New cards

Data abstraction

manage complexity in programs by giving a collection of data a name without referencing the specific details of the representation.

8
New cards

Append

add elements to the end of a list

9
New cards

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

10
New cards

Logic Error

a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly. Such as incorrect >,< statements

11
New cards

Simulation

abstractions of more complex objects or phenomena for a specific purpose. For example we can simulate rolling of a dice by picking a random number from 1-6.

12
New cards

Substring

part or piece of an existing string

13
New cards

Length of a list

how many elements it contains. Lists can grow or shrink as elements are added or removed.

14
New cards

Data abstraction in lists

They allow us to name and program with large collections of information while ignoring the low level details of how the data is stored, organized, etc.