Procedural abstraction Flashcards
What is meant by abstraction in programming?
The distinction between what a program unit does and how it does it.
What is a proper procedure?
A procedure which embodies a COMMAND to be executed. It’s only purpose is to update some variables.
What is a function procedure?
A procedure which embodies an EXPRESSION to be evaluated/executed. It’s net effect is to yield a value.
What is an argument?
A value that is passed to a procedure.
What is an actual parameter?
An expression that yields an argument.
What is a formal parameter?
An identifier through which a procedure may access an argument.
What is a parameter mechanism?
The means with which a formal parameter allows access to the corresponding argument.
What is a parameter mechanism?
The means with which a formal parameter allows access to the corresponding argument.
What is a copy parameter mechanism?
A mechanism in which a value is copied into and/or out of a procedure. The formal parameter is bound to a local variable of that procedure.
May be: copy-in parameter, copy-out parameter
What is a reference parameter mechanism?
A mechanism in which the formal parameter is a reference to the argument.
What is a reference parameter mechanism?
A mechanism in which the formal parameter is a reference to the argument. The FP is bound to a reference => has indirect access to the argument.
May be: constant parameters, variable parameters, procedural parameters.