JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
JUnit interview questions part 6
JUnit interview questions part 6
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. _________ contains the local ip address and the port number of the running instance.
A. datafile
B. basedir
C. encoding
D. format
Show Correct Answer
Correct Answer is :
format
2. Enabling _____________ degrades performance more than logging only the authorization failures.
A. datafile
B. basedir
C. encoding
D. format
Show Correct Answer
Correct Answer is :
encoding
3. Use the ____________ option to enable auditing and specify where to output the audit events.
A. Data size
B. Lines of code
C. Cyclomatic code complexity
D. Mutant score
Show Correct Answer
Correct Answer is :
Cyclomatic code complexity
4. The audit file rotates at the same time as the ________ log file.
A. html
B. jar
C. java
D. dat
Show Correct Answer
Correct Answer is :
html
5. To view the contents of the file, pass the file to the MongoDB utility ___________
A. cobertura-report.bat
B. cobertura-instrument.bat
C. cobertura-check.bat
D. cobertura-merge.bat
Show Correct Answer
Correct Answer is :
cobertura-check.bat
6. The _____________ option accepts either full path name or relative path name.
A. Before
B. After
C. Along with
D. Before and after
Show Correct Answer
Correct Answer is :
After
7. The _________ message limit can result in the truncation of the audit messages.
A. datafile
B. branch
C. line
D. regex
Show Correct Answer
Correct Answer is :
branch
8. Which of the following method is used for managing user ?
A. datafile
B. branch
C. line
D. regex
Show Correct Answer
Correct Answer is :
line
9. MongoDB stores user information in the _________ collection.
A. datafile
B. packagebranch
C. line
D. regex
Show Correct Answer
Correct Answer is :
packagebranch
10. Which of the follwing authentication method is used by default by MongoDB ?
A. Unit Testing
B. Integration Testing
C. Functional Testing
D. System Testing
Show Correct Answer
Correct Answer is :
Unit Testing
11. _________ is a challenge-response mechanism that authenticates users through passwords.
A. output, input
B. input, output
C. variable, literal
D. program, variable
Show Correct Answer
Correct Answer is :
input, output
12. MongoDB supports _________ certificate authentication for use with a secure TLS/SSL connection.
A. junit.jar
B. hamcrest-core.jar
C. junit.jar and hamcrest-core.jar
D. java-junit.jar
Show Correct Answer
Correct Answer is :
junit.jar and hamcrest-core.jar
13. MongoDB __________ supports authentication using a Kerberos service.
A. Objects that specify when to run a test
B. Fixed state of a set of objects used as a baseline for running tests
C. Bundle of few test cases run together
D. Date objects
Show Correct Answer
Correct Answer is :
Fixed state of a set of objects used as a baseline for running tests
14. MongoDB Enterprise supports proxy authentication through :
A. String
B. int
C. Object
D. void
Show Correct Answer
Correct Answer is :
void
15. Every MongoDB mongod and mongos instance (or mongod.exe or mongos.exe on Windows) must have an associated :
A. .junit
B. .test
C. .java
D. .unit
Show Correct Answer
Correct Answer is :
.java
16. MongoDB employs _________ to govern access to a MongoDB system.
A. Checks that “message” is in both A and B
B. Checks that “message” is in A but not B
C. Checks that “message” is in B but not A
D. Asserts the equality of the A and B arrays
Show Correct Answer
Correct Answer is :
Asserts the equality of the A and B arrays
17. __________ consists of a specified resource and the actions permitted on the resource.
A. @junit
B. @testcase
C. @org.Test
D. @org.junit.Test
Show Correct Answer
Correct Answer is :
@org.junit.Test
18. _________ provides all the privileges of the read role.
A. Used to execute the test file
B. Defines the test file
C. Used to write test cases
D. Used to define annotations
Show Correct Answer
Correct Answer is :
Used to execute the test file
19. MongoDB stores user credentials in the protected admin.system._________
A. public methods
B. private methods
C. protected methods
D. methods with void return type
Show Correct Answer
Correct Answer is :
private methods
20. You must have the _______ action on a database to create a new user on that database.
A. Functional Tests
B. Unit Tests
C. Integration Tests
D. Stress Tests
Show Correct Answer
Correct Answer is :
Unit Tests
Similar Interview Questions
Search for latest jobs
Find Jobs