Procedural abstraction Flashcards

1
Q

What is meant by abstraction in programming?

A

The distinction between what a program unit does and how it does it.

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

What is a proper procedure?

A

A procedure which embodies a COMMAND to be executed. It’s only purpose is to update some variables.

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

What is a function procedure?

A

A procedure which embodies an EXPRESSION to be evaluated/executed. It’s net effect is to yield a value.

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

What is an argument?

A

A value that is passed to a procedure.

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

What is an actual parameter?

A

An expression that yields an argument.

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

What is a formal parameter?

A

An identifier through which a procedure may access an argument.

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

What is a parameter mechanism?

A

The means with which a formal parameter allows access to the corresponding argument.

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

What is a parameter mechanism?

A

The means with which a formal parameter allows access to the corresponding argument.

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

What is a copy parameter mechanism?

A

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

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

What is a reference parameter mechanism?

A

A mechanism in which the formal parameter is a reference to the argument.

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

What is a reference parameter mechanism?

A

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.

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