Module 5 Flashcards

1
Q

function

A

sets result to 6.83

a named sequence of instructions:
example:
round function-

price = round (6.8275, 2)

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

arguments

A

the values for which we want the function to compute a result

it is first computed before it is passed to the function.

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

return value

A

the result that the function computes

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

when defining a function

A

you provide a name for the function and a variable for each argument.

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

parameter variable

A

a variable of a method or function that is initialized with a value when it is called.

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

header

A

the first line of the function’s definition:

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

body

A

the body contains the statements that are executed when the function is called.

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

return statement is used for

A

giving the function’s result to the caller.

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

def function

A

used to define and write the function identifier

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

Parameter variables

A

specifying expressions to be arguments for a method or function when it is called AKA formal parameters

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

stepwise refinement

A

solving a problem by breaking it into smaller problems and then further decomposing those smaller problems

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

argument

A

a value supplied in a function or method call, or one of the values combined by an operator AKA actual parameters

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