CSE2305 - Object-Oriented Software Engineering
Self Assesment Questions
For each question choose the single response which best answers the question, or which completes the statement most accurately.
Question 40: | What is "genericity"? |
When data structures and functions are specified without the details of the types on which they operate. |
When data structures and functions are specified without details of their name. |
When data structures and functions are specified in separate header (".h") and source (".c") files |
Saving money by not using a "name-brand" compiler. |
None of the above |
Question 41: | How does genericity relate to abstraction? |
Genericity is the abstraction of structure |
Genericity is the abstraction of functionality |
Genericity is the abstraction of naming |
Genericity is the abstraction of type information |
Genericity is the abstraction of encapsulation |
Question 42: | Why isn't it always sufficient just to provide a generic version of a particular function? |
Because its semantics may not be correct when specific types are inserted |
Because its syntax may not be valid when specific types are inserted |
Because its behaviour may not be desired when specific types are inserted |
All of the above |
None of the above |
Question 43: | What is "persistence"? |
A software infastructure that keeps calling a function or operation multiple times until it succeeds (i.e. is persistent). |
A function or operation that is always available in memory (it persists). |
An object or set of objects that maintain their state, identity and behaviour over multiple instantiations of a program or address space. |
A fancy name for saving and loading. |
A class that stays around (persists) in memory or on disk even after the program has terminated. |
Question 44: | How is the persistence mechanism implemented in C++? |
Using streaming |
Using "save" and "load" virtual functions in the abstract base class. |
In the Threads class standard library |
In the Persistent class of the standard library |
Persistence is not directly supported in C++ |
Question 45: | What is spatial persistence? |
Where objects exist in multiple address spaces of a distributed application. |
Where classes exist in multiple address spaces of a distributed application. |
Where classes exist in multiple threads of an application |
Where objects are partitioned according to address space |
When different machines share the same data accross a network |
Question 46: | An OO persistence mechanism stores the following information: |
Class type and state |
Object type and state |
Object type, state and behaviour |
File name and type |
Object names and their public data |
Last updated: July 26, 2005