Database - Object-Oriented Database - Discussion

Discussion Forum : Object-Oriented Database - General Questions (Q.No. 10)
10.
Which of the following is an unordered collection of elements that may contain duplicates?
Set
Bag
List
Dictionary
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Dipali said:   9 years ago
Thank you @Ash.

Ash said:   1 decade ago
The Object Model supports literal types such as atomic literals, collection literals and structured literals.

Atomic Literals: string, char, Boolean, float, short (short integer) and long (long integer).

Collection Literals: is a collection of elements. This is supported by ODMG (Object Data Management Group) object model. The literal types are:

Set - is an unordered collection of elements of the same type without any duplicates.
Bag - is an unordered collection of elements that may contain duplicates.
List - is an ordered collection of elements of the same type.
Array - dynamically sized ordered collection of elements.
Dictionary - unordered sequence of key-value pairs without any duplicates.

Structured Literal : also known as structure, consists of a fixed number of named elements, each of which could be of literal or object type. Eg : Date, Interval, Time, Time stamp.

It supports used defined structures also.

Bindu said:   1 decade ago
What is bag?

Post your comments here:

Your comments will be displayed after verification.