

MCQOPTIONS
Saved Bookmarks
This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
1. |
White box unit tests can be written against ____________ package-private, and public methods. |
A. | Static |
B. | Private |
C. | Protected |
D. | Void |
Answer» D. Void | |
2. |
____________ tests can control both the inputs to each method and the behaviour of secondary objects. |
A. | White Box |
B. | Unit |
C. | Black Box |
D. | Loss |
Answer» B. Unit | |
3. |
Higher test coverage is achieved by white box tests because of ____________ |
A. | Access to more methods |
B. | Better documentation |
C. | Faster tests |
D. | More accepted tests |
Answer» B. Better documentation | |
4. |
In black box testing, all that is needed to know in order to test the system properly is the system’s ______________ |
A. | Functional specification |
B. | Modularity |
C. | Redundancy |
D. | Class definition |
Answer» B. Modularity | |
5. |
_____________TESTS_CAN_CONTROL_BOTH_THE_INPUTS_TO_EACH_METHOD_AND_THE_BEHAVIOUR_OF_SECONDARY_OBJECTS.?$ |
A. | White Box |
B. | Unit |
C. | Black Box |
D. | Loss |
Answer» B. Unit | |
6. |
White_box_unit_tests_can_be_written_against______________package-private,_and_public_methods.$ |
A. | Static |
B. | Private |
C. | Protected |
D. | Void |
Answer» D. Void | |
7. |
Higher test coverage is achieved by white box tests because of ___________? |
A. | Access to more methods |
B. | Better documentation |
C. | Faster tests |
D. | More accepted tests |
Answer» B. Better documentation | |
8. |
Using ____________ testing, tests can be created that cover the public API of an application. |
A. | White Box |
B. | Unit |
C. | Black Box |
D. | Loss |
Answer» D. Loss | |
9. |
Black box tests can bring more ________ than white box tests. |
A. | Value |
B. | Coverage |
C. | Mechanism |
D. | Acceptance |
Answer» B. Coverage | |
10. |
________ tests are more difficult to write and run. |
A. | White Box |
B. | Unit |
C. | Black Box |
D. | Loss |
Answer» D. Loss | |
11. |
White box testing provides better test _________ than black box testing. |
A. | Result |
B. | Coverage |
C. | Mechanism |
D. | Acceptance |
Answer» C. Mechanism | |
12. |
White box testing is also known as ______________ |
A. | Black box testing |
B. | Sand box testing |
C. | Closed testing |
D. | Glass box testing |
Answer» E. | |
13. |
In black box testing, all that is needed to know in order to test the system properly is the system’s ______________$ |
A. | Functional specification |
B. | Modularity |
C. | Redundancy |
D. | Class definition |
Answer» B. Modularity | |
14. |
The __________ test relies exclusively on the external system interface to verify its correctness. |
A. | White Box |
B. | Unit |
C. | Black Box |
D. | Loss |
Answer» D. Loss | |