1.

Which type can store a collection of objects of any type?(a) GEOMETRYCOLLECTION(b) MULTIPOINT(c) MULTILINESTRING(d) MULTIPOLYGONThe question was posed to me in final exam.Query is from Spatial Data Types topic in chapter Data Type Reference, Operators and Functions of MySQL

Answer»

The correct ANSWER is (a) GEOMETRYCOLLECTION

Explanation: ‘GEOMETRYCOLLECTION’ can store a collection of objects of any TYPE. The other collection types LIKE ‘MULTIPOINT’, ‘MULTILINESTRING’, ‘MULTIPOLYGON’ and ‘GEOMETRYCOLLECTION’ restrict collection MEMBERS to those having a PARTICULAR geometry type.



Discussion

No Comment Found

Related InterviewSolutions