Lesson 9 Flashcards

(16 cards)

1
Q

Can only be used within the
function.

Have a local scope

A

Local

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

Have a global scope.

Available from any function in the
program, including main ( )

A

Global

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
are generally used to make programs
modular. This means that programs
are subdivided into modules or
“functions” which allows programs
to be read or modified easily.
A

Function

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

return the address of the operators.

A

Address of operator(&)

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

values which may be variables or expressions passed on to the function and are normally
found in the function call.

A

Arguments

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

returns the value of the address stored by the pointer.

A

Indirection operator (*)

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

creating more than one function with the same name.

A

Function overloading

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

consists of the return type, a function name, and a parameter list; a way of identifying the data types of any return value and parameter for the compiler so it can perform error-checking.

A

Function prototype or function declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
have a global scope, and thus, are available from any function in the program,
including main ( ).
A

Global variables

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

can only be used within the function; have a local scope.

A

Local variables

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

found and declared in the function header; accept values from the program or another
function.

A

Parameters

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

the addresses of the arguments are passed; the parameters, as well as the
arguments, only refer to the same memory location.

A

Pass-by-Reference method

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

parameters only accept the values passed on to them.

A

Pass-by-value method

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

used to return a single value from a function.

A

Return statement

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

the results of the function which may be passed to another function.

A

Return values

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

the section of code where a variable is allowed to be accessed or referenced.