AP CSP Unit 6: Lists, Loops, Traversals Vocabulary

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

1/18

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.

19 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 defines a counting variable that is checked and incremented on each iteration in order to loop a specific number of times

4
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

5
New cards

Index

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

6
New cards

Length of List

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

7
New cards

Iteration

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

8
New cards

Infinite Loop

occurs when the ending condition will never evaluate to true

9
New cards

Traversal

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

10
New cards

Append

adds an element to the end of a list

11
New cards

Insert

inserts an element into a list at the index given

12
New cards

Remove

removes the element in the given list at the given index

13
New cards

Data Abstraction

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

14
New cards

Logic Error

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

15
New cards

Run-Time Error

a mistake in the program that occurs during the execution of it

16
New cards

Syntax Error

a mistake in the program where the rules of the programming language are not followed

17
New cards

Ways to Find and Correct Errors

test cases, hand tracing, visualizations, watchers, adding extra output statements (console.logs)

18
New cards

Simulation

abstractions of more complex objects or phenomena for a specific purpose; most useful when real-world events are impractical for experiments

19
New cards

Substring

part of an existing string