Unit 7 - Parameters, Return, and Libraries Flashcards

1
Q

What is a 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
2
Q

What is an argument?

A

The value passed to the parameter.

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

What does ‘return’ do in a function?

A

Used to return the flow of control to the point where the procedure was called and to return the value of the expression.

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

What is procedural abstraction?

A

A process that allows a procedure to be used only knowing what it does, not how it does it. It enables solving a large problem based on smaller subproblems.

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

What is a library in programming?

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

What does API stand for?

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

What is modularity in programming?

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