Object-Oriented Database – General Questions

11. Which of the following is true concerning the following statement: class Manager extends Employee

A. Manager is a concrete class and a superclass.
B. Manager is a concrete class and a subclass.
C. Manager is an abstract class and a superclass.
D. Manager is an abstract class and a subclass.

Correct Answer:  B. Manager is a concrete class and a subclass.

12. Which of the following is an ordered collection of elements of the same type?

A. Set
B. Bag
C. List
D. Dictionary

Correct Answer:  C. List

13. A relationship should be specified how in the ODL?

A. One direction starting with the first class
B. One direction starting with the second class
C. Neither direction.
D. Both directions.

Correct Answer:  D. Both directions.

14. Using OQL, you may do which of the following?

A. Return an entire collection of elements including duplicates.
B. Return a collection of elements without duplicates.
C. Return a specific subset of elements using a given criteria.
D. All of the above.

Correct Answer:  D. All of the above.

15. The Object Query Language is which of the following”?

A. Similar to SQL and uses a select-from-where structure
B. Similar to SQL and uses a select-where structure
C. Similar to SQL and uses a from-where structure
D. Not similar to SQL

Correct Answer:  A. Similar to SQL and uses a select-from-where structure

Leave A Comment?

10 − three =