logo

CuriousTab

CuriousTab

Object-Oriented Database problems


  • 1. The keyword "inverse" is used in which of the following?

  • Options
  • A. Class
  • B. Attribute
  • C. Relationship
  • D. All of the above.
  • Discuss
  • 2. The reserved word enum is used for which of the following?

  • Options
  • A. To define a range for an attribute.
  • B. To define a range for a class.
  • C. To define a range for a relationship.
  • D. All of the above.
  • Discuss
  • 3. Which of the following is an unordered collection of elements that may contain duplicates?

  • Options
  • A. Set
  • B. Bag
  • C. List
  • D. Dictionary
  • Discuss
  • 4. A relationship should be specified how in the ODL?

  • Options
  • A. One direction starting with the first class
  • B. One direction starting with the second class
  • C. Neither direction.
  • D. Both directions.
  • Discuss
  • 5. Which of the following is an ordered collection of elements of the same type?

  • Options
  • A. Set
  • B. Bag
  • C. List
  • D. Dictionary
  • Discuss
  • 6. Using OQL, you may do which of the following?

  • Options
  • 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.
  • Discuss
  • 7. The Object Query Language is which of the following"?

  • Options
  • 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
  • Discuss
  • 8. An atomic literal is which of the following?

  • Options
  • A. Strings
  • B. Boolean
  • C. Long
  • D. All of the above.
  • Discuss
  • 9. The object definition language (ODL) is which of the following?

  • Options
  • A. Used to develop logical schemas
  • B. A data definition language for OODB
  • C. A method to implement a logical schema
  • D. All of the above.
  • Discuss
  • 10. Identify the class name for the following code: ABC123 course();

  • Options
  • A. ABC123
  • B. course
  • C. course()
  • D. All of the above.
  • Discuss

First 2