This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on ” Jetty as an Embedded Server”.
1. _________________ is an existing defect in the system which does not cause any failure.
a) Latent defect
b) Redundancy
c) Failure
d) Exit Cause
View Answer
Explanation: Latent Defect does not cause any failure because the exact set of conditions has never been met.
2. ________________ are set of documents, tools and other components that has to be developed and maintained in support of testing.
a) Test Functions
b) Test Deliverables
c) Test Solutions
d) Test Mechanisms
View Answer
Explanation: Test Deliverables are artefacts which are given to the stakeholders of software project during the sdlc.
3. ______________ is a technique to identify whether a set of test data is useful by intentionally introducing various code changes (bugs).
a) Unit Testing
b) Stress Testing
c) Load Testing
d) Mutation Testing
View Answer
Explanation: Mutation testing involves retesting with original test data to determine if the bugs are detected.
4. Mutation testing is a form of ______________
a) Black Box Testing
b) Redundancy
c) White Box Testing
d) Loss Testing
View Answer
Explanation: In mutation testing, the internals of the code need to be known.
5. Mutation score = _____________ / total number of mutants
a) Number of mutants killed
b) Number of mutants not killed
c) Total number of mutants
d) Total number of live mutants
View Answer
Explanation: The number of mutants killed or the number of dead mutants is used in calculating the mutation score.
5. For a mutant to be killed, the test must __________ the mutated statement.
a) Overlook
b) Ignore
c) Limit
d) Reach
View Answer
Explanation: Mutants which cannot be reached cannot be affected by the test.
6. Input data from the test must __________ the program state by causing different program states for the mutant and the original program.
a) Reach
b) Infect
c) Kill
d) Destroy
View Answer
Explanation: Infecting is the same as executing the mutant code by such test data that different states are produced.
7. The incorrect program state must __________ to the program’s output and be checked by the test.
a) Reach’
b) Infect
c) Propagate
d) Limit
View Answer
Explanation: The test data for the mutant must be noticed in the output.
8. Mutation Testing follows the ____________ model.
a) RIP
b) KISS
c) RUN
d) GOD
View Answer
Explanation: RIP stands for reach, infect and propagate.
9. The ____________ hypothesis states that most software faults are due to small syntactic errors.
a) Coupling effect
b) Competent programmer
c) Higher-order mutation
d) Equivalent mutation
View Answer
Explanation: The competent programmer hypothesis is one of the basis of mutation testing.
10. The ______________ asserts that simple faults can cascade to form other emergent faults.
a) Coupling effect
b) Competent programmer
c) Higher-order mutation
d) Equivalent mutation
View Answer
Explanation: Coupling effect is further supported by subtle and important faults being revealed by higher-order mutants.
Sanfoundry Global Education & Learning Series – JUnit.
To practice all areas of Junit, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Practice Programming MCQs
- Apply for Information Technology Internship
- Apply for JUnit Internship
- Check JUnit Books
- Check Programming Books