| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Before version _______ capped collections did not have an _id field.

Correct Answer is : 2.2

2. Point out the wrong statement :

Correct Answer is : Indexes on embedded fields allow you to use a “dot notation,” to introspect into embedded documents

3. For a _____ multikey index, each indexed document can have at most one indexed field whose value is an array.

Correct Answer is : compound

4. Which of the following indexes cannot be multikey ?

Correct Answer is : Hashed

5. Point out the wrong statement :

Correct Answer is : You will receive a warning if you attempt to create a compound index that includes a hashed index

6. To calculate geometry over an Earth-like sphere, store your location data on a spherical surface and use _____ index.

Correct Answer is : 2dsphere

7. ______ indexes can be constructed over arrays that hold both scalar values (e.g. strings, numbers) and nested documents.

Correct Answer is : Multikey

8. The coordinate reference system for GeoJSON uses the _____ datum.

Correct Answer is : WGS84

9. Which of the following is used to calculate distances on a Euclidean plane ?

Correct Answer is : 2d

10. Queries on ________ objects always calculate on a sphere.

Correct Answer is : GeoJSON

11. Which of the following GeoJSON object is not supported in MongoDB ?

Correct Answer is : None of the mentioned

12. Point out the wrong statement :

Correct Answer is : MongoDB require an index for inclusion queries; however, such indexes will improve query performance

13. MongoDB supports spherical surface calculations on legacy coordinate pairs using a _______ index

Correct Answer is : 2dsphere

14. Inclusion queries use the _________ operator in MongoDB.

Correct Answer is : $geoWithin

15. Point out the correct statement :

Correct Answer is : When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers

16. The $geoWithin operator uses the _______ operator to specify the GeoJSON object.

Correct Answer is : $geometry

17. If the specified polygon is _______ than a single hemisphere, the behavior of $geoWithin with the MongoDB CRS is the same as with the default CRS

Correct Answer is : smaller

18. To query with a single-ringed GeoJSON polygon whose area is greater than a single hemisphere, the $geometry expression must specify the custom MongoDB ________

Correct Answer is : CRS

19. $geoWithin replaces _______ in MongoDB 2.4.

Correct Answer is : $within

20. When used with the _____ operator, $geoWithin returns documents based on grid coordinates and does not query for GeoJSON shapes.

Correct Answer is : $box