Unit 6 - Lists, Loops, and Traversals Flashcards

1
Q

What is a list?

A

An ordered collection of elements.

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

What is an element in a list?

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

What is an index?

A

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

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

What is 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
5
Q

What is an infinite loop?

A

Occurs when the ending condition will never evaluate to true.

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

What is traversal?

A

The process of accessing each item in a list one at a time.

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

What is data abstraction?

A

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

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