Unit 6/7 - Lists, Loops, and Traversals / Parameters, Return, and Libraries Flashcards

(14 cards)

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

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

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

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

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

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
8
Q

Parameter

A

a variable in a function definition. Used as a placeholder for values that will be passed through the function.

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

Argument

A

the value passed to the parameter

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

Return

A

used to return the flow of control to the point where the procedure (also known as a function) was called and to return the value of expression.

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

Procedural Abstraction

A

a process and allows a procedure to be used only knowing what it does, not how it does it.

(Procedural abstraction allows a solution to a large problem to be based on the solution of smaller subproblems. This is accomplished by creating procedures to solve each of the subproblems.)

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

Library

A

a group of functions (procedures) that may be used in creating new programs

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

API

A

Application Program Interface - specifications for how functions in a library behave and can be used

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

Modularity

A

the subdivision of a computer program into separate subprograms

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