JUnit Questions and Answers – Jetty as an Embedded Server

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

Answer: a
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

Answer: b
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

Answer: d
Explanation: Mutation testing involves retesting with original test data to determine if the bugs are detected.
advertisement
advertisement

4. Mutation testing is a form of ______________
a) Black Box Testing
b) Redundancy
c) White Box Testing
d) Loss Testing
View Answer

Answer: c
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

Answer: a
Explanation: The number of mutants killed or the number of dead mutants is used in calculating the mutation score.
Note: Join free Sanfoundry classes at Telegram or Youtube

5. For a mutant to be killed, the test must __________ the mutated statement.
a) Overlook
b) Ignore
c) Limit
d) Reach
View Answer

Answer: d
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

Answer: b
Explanation: Infecting is the same as executing the mutant code by such test data that different states are produced.
advertisement

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

Answer: c
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

Answer: a
Explanation: RIP stands for reach, infect and propagate.
advertisement

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

Answer: b
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

Answer: a
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.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.