JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
JUnit interview questions part 5
JUnit interview questions part 5
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ________ passes the first n documents unmodified to the pipeline where n is the specified limit
A. Execution()
B. execute(Runnable command)
C. scheduleNext()
D. poll()
Show Correct Answer
Correct Answer is :
execute(Runnable command)
2. _______ reorders the document stream by a specified sort key
A. Arithmetic
B. ArrayIndexOutOfBounds
C. StringIndexOutOfBounds
D. RejectedExecutionException
Show Correct Answer
Correct Answer is :
RejectedExecutionException
3. Which of the following operator incorporates the functionality of $match, $sort, and $limit for geospatial data?
A. Arithmetic
B. ArrayIndexOutOfBounds
C. StringIndexOutOfBounds
D. NullPointerException
Show Correct Answer
Correct Answer is :
NullPointerException
4. _____ Writes the resulting documents of the aggregation pipeline to a collection.
A. runUntilIdle
B. runPendingCommands
C. execute
D. isIdle
Show Correct Answer
Correct Answer is :
runPendingCommands
5. Aggregation pipeline was introduced in MongoDB version ______
A. runUntilIdle
B. runPendingCommands
C. execute
D. isIdle
Show Correct Answer
Correct Answer is :
runUntilIdle
6. ________ calculates aggregate values for the data in a collection.
A. runUntilIdle
B. runPendingCommands
C. execute
D. isIdle
Show Correct Answer
Correct Answer is :
isIdle
7. Cursors returned from aggregation only supports cursor methods like :
A. runUntilIdle
B. runPendingCommands
C. tick
D. isIdle
Show Correct Answer
Correct Answer is :
tick
8. ______ can be used to iterate the cursor of document results returned by db.collection.find().
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. Syntax for specifying an initial batch size for the cursor is :
A. awaitTermination
B. runPendingCommands
C. tick
D. isIdle
Show Correct Answer
Correct Answer is :
awaitTermination
10. Query shape consists of a combination of query, sort, and _________ specifications.
A. org.jmock
B. org.jmock.api
C. org.jmock.lib
D. org.jmock.integration.junit3
Show Correct Answer
Correct Answer is :
org.jmock.lib
11. Which of the following method is overrided by Index filters ?
A. org.jmock
B. org.jmock.api
C. org.jmock.lib
D. org.jmock.integration.junit3
Show Correct Answer
Correct Answer is :
org.jmock.integration.junit3
12. Indexes are typically available in ______ or located sequentially on disk.
A. org.jmock
B. org.jmock.syntax
C. org.jmock.lib
D. org.jmock.integration.junit3
Show Correct Answer
Correct Answer is :
org.jmock.syntax
13. ___________ is used to determine whether a query is a covered query .
A. org.jmock.concurrent
B. org.jmock.syntax
C. org.jmock.lib
D. org.jmock.integration.junit3
Show Correct Answer
Correct Answer is :
org.jmock.concurrent
14. The ________ message is used to update a document in a collection.
A. Blitzer
B. DeterministicExecutor
C. DeterministicScheduler
D. Synchroniser
Show Correct Answer
Correct Answer is :
Blitzer
15. _____ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.
A. Blitzer
B. DeterministicExecutor
C. DeterministicScheduler
D. Synchroniser
Show Correct Answer
Correct Answer is :
DeterministicExecutor
16. The update() method uses the _______ command, which uses the default write concern.
A. UnsupportedSynchronousOperationException
B. ArrayIndexOutOfBounds
C. StringIndexoutOfBounds
D. Arithmetic
Show Correct Answer
Correct Answer is :
UnsupportedSynchronousOperationException
17. _________ is used to view statistics about the query plan for a given query.
A. Blitzer
B. DeterministicExecutor
C. DeterministicScheduler
D. Synchroniser
Show Correct Answer
Correct Answer is :
Blitzer
18. An ________ query plan has returned a threshold number of matching results
A. Blitzer
B. DeterministicExecutor
C. DeterministicScheduler
D. Synchroniser
Show Correct Answer
Correct Answer is :
Synchroniser
19. A query _______ consists of a combination of query, sort, and projection specifications.
A. Executor
B. Execution
C. Runner
D. RunWith
Show Correct Answer
Correct Answer is :
Executor
20. The auditing facility can write audit events to the console, the _________, a JSON file, or a BSON file.
A. cobertura-report.bat
B. cobertura-instrument.bat
C. cobertura-check.bat
D. cobertura-merge.bat
Show Correct Answer
Correct Answer is :
cobertura-report.bat
Similar Interview Questions
Search for latest jobs
Find Jobs