6. User Defined Functions Flashcards

(11 cards)

1
Q

Function

A

a named list of statements.

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

Function Definition

A

Consists of the new function’s name and a block of statements. The function’s name can be any valid identifier.

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

Function Call

A

An invocation of a function’s name, causing the function’s statements to execute.

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

Local Variable

A

A variable declared in a function, which is then accessible only within that function.

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

Parameter

A

A function input specified in a function definition. Ex: A pizza area function might have diameter as an input.

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

Argument

A

A value provided to a function’s parameter during a function call. Ex: A pizza area function might be called as PrintPizzaArea(12.0) or as PrintPizzaArea(16.0).

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

Return Variable

A

A function may return one value by assigning a return variable with the return value

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

Return Value

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

Modular Development

A

the process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program.

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

Incremental development

A

Process in which a programmer writes and tests a few statements, then writes and tests a small amount more (an incremental amount), and so on.

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

Function Stub

A

function definition whose statements have not yet been written.

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