Key Concepts in Lists and Loops in Programming

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

1/15

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.

16 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

For Loop

A particular kind of looping construct provided in many languages. Typically, this loop defines a counting variable that is checked and incremented on each iteration in order to loop a specific number of times.

4
New cards

Index

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

5
New cards

Length of list

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

6
New cards

Iteration

a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.

7
New cards

Infinite loop

occurs when the ending condition will never evaluate to true.

8
New cards

Traversal

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

9
New cards

Append

add elements to the end of a list

10
New cards

Insert

Inserts an element into a list at the index given

11
New cards

Remove

Removes the element in the given list at the given index

12
New cards

Data abstraction

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

13
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

14
New cards

Logic Error

a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.

15
New cards

Simulation

abstractions of more complex objects or phenomena for a specific purpose.

16
New cards

Substring

part of an existing string