chapter 6 Flashcards

1
Q

What is a module?

A

another name for functions

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

What are value returning functions?

A

functions that return a defined datatype

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

What are void functions?

A

functions that do not return a data type

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

What does a heading refer to in the context of functions?

A

function header. Shows the datatype, name of the function, and formal parameter list

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

What is a formal parameter?

A

variable declared in the header

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

What is an actual parameter?

A

variable or expression listed in a call to a function

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

What does functionType refer to?

A

data type or return type of a function

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

What is a function prototype?

A

function heading without the body

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

What is a value parameter?

A

formal parameter that gets a copy of the corresponding actual parameter

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

What is a reference parameter?

A

points to the data of the actual parameter allowing you to edit the actual parameter’s data

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

What does scope refer to?

A

where in the program identifiers is accessible

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

What are local identifiers?

A

identifiers declared within a function

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

What are global identifiers?

A

identifiers that are declared outside of every function and is accessible by every function

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

What is the scope resolution operator?

A

::

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

What does extern refer to in programming?

A

used in order to access a variable that has not been initialized yet

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

What are automatic variables?

A

variables created and destroyed from memory for the duration of their block

17
Q

What are static variables?

A

variables that remain in memory until the program stops executing

18
Q

What is a driver program?

A

separate program to test a function

19
Q

What is a function stub?

A

function not fully coded for testing purposes

20
Q

What is function overloading?

A

having functions with the same name with at least slight differences in formal parameter lists