

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. |
________________ criteria checks whether each state in a finite-state machine been reached and explored. |
A. | Path coverage |
B. | Loop coverage |
C. | Entry/exit coverage |
D. | State coverage |
Answer» E. | |
2. |
______________ is a method of achieving complete branch coverage without achieving complete path coverage. |
A. | Basis Path Testing |
B. | Loss Testing |
C. | Universal Testing |
D. | Random Testing |
Answer» B. Loss Testing | |
3. |
PVC stands for _____________ |
A. | Parameter Value Condition |
B. | Parameterised Values Check |
C. | Parameter Value Coverage |
D. | Path Value Check |
Answer» D. Path Value Check | |
4. |
For the following codeif (a or b) and c thenThe condition/decision criteria will be satisfied by: |
A. | a=true, b=true, c=true and a=false, b=false, c=false |
B. | and c thenThe condition/decision criteria will be satisfied by:a) a=true, b=true, c=true and a=false, b=false, c=falseb) a=false, b=true, c=true |
C. | a=true, b=false, c=true |
D. | a=true, b=true, c=false |
Answer» B. and c thenThe condition/decision criteria will be satisfied by:a) a=true, b=true, c=true and a=false, b=false, c=falseb) a=false, b=true, c=true | |
5. |
_______________IS_A_METHOD_OF_ACHIEVING_COMPLETE_BRANCH_COVERAGE_WITHOUT_ACHIEVING_COMPLETE_PATH_COVERAGE.?$ |
A. | Basis Path Testing |
B. | Loss Testing |
C. | Universal Testing |
D. | Random Testing |
Answer» B. Loss Testing | |
6. |
_________________criteria_checks_whether_each_state_in_a_finite-state_machine_been_reached_and_explored.$ |
A. | Path coverage |
B. | Loop coverage |
C. | Entry/exit coverage |
D. | State coverage |
Answer» E. | |
7. |
PVC stands for ____________? |
A. | Parameter Value Condition |
B. | Parameterised Values Check |
C. | Parameter Value Coverage |
D. | Path Value Check |
Answer» D. Path Value Check | |
8. |
______________ applications are often required to show that testing achieves 100% of some form of code coverage. |
A. | Non safe |
B. | Safety Critical |
C. | Critical |
D. | Lossless |
Answer» C. Critical | |
9. |
____________ requires that in a method taking parameters, all the common values for such parameters be considered. |
A. | Redundant Condition/decision coverage |
B. | Multiple condition coverage |
C. | Modified Condition/decision coverage |
D. | Parameter Value Coverage |
Answer» E. | |
10. |
________________ criterion requires that inside each decision, all combinations of conditions are tested. |
A. | Redundant Condition/decision coverage |
B. | Multiple condition coverage |
C. | Modified Condition/decision coverage |
D. | Lossless Condition/decision coverage |
Answer» C. Modified Condition/decision coverage | |
11. |
_____________ criterion extends the decision criteria with specifications that each condition has to affect the decision outcome independently. |
A. | Redundant Condition/decision coverage |
B. | Transferred Condition/decision coverage |
C. | Modified Condition/decision coverage |
D. | Lossless Condition/decision coverage |
Answer» D. Lossless Condition/decision coverage | |
12. |
For the following code |
A. | and c then |
B. | |
C. | a=true, b=true, c=true and a=false, b=false, c=false |
Answer» B. | |
13. |
____________ criterion requires that every point of entry and exit in the program has been invoked at least once. |
A. | Function coverage |
B. | Statement coverage |
C. | Decision coverage |
D. | Condition coverage |
Answer» D. Condition coverage | |
14. |
A combination of function coverage and branch coverage is sometimes also called _______________ |
A. | Function coverage |
B. | Statement coverage |
C. | Decision coverage |
D. | Condition coverage |
Answer» D. Condition coverage | |