Docsity

Object-Oriented Databases: CSE 880 Exercise Solutions - Prof. Sakti Pramanik, Study notes of Deductive Database Systems

Toggle sidebar
bg1
CSE 880
Object-Oriented databases- Questions
YOUR NAME:
1. What is a complex value (e.g. used in O2)?
2. Suppose two objects of a class JOURNAL have different values for the
subtype DATE. Should the DATE be a complex value or an object?
Exemplify your answer.
3. Suppose two objects of a class JOURNAL should always have to be
the same value for the subtype DATE. Should the DATE be a complex
value or an object? Exemplify your answer.
4. What are object id’s?
5. Why is it necessary to have object id’s in an object-oriented dbms while
we do not have similar concepts in relational databases?
6. Why are object id’s unique globally?
7. Do the end users ( for example, application programmers writing OQL
statements) see object id’s?
8. Give an example in OQL (for the object model ODL defined by ODMG)
that uses object id’s.
9. which of the following are better for object-oriented data model than
for relational data model?
impedance mismatch with host language.
easy to use
sharing
complex objects
standards
theoretical basis
1
pf3
pf4

Partial preview of the text

Download Object-Oriented Databases: CSE 880 Exercise Solutions - Prof. Sakti Pramanik and more Study notes Deductive Database Systems in PDF only on Docsity!

CSE 880

Object-Oriented databases- Questions

YOUR NAME:

  1. What is a complex value (e.g. used in O2)?
  2. Suppose two objects of a class JOURNAL have different values for the subtype DATE. Should the DATE be a complex value or an object? Exemplify your answer.
  3. Suppose two objects of a class JOURNAL should always have to be the same value for the subtype DATE. Should the DATE be a complex value or an object? Exemplify your answer.
  4. What are object id’s?
  5. Why is it necessary to have object id’s in an object-oriented dbms while we do not have similar concepts in relational databases?
  6. Why are object id’s unique globally?
  7. Do the end users ( for example, application programmers writing OQL statements) see object id’s?
  8. Give an example in OQL (for the object model ODL defined by ODMG) that uses object id’s.
  9. which of the following are better for object-oriented data model than for relational data model? impedance mismatch with host language. easy to use sharing complex objects standards theoretical basis
  1. What are classes?
  2. What are user defined and system defined class methods?
  3. System defined class methods are defined for which class (or classes) and how do user defined classes get to access them?
  4. What are user defined class variables?
  5. Do we need an EXTENT to have user defined class variables?
  6. Give an example of a user defined class method for a tuple (structure) type class.
  7. Give an example of a class method for a set type class.
  8. Does ODL provide user defined class methods and user defined class variables?
  9. What are 1:1, 1:N, N:M relationships and how they affect in creating the relationship types?
  10. What is the semantic of inverse relationships and why it is required in ODL?
  11. What is inheritance hierarchy?
  12. What is aggregation hierarchy?
  13. If MANAGER is a subclass of EMPLOYEE, should there be two ob- jects created, one for MANAGER and the other for EMPLOYEE?
  14. Where is the information kept about the object of the class MANAGER is-a EMPLOYEE?
  15. Following is a recursively defined object-class: Class Person name: string address:string children: set(Person)
  1. An Initialization method of a super class is inherited to initialize ob- jects of it’s subclasses. Why this method needs to be tuned for the subclasses?
  2. How is this achieved in O
  3. How is this achieved in OPAL?
  4. How is this achieved in ODL?
  5. What is overloading?
  6. What is overriding?
  7. What is late binding?
  8. What is a shadow class?
  9. Why is data loding for complex objects in a database systems a bottom- up approach?