JUnit interview questions part 16

JUnit interview questions part 16

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

Total Questions: 20

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

Correct Answer is : Parameterised

2. Which of the following indexes cannot be multikey ?

Correct Answer is : Parameterised

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

Correct Answer is : Test Ran with Failure

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

Correct Answer is : Test Ran with Failure

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

Correct Answer is : Throws an assertion error unconditionally

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

Correct Answer is : Throws an assertion error unconditionally

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

Correct Answer is : @SuiteClasses

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

Correct Answer is : @SuiteClasses

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

Correct Answer is : After each test case has run

10. Inclusion queries use the _________ operator in MongoDB.

Correct Answer is : After each test case has run

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

Correct Answer is : Asserts that the condition A is true

12. 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 : Asserts that the condition A is true

13. 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 : Annotate the method with @Before

14. $geoWithin replaces _______ in MongoDB 2.4.

Correct Answer is : Annotate the method with @Before

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

Correct Answer is : String getName()

16. MongoDB indexes use a _______ data structure.

Correct Answer is : String getName()

17. MongoDB supports the creation of user-defined ascending/descending indexes on a ______ field of a document.

Correct Answer is : perform(String script)

18. The ______ index is unique and prevents clients from inserting two documents with the same value for the _id field.

Correct Answer is : where(String name, Object value)

19. MongoDB also supports user-defined indexes on multiple fields called :

Correct Answer is : org.jmock.lib.action

20. MongoDB uses ______ indexes to index the content stored in arrays.

Correct Answer is : ActionSequence

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon