AP CSP U6 Review

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 19

flashcard set

Earn XP

20 Terms

1

list length

how many elements it contains (inside of the indexes)

New cards
2

list

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

New cards
3

List Actions

Append, Insert, Remove

New cards
4

Iteration

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

New cards
5

infinite loop

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

New cards
6

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

New cards
7

while loop

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

New cards
8

_____ loops are in great danger of becoming infinite

While

New cards
9

index

Numerical address of an item in a list

New cards
10

Function in Java that adds an item anywhere in a list

insertItem()

New cards
11

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

appendItem()

New cards
12

A function in Java that removes an item in the list

removeItem()

New cards
13

Element

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

New cards
14

index

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

New cards
15

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

New cards
16

filter

Creates a subset of elements from the original list

New cards
17

reduce

reduce the list down to a single element

New cards
18

Traversal

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

New cards
19

How do you access each element?

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

New cards
20

data set

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

New cards
robot