Explanation:In previous versions, toString() returns the hexadecimal string representation, which as of version 2.2 can be retrieved by the str property. 10.Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument
A. x = ObjectIdAdd()
B. x = addObjectId()
C. x = ObjectId()
D. None of the mentioned
Answer:A
Explanation:In previous versions, toString() returns the hexadecimal string representation, which as of version 2.2 can be retrieved by the str property. 10.Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument
A. x = ObjectIdAdd() B. x = addObjectId() C. x = ObjectId() D. None of the mentioned
Explanation: ObjectId() constructor is used with no argument for new object. Sanfoundry Global Education & Learning Series – MongoDB.