This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Stress Testing”.
1. All ____________ has to be completed before integration testing can be done.
a) Stress testing
b) Functional testing
c) Unit testing
d) Load testing
Explanation: Once the tests for a class are up and running, the next step is to hook up the class with other methods and services.
2. KISS is an acronym for ________________
a) Keep it simple, stupid
b) Keep it safe and sound
c) Know it soundly and systematically
d) Know information safely and securely
Explanation: The principle most finds its uses in minimalist software development concepts.
3. In software engineering, _______________ is a principle of software development, which aims at reducing repetition of information of every kind, especially useful in multi-tier architectures.
Explanation: The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system”.
4. DRY stands for ____________
a) Do right yourself
b) Don’t repeat yourself
c) Don’t ring the yarn
d) Do rule over yourself
Explanation: Application of the DRY principle successfully means a modification of any single element of a system does not need a change in other logically unrelated elements.
5. Violations of DRY are referred to as _________ solutions.
b) NOT DRY
Explanation: WET stands for “write everything twice”.
6. _______________ tests are designed early.
Explanation: Preventive testing involves not only measuring, but also improving the quality of the software.
7. ___________ tests are designed after the software has been produced.
Explanation: Reactive testing is a software testing approach done after the production of the software.
8. What does an exit criteria do?
a) Define when to remove control
b) Defines the level of a test
c) Defines which test to not test
d) Defines when a test level is completed
Explanation: An exit criteria is used to denote that a particular test level is completed.
9. The likelihood of a/an __________ event determines the level of risk.
Explanation: The adverse event and the impact of the event determines the level of risk.
10. _______________ testing is used for testing systems for which the specification takes in the form of rules or cause-effect combinations.
a) Unit Testing
b) Functional Testing
c) Load Testing
d) Decision Table Testing
Explanation: In a decision table the inputs are listed down in the form of a column, while the outputs are in the same column but below the inputs.
Sanfoundry Global Education & Learning Series – JUnit.
To practice all areas of Junit, here is complete set of 1000+ Multiple Choice Questions and Answers.