CSC 351 - Chapter 9 Flashcards
1
Q
Subprogram
A
- has a single entry point.
- the calling program unit is suspended during execution
- control returns to caller when done
2
Q
Subprogram Definition
A
- describes the actions of the subprogram abstraction
3
Q
Subprogram Call
A
- request that a specific subprogram is called
4
Q
Two Fundamental Abstraction Facilities
A
- process abstraction
- data abstraction
5
Q
Subprogram Header
A
- first part of the definition including the name, kind of subprogram and parameters
6
Q
Parameter Profile
A
- number, order and type of parameters
7
Q
Protocol
A
- parameter profile and return type
8
Q
Subprogram Declaration
A
- protocol but not the body of the subprogram
9
Q
Formal Parameter
A
- dummy variable used in the subprogram header
10
Q
Actual Parameter
A
- value or address used in subprogram call statement
11
Q
Positional Parameter
A
- binding of actual parameter to formal parameter is bound by position
12
Q
Keyword Parameter
A
- name of formal parameter is specified with actual parameter
13
Q
Two Categories of Subprograms
A
- procedures
- functions
14
Q
Local Variables
A
- defined inside subprogram
- can be static or stack dynamic
15
Q
Parameter Passing
A
- pass by value
- pass by reference
- pass by name
- pass by result
- pass by value-result