JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
JUnit interview questions part 11
JUnit interview questions part 11
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The ___________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.
A. ParseNextProperty
B. PropertyExpander
C. GetProperty
D. LocalProperties
Show Correct Answer
Correct Answer is :
LocalProperties
2. Which of the following statement is incorrect about documents in MongoDB ?
A. LocalPropertyStack
B. ResolvePropertyMap
C. NullReturn
D. ParseProperties
Show Correct Answer
Correct Answer is :
ResolvePropertyMap
3. ___________ data models allow applications to store related pieces of information in the same database record.
A. LocalPropertyStack
B. ResolvePropertyMap
C. NullReturn
D. ParseProperties
Show Correct Answer
Correct Answer is :
ParseProperties
4. Embedded data model is used when you have _________ relationships between entities
A. LocalPropertyStack
B. ResolvePropertyMap
C. NullReturn
D. ParseProperties
Show Correct Answer
Correct Answer is :
NullReturn
5. Normalized data models describe relationships using ___________ between documents.
A. EnableAttribute
B. PropertyExpander
C. GetProperty
D. LocalProperties
Show Correct Answer
Correct Answer is :
EnableAttribute
6. To interact with embedded documents, use ___________ notation to “reach into” embedded documents.
A. AttributeNamespace
B. BaseIfAttribute
C. IfBlankAttribute
D. IfSetAttribute
Show Correct Answer
Correct Answer is :
AttributeNamespace
7. MongoDB using the mmapv1 storage engine has limits on the number of __________ .
A. AttributeNamespace
B. BaseIfAttribute
C. IfBlankAttribute
D. IfSetAttribute
Show Correct Answer
Correct Answer is :
BaseIfAttribute
8. To get the current number of namespaces in the mongo shell, use :
A. org.jmock.api
B. org.jmock.lib.action
C. org.jmock.lib.script
D. org.jmock.lib.legacy
Show Correct Answer
Correct Answer is :
org.jmock.lib.legacy
9. The __________ feature of collections expires documents after a period of time.
A. ClassImposteriser
B. Imposteriser
C. ImposterisingClass
D. Imposter
Show Correct Answer
Correct Answer is :
ClassImposteriser
10. Capped collections provide __________ management of inserted documents in MongoDB.
A. canImposterise(Class> type)
B. Imposterise(Class> type)
C. imposterise(Invokable mockObject, Class
mockedType, Class>… ancilliaryTypes)
D. imposter()
Show Correct Answer
Correct Answer is :
canImposterise(Class> type)
11. _______________ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
A. canImposterise(Class> type)
B. Imposterise(Class> type)
C. imposterise(Invokable mockObject, Class
mockedType, Class>… ancilliaryTypes)
D. imposter()
Show Correct Answer
Correct Answer is :
imposterise(Invokable mockObject, Class
mockedType, Class>… ancilliaryTypes)
12. How many does collections GridFS use to store files ?
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
13. The default chunk size is changed from 256k to 255k in version :
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. Which of the collection in GridFS stores the binary chunks ?
A. org.jmock.api
B. org.jmock.lib.action
C. org.jmock.lib.script
D. org.jmock.lib.legacy
Show Correct Answer
Correct Answer is :
org.jmock.lib.script
15. ___________ is the _id is of the data type chosen for the original document in files collections.
A. ScriptedAction
B. Scripted
C. Action
D. ScriptedActionClass
Show Correct Answer
Correct Answer is :
ScriptedAction
16. Which of the following checks and repairs errors and inconsistencies in data storage ?
A. describeTo(Description description)
B. invoke(Invocation invocation)
C. perform(String script)
D. where(String name, Object value)
Show Correct Answer
Correct Answer is :
invoke(Invocation invocation)
17. The files_id field contains the _id of the chunk’s __________ document.
A. ArrayIndexOutOfBounds
B. StringIndexOutOfBounds
C. Throwable
D. NullPointer
Show Correct Answer
Correct Answer is :
Throwable
18. Which of the following field allows efficient retrieval of chunks ?
A. AssertionErrorTranslator
B. CamelCaseNamingScheme
C. CurrentStateMatcher
D. IdentityExpectationErrorTranslator
Show Correct Answer
Correct Answer is :
AssertionErrorTranslator
19. ________ store the relationships between data by including links or references from one document to another.
A. AssertionErrorTranslator
B. CamelCaseNamingScheme
C. CurrentStateMatcher
D. IdentityExpectationErrorTranslator
Show Correct Answer
Correct Answer is :
CamelCaseNamingScheme
20. In MongoDB, write operations are atomic at the __________ level.
A. AssertionErrorTranslator
B. CamelCaseNamingScheme
C. CurrentStateMatcher
D. IdentityExpectationErrorTranslator
Show Correct Answer
Correct Answer is :
IdentityExpectationErrorTranslator
Similar Interview Questions
Search for latest jobs
Find Jobs