Chapter 9 Rev Qs Flashcards

1
Q

A ___ of a subprogram is the number, order, and types of its formal parameters.

A

Parameter profile

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

Which of the following languages does not require that the number of actual parameters match the number of formal parameters?

A

Javascript, Perl, C++

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

Which of the following are primary design issues for subprograms?

A

Are local variables statically or dynamically allocated?
Can subprograms be overloaded?
What parameter-passing method or methods are used?

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

Which of the following is not a semantics model for parameter passing?

A

Pass by reference

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

Which of the following support only one-way parameter passing?

A

Pass by result, Pass by value

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

Which of the following languages do not require parameter type checking?

A

PHP, Perl

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

-

A

-

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

Which of the following is not a choice for the binding of a passed subprogram to its correct referencing environment?

A

Backwards Binding

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

In which of the following languages can users define overloaded subprograms?

A

C++, ADA,C#

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

Which of the following languages support generic subprograms?

A

C++, ADA, Java

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

Which of the following is a design issue for functions?

A

What types of values can be returned?
Are side effects allowed?

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

Which of the following subprogram characteristics is violated by coroutines?

A

Every subprogram has a single entry point.

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