Unlike expressions, statements always have the corresponding value. - Answers False
Imperative programing is programming my means of side effects. - Answers True
The order in which the operands are evaluated has no effect on the result provided by the operator
using the operands. - Answers False
Temporaries are used for debugging information and slow down the code execution. - Answers False
The maximum length of the static chain in C-like languages can be very large. - Answers False
A programming language that only uses call by value is: - Answers C
At any given point in a program's execution, the set of active bindings is called the current referencing
environment. - Answers True
In modern programming languages exception handlers are statically bound. - Answers True
Does Java provide enumeration-controlled loops? - Answers False
Recursion can be implemented using iteration. - Answers True
A programming language must provide a special syntax for recursive functions. - Answers False
What is a characteristic of recursive functions implementation? - Answers Is equally as powerful as
iteration
Short-circuit evaluation can be compared to: - Answers Lazy Evaluation
Java is a static typing language. - Answers False
What programing langue has all exceptions defined by a programmer? - Answers C++
A cactus stack is used to provide support for: - Answers Declaring more than one coroutine in the
same nonglobal scope
Coroutines are essentially parallel threads of execution. - Answers False
Events are often handled by a separate thread of control. - Answers True
Data abstraction is used for representation of information. - Answers True
What is the Java equivalent of C++ friends? - Answers package
The average subroutine stack depth tends to be smaller in object oriented programming languages. -
Answers False
What is not a key factor in object oriented programming? - Answers Garbage Collection
C++ was designed from the outset as an object-oriented programming language. - Answers False
Object-oriented languages always provide destructor operators. - Answers False
Java finalize method is invoked as soon a there are references to the corresponding object. - Answers
False
The default method binding in C++ is: - Answers Only Static
Multiple inheritance means that: - Answers A Class has more than one parent class
Pure object-oriented programming languages (such as Smalltalk) are very efficient and produce fast
code. - Answers False
Most programming languages use the row-major order to store multi-dimensional arrays. - Answers
True
For parameter passing of user-defined class types Java uses - Answers Call-by-sharing
Support for inheritances eliminates the need for generics. - Answers False
Referential transparency means that: - Answers The execution of a function always produces the
same result, given the same parameters.
Iteration is a principle mechanism in: - Answers Imperative programming languages
A closure includes only a referencing environment - Answers False
The subroutine is a principal mechanism for control abstraction - Answers True
Lazy evaluation means - Answers No subexpression is evaluated until its value is required.
Pointers are just addresses of memory locations - Answers False
In majority of imperative programming languages subroutines are first class values. - Answers False
Functional languages implementations use garbage collection. - Answers True
What is an example of a feature that is not functional (violates the referential transparency principle).
- Answers User Input
Scheme is a homo-iconic programming language. - Answers True
A functional language that provides object-oriented features is: - Answers OCaml
The basic data structure in Scheme is: - Answers List
The applicative order is usually faster than the normal order. - Answers True
Lazy evaluation is similar to the applicative order - Answers False