In: Computer Science
QUESTION 1
Which of the following programming languages does NOT support parametric polymorphism?
| 
 Java  | 
||
| 
 C++  | 
||
| 
 Python  | 
||
| 
 C#  | 
10 points
QUESTION 2
Which of the following programming languages does NOT support operator overloading?
| 
 C#  | 
||
| 
 Python  | 
||
| 
 C  | 
||
| 
 C++  | 
10 points
QUESTION 3
In a language that allows nested subprograms, the programming language has to choose a referencing environment for the executing the passed subprogram when a subprogram is passed as a parameter. Which of the following is NOT a choice?
| 
 just in time binding  | 
||
| 
 shallow binding  | 
||
| 
 ad hoc binding  | 
||
| 
 deep binding  | 
10 points
QUESTION 4
Which of the following is necessary for recursion to take place via subprogram calls?
| 
 static local variables  | 
||
| 
 stack dynamic local variables  | 
||
| 
 type checking  | 
||
| 
 returning values from a function  | 
10 points
QUESTION 5
Which of the following is NOT a concern when corresponding the actual parameters to the formal parameters?
| 
 default parameters  | 
||
| 
 variable number of parameters  | 
||
| 
 return type  | 
||
| 
 positional parameters v. keyword parameter  | 
10 points
QUESTION 6
Which of the following is NOT an inout mode of parameter passing?
| 
 pass by reference  | 
||
| 
 pass by result  | 
||
| 
 pass by name  | 
||
| 
 pass by value-result  | 
10 points
QUESTION 7
Which of the following is never used to distinguish between two subprograms in any programming language?
| 
 return type  | 
||
| 
 subprogram name  | 
||
| 
 parameter names  | 
||
| 
 parameter profiles  | 
10 points
QUESTION 8
Which of the following types of subprograms exhibit ad hoc polymorphism?
| 
 OOP languages  | 
||
| 
 generic subprograms  | 
||
| 
 overloaded subprograms  | 
||
| 
 typeless languages  | 
10 points
QUESTION 9
In which type of language is a closure never necessary?
| 
 static scoped language that does NOT support nested subprograms  | 
||
| 
 dynamically scoped language that does NOT support nested subprograms  | 
||
| 
 static scoped language that does support nested subprograms  | 
||
| 
 dynamically scoped language that does support nested subprograms  | 
10 points
QUESTION 10
In what way are coroutines the same as all other programs?
| 
 only one coroutine is actually in execution at any given time  | 
||
| 
 multiple entry points  | 
||
| 
 have control statements which suspend execution of the subprogram  | 
||
| 
 maintain their status between executions  | 
10 points
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
( 1 ) The following programming languages does NOT support parametric
JAVA
C#
( 2 ) The following programming languages does NOT support operator overloading
C
( 3 ) In a language that allows nested subprograms, the programming language has to choose a referencing environment for the executing the passed subprogram when a subprogram is passed as a parameter.
| 
 just in time binding  | 
( 4 ) Stack dynamic local variables is necessary for recursion to take place via subprogram calls.
( 5 ) variable number of parameters is NOT a concern when corresponding the actual parameters to the formal parameters.
( 6 ) pass by result is NOT an inout mode of parameter passing.
( 7 ) return type is never used to distinguish between two subprograms in any programming language.
( 8 ) overloaded subprograms exhibit ad hoc polymorphism.
( 9 ) static scoped language that does support nested subprograms.
( 10 ) multiple entry points .