Chapter 9 Rev Qs Flashcards
A ___ of a subprogram is the number, order, and types of its formal parameters.
Parameter profile
Which of the following languages does not require that the number of actual parameters match the number of formal parameters?
Javascript, Perl, C++
Which of the following are primary design issues for subprograms?
Are local variables statically or dynamically allocated?
Can subprograms be overloaded?
What parameter-passing method or methods are used?
Which of the following is not a semantics model for parameter passing?
Pass by reference
Which of the following support only one-way parameter passing?
Pass by result, Pass by value
Which of the following languages do not require parameter type checking?
PHP, Perl
-
-
Which of the following is not a choice for the binding of a passed subprogram to its correct referencing environment?
Backwards Binding
In which of the following languages can users define overloaded subprograms?
C++, ADA,C#
Which of the following languages support generic subprograms?
C++, ADA, Java
Which of the following is a design issue for functions?
What types of values can be returned?
Are side effects allowed?
Which of the following subprogram characteristics is violated by coroutines?
Every subprogram has a single entry point.