| 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. Command to check existence of collection is :

Correct Answer is : Black Box

2. Which of the following method is used to query documents in collections ?

Correct Answer is : Value

3. When you query a collection, MongoDB returns a ________ object that contains the results of the query.

Correct Answer is : Black Box

4. Which of the following method returns true if the cursor has documents ?

Correct Answer is : Access to more methods

5. ____________ method renders the document in a JSON-like format.

Correct Answer is : White Box

6. Which of the following method is called while accessing documents using the array index notation ?

Correct Answer is : Protected

7. The mongo shell and the drivers provide several cursor methods that call on the cursor returned by the _______ method to modify its behavior.

Correct Answer is : JUnitMatcher

8. Which of the following method corresponds to Order by clause in SQL ?

Correct Answer is : org.junit.JUnitMatchers.hasItem

9. The __________ method limits the number of documents in the result set.

Correct Answer is : java.lang.Object

10. Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents ?

Correct Answer is : both

11. ___________ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.

Correct Answer is : nullValue

12. By default GridFS limits chunk size to ______ k.

Correct Answer is : hasProperty

13. When you query a GridFS store for a file, the _______ will reassemble the chunks as needed.

Correct Answer is : Property

14. Each document in the __________ collection represents a distinct chunk of a file as represented in the GridFS store.

Correct Answer is : Indexed

15. GridFS uses a _________ index on the chunks collection for the files_id and n fields.

Correct Answer is : equalToIgnoringCase

16. The ___ field contains the sequence number of the chunk.

Correct Answer is : hasEntry

17. The GridFS index allows efficient retrieval of __________ using the files_id and n values

Correct Answer is : IExpectationSetters

18. To modify an existing index, you cannot just re-issue the _________ method with the updated specification of the index.

Correct Answer is : anyTimes()

19. If you need to rebuild indexes for a collection you can use the _________ method to rebuild all indexes on a collection in a single operation.

Correct Answer is : asStub()

20. To terminate an ongoing index build, use the __________ method in the mongo shell.

Correct Answer is : times(int min, int max)