MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Spring
1000 Junit
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Q.1
“cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage.
a) Before and after
b) Along with
c) After
d) Before
Q.2
Which of the following is the basic unit of development in Scrum?
a) Slice
b) Sprint
c) Cobertura
d) Manifesto
Q.3
Which of the following translates ExpectationErrors into JUnit AssertionFailedErrors?
a) VerifyingTestCase
b) MockObjectTestCase
c) JUnit3Mockery
d) JUnit3ErrorTranslator
Q.4
Which of the following is a JUnit Rule that manages JMock expectations and allowances?
a) JunitRule
b) JunitRuleMockery
c) JunitMockery
d) JmockRuleMockery
Q.5
What are fixtures in JUnit?
a) Fixed state of a set of objects used as a baseline for running tests
b) Date objects
c) Objects that specify when to run a test
d) Bundle of few test cases run together
Q.6
What is the full form of JJ in “JJ-path”?
a) Jump-to-Jump
b) Java-JUnit
c) Jump-in-JUnit
d) Just Jump
Q.7
Which of the following is a Java HTTP (Web) server and Java Servlet container?
a) Ant
b) Maven
c) Zimbra
d) Jetty
Q.8
To use JUnit in a project we need to add which JAR files on our test classpath?
a) java-junit.jar
b) junit.jar and hamcrest-core.jar
c) hamcrest-core.jar
d) junit.jar
Q.9
What type of object is returned on completion of a test?
a) org.junit.runner.Object
b) org.junit.runner.Outcome
c) org.junit.runner.Complete
d) org.junit.runner.Result
Q.10
Mocks are Trojan horses because they replace real ___________ from the inside, without the calling classes being aware of it.
a) Objects
b) Variables
c) Classes
d) Methods
Q.11
Stubs usually provide high _____________ in the tested system.
a) Mocking
b) Security
c) Confidence
d) Modularity
Q.12
In which of the following test, Monkey Testing is also included in Android Studio as part of the standard testing tools.
a) Integration Testing
b) Functional Testing
c) Stress Testing
d) Unit Testing
Q.13
For a Suite class, the @RunWith annotation has the value of which class?
d) org.junit.Suite.cases
a) org.runners.Suite.class
b) org.junit.runners.Suite.class
c) org.junit.runners.result
Q.14
Which testing is used for testing systems for which the specification takes in the form of rules or cause-effect combinations?
a) Load Testing
b) Decision Table Testing
c) Unit Testing
d) Functional Testing
Q.15
Which of the following rules helps to set up custom JUnit rules?
a) TestRule Interface
b) CreateRule Interface
c) RuleCreate Interface
d) RuleInitialize Interface
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page