AP CSP U6 Review

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

1/19

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

list length

how many elements it contains (inside of the indexes)

2
New cards

list

a container used to keep similar pieces of data organized in on place

3
New cards

List Actions

Append, Insert, Remove

4
New cards

Iteration

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

5
New cards

infinite loop

A loop in which the terminating condition is never satisfied. Ending condition can never evaluate to true

6
New cards

FOR loop

A typical looping construct designed to make it easy to repeat a section of code using a counter variable. The for loop combines the creation of a variable

7
New cards

while loop

a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true

8
New cards

_____ loops are in great danger of becoming infinite

While

9
New cards

index

Numerical address of an item in a list

10
New cards

Function in Java that adds an item anywhere in a list

insertItem()

11
New cards

A function in Java that adds an item to the end of a list

appendItem()

12
New cards

A function in Java that removes an item in the list

removeItem()

13
New cards

Element

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

14
New cards

index

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

15
New cards

Lists are an example of...?

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

16
New cards

filter

Creates a subset of elements from the original list

17
New cards

reduce

reduce the list down to a single element

18
New cards

Traversal

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

19
New cards

How do you access each element?

We can access each element by evaluating list[i] in the for loop.

20
New cards

data set

an organized collection of data that can be used in an application to make it more robust