Functions Flashcards

1
Q

a named list of statements

A

function

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

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

A

function call

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

can be any valid identifier

A

function’s name

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

a function input specified in a function definition

A

parameter

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

a value provided to a function’s parameter during a function call

A

argument

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

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

A

Modular development

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

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

A

Incremental development

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

A function’s statements may include branches, loops, calls to other functions, and other statements. (T or F)

A

True

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

Decomposing a program into functions can greatly aid program readability, helping yield an initially correct program, and easing future maintenance. (T or F)

A

True

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