Object Oriented Database(Database ) Questions and Answers

Question 1. An extent is which of the following?
  1.    A keyword that indicates that the subclass inherits from a superclass
  2.    A keyword that indicates that the superclass inherits from a subclass
  3.    The set of all instances of a class within a database
  4.    Only one instance of a class within a database
Explanation:-
Answer: Option C. -> The set of all instances of a class within a database

Question 2. ODL supports which of the following types of association relationships?
  1.    Unary
  2.    Unary and Binary
  3.    Unary and Binary and Ternary
  4.    Unary and Binary and Ternary and higher
Explanation:-
Answer: Option B. -> Unary and Binary

Question 3. Identify the class name for the following code: ABC123 course();
  1.    ABC123
  2.    course
  3.    course()
  4.    All of the above
Explanation:-
Answer: Option A. -> ABC123

Question 4. Using ODL, you can define which of the following?
  1.    Attribute
  2.    Structure
  3.    Operation
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above

Question 5. The keyword "inverse" is used in which of the following?
  1.    Class
  2.    Attribute
  3.    Relationship
  4.    All of the above
Explanation:-
Answer: Option C. -> Relationship

Question 6. Which of the following is true concerning the following statement: class Manager extends Employee
  1.    Manager is a concrete class and a superclass.
  2.    Manager is a concrete class and a subclass.
  3.    Manager is an abstract class and a superclass.
  4.    Manager is an abstract class and a subclass.
Explanation:-
Answer: Option B. -> Manager is a concrete class and a subclass.

Question 7. Which of the following is an ordered collection of elements of the same type?
  1.    Set
  2.    Bag
  3.    List
  4.    Dictionary
Explanation:-
Answer: Option C. -> List

Question 8. The Object Query Language is which of the following?
  1.    Similar to SQL and uses a select-from-where structure
  2.    Similar to SQL and uses a select-where structure
  3.    Similar to SQL and uses a from-where structure
  4.    Not similar to SQL
Explanation:-
Answer: Option A. -> Similar to SQL and uses a select-from-where structure

Question 9. A relationship should be specified how in the ODL?
  1.    One direction starting with the first class
  2.    One direction starting with the second class
  3.    Neither direction
  4.    Both directions
Explanation:-
Answer: Option D. -> Both directions

Question 10. Using OQL, you may do which of the following?
  1.    Return an entire collection of elements including duplicates.
  2.    Return a collection of elements without duplicates.
  3.    Return a specific subset of elements using a given criteria.
  4.    All of the above.
Explanation:-
Answer: Option D. -> All of the above.