Machine-translated by Google. Questions are authored in English.
Top

Discussion

The basic operations on sets :

  • A.Push and pop
  • B.Insert and delete
  • C.Union, intersection, difference and subset
  • D.Traversing and merging

Answer: C

The basic operations on sets are union, intersection, difference and subset.

A set abstract data type is defined by the operations of set theory: union (elements in either set), intersection (elements in both), difference (elements in one but not the other) and the subset test, along with membership.

Push and pop are stack operations. Insert and delete belong to many structures (lists, trees) and do not define a set. Traversing and merging are general operations on lists and files, not the defining operations of sets.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.