JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
JUnit interview questions part 4
JUnit interview questions part 4
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Documents enter a multi-stage __________ that transforms the documents into an aggregated result.
A. Result
B. TestCase
C. Suite
D. Test
Show Correct Answer
Correct Answer is :
Suite
2. The most basic pipeline stages provide __________ that operate like queries.
A. The test runner automatically creates a Suite
B. Compilation Error
C. Every test fails
D. Every test passes
Show Correct Answer
Correct Answer is :
The test runner automatically creates a Suite
3. Pipeline stages can use __________ for tasks such as calculating the average or concatenating a string.
A. Result
B. FolderConfigurationTest
C. FileConfigurationTest
D. Runner
Show Correct Answer
Correct Answer is :
Runner
4. Map-reduce uses custom __________ functions to perform the map and reduce operations.
A. static Test suite() method
B. Test suite() method
C. static void suite() method
D. void suite() method
Show Correct Answer
Correct Answer is :
static Test suite() method
5. Which of the following operation can be optionally used for map reduce ?
A. org.junit.runners.class
B. org.junit.Suite.class
C. org.runners.Suite.class
D. org.junit.runners.Suite.class
Show Correct Answer
Correct Answer is :
org.junit.runners.Suite.class
6. The aggregation pipeline can use ___________ to improve its performance during some of its stages.
A. @RunWith
B. @SuiteClasses
C. @Classses
D. @SuiteClass
Show Correct Answer
Correct Answer is :
@SuiteClasses
7. To handle large datasets, set _________ option to true to enable writing data to temporary files.
A. @SuiteClasses(value={Test1.class,Test2.class})
B. @SuiteClasses(value=All)
C. @SuiteClasses(Test1, Test2);
D. @SuiteClasses()
Show Correct Answer
Correct Answer is :
@SuiteClasses(value={Test1.class,Test2.class})
8. ________ deconstructs an array field from the input documents to output a document for each element.
A. Run
B. Class
C. Test
D. Build
Show Correct Answer
Correct Answer is :
Build
9. ________ applies an expression to each item in an array and returns an array with the applied results.
A. Yes
B. No
C.
D.
Show Correct Answer
Correct Answer is :
No
10. Which of the following accepts named parameters ?
A. exception
B. throws
C. expected
D. expectedException
Show Correct Answer
Correct Answer is :
expected
11. String expressions, with the exception of ________ only have a well-defined behavior for strings of ASCII characters.
A. BaseIfAttribute
B. IfBlankAttribute
C. IfTrueAttribute
D. IfSetAttribute
Show Correct Answer
Correct Answer is :
IfBlankAttribute
12. ___________ returns either the non-null result of the first expression.
A. BaseIfAttribute
B. IfBlankAttribute
C. IfTrueAttribute
D. IfSetAttribute
Show Correct Answer
Correct Answer is :
IfTrueAttribute
13. Which of the following returns the value that results from applying an expression to the last document ?
A. TokenFilter.Filter
B. BaseFilterReader
C. BaseParamFilterReader
D. ChainableReader
Show Correct Answer
Correct Answer is :
ChainableReader
14. Which of the following stages cannot appear multiple times in a pipeline ?
A. TokenFilter.Filter
B. BaseFilterReader
C. BaseParamFilterReader
D. ChainableReader
Show Correct Answer
Correct Answer is :
BaseFilterReader
15. Aggregation expressions use ______ path to access fields in the input documents.
A. TokenFilter.Filter
B. BaseFilterReader
C. BaseParamFilterReader
D. ChainableReader
Show Correct Answer
Correct Answer is :
BaseParamFilterReader
16. Which of the following statement is equivalent to “$$CURRENT.“?
A. ClassConstants
B. BaseFilterReader
C. BaseParamFilterReader
D. ChainableReader
Show Correct Answer
Correct Answer is :
ClassConstants
17. ______ binds variables for use in the specified expression.
A. ClassConstants
B. HeadFilter
C. BaseParamFilterReader
D. FixCrLfFilter
Show Correct Answer
Correct Answer is :
HeadFilter
18. In the vars assignment block, ________ refers to the value of an externally defined variable low .
A. AntXMLContext
B. DefaultExecutor
C. ProjectHelperImpl
D. ProjectHelper2
Show Correct Answer
Correct Answer is :
ProjectHelper2
19. To avoid treating numeric or boolean literals as projection flags, use the _______ expression to wrap the numeric or boolean literals.
A. SingleCheckExecutor
B. DefaultExecutor
C. ProjectHelperImpl
D. ProjectHelper2
Show Correct Answer
Correct Answer is :
SingleCheckExecutor
20. MongoDB treats the literals as projection flags, valid only in the _______ stage.
A. ExecutorService
B. ThreadPoolExecutor
C. ArrayDeque
D. SerialExecutor
Show Correct Answer
Correct Answer is :
ExecutorService
Similar Interview Questions
Search for latest jobs
Find Jobs