Principles of Programming Languages Mid - II, April - 2012
1.An ___________ sub-program is one whose computation can be done on data of different types with different calls.
-
Generic
-
Static
-
Overloaded
-
Dynamic
-
Answer: A
2._________________ does not overloaded sub-programs built in and users cannot write their own overloaded sub-programs
-
C
-
Java
-
Ada
-
C++
-
Answer: A
3.Scope of static variables is _____________
-
With in all blocks
-
Through out the program
-
Local to the block in which the variable is defined
-
With in two corresponding blocks
-
Answer: C
4.The encapsulation device in C is
-
Iteration
-
Loop
-
File
-
Selection
-
Answer: C
5.Ada 95 classes area new category of types called.
-
Tagged types
-
Constructor types
-
Destructor types
-
Package types
-
Answer: D
6._____________ are computer systems designed to emulate human expertise in some particular domain.
-
Expert systems
-
Database systems
-
File systems
-
Embedded systems
-
Answer: A
7.Backing up in the goal to the reconsideration of a previously proven sub-goal is called
-
Backtracking
-
Tracking
-
Retracting
-
Recursion
-
Answer: A
8.All java exception are objects of classes that are descendants of the ______ class
-
Throwable
-
Throws
-
Throw
-
Thrown
-
Answer: A
9.CDR(CDR(A,B,C))?
-
A
-
B
-
C
-
AB
-
Answer: C
10.A _____________ expression specifies the parameter and the mapping of a function.
-
Beta
-
Gamma
-
Lambda
-
Sigma
-
Answer: C
11.Control always returns to the _________ when the called sub-program’s execution terminates.
Answer: caller
12.______________ link is a pointer to the top of the activation record instance.
Answer: dynamic
13.Monitors are ____________ entities.
Answer: passive
14.Java threads are scheduled by __________.
Answer: JVM
15.Top down resolution is also called as _____________.
Answer: Backtracking
16.User defined exceptions are usually sub-classes of _____________ class.
Answer: Exception
17.In schema ____________ function is used to determine the value of a given parameter.
Answer: CO_D
18.Functional programs can be executed by first translating them into ___________.
Answer: Graphs
19.In imperative language an expression is evaluated and the result is stored in ______________.
Answer: Memory location
20.Derived classes in Ada 95 are based on ___________ types.
Answer: Tagged