unit 6 vocab Flashcards

1
Q

list

A

an ordered collection of elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

element

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

while loop

A

repeatedly runs a block of code while boolean expression is true, once boolean becomes false it will stop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

for loop

A

condenses while loop in to a shorter statement, once boolean becomes false loop will end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

iteration

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

infinite loop

A

occurs when boolean expression will never evaluate to false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

filter

A

create a subset of elements from original list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

reduce

A

reduce the list down to a single element , ex: the smallest number in the list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

traversal

A

the process of accessing each item in a list at one time (for loop)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly