1.1.8 Procedures as Black-Box Abstractions Flashcards

1
Q

When is a procedure regarded to be black-box?

A

When at any given moment, we are not concerned with how the procedure computes its result, but only with the fact that it computes it.

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

procedural abstraction

A

The level of abstraction in which the details of how a procedure is computed can be suppressed, to be considered at a later time.

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

abstraction in Computer Science

A

A concept that a user should not need to know how a procedure is implemented in order to use it.

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

bound variable (in procedures)

A

The name of a formal parameter in a procedure, which does not change the meaning of a procedure definition even when consistently renamed throughout the definiton

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

scope of a name

A

The set of expressions in which a name is defined or valid. In a procedure definition, the bound variables have the body of the procedure as their scope and will not have any meaning outside of it.

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

free variable (in procedures)

A

Variables or names within a procedure that are not bound to the procedure and have meaning outside of the procedure body.

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

block structure

A

Nesting of definitions that provides a solution to the simplest name-packaging problem.

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

free variable (in procedures)

A

Variables or names within a procedure that are not bound to the procedure and have meaning outside of the procedure body.

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

lexical scoping

A

Allows inner procedures to access variables defined in their enclosing procedures without the need for explicit parameter passing.

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