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. |
The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each package during Cobetura coverage checking. |
| A. | datafile |
| B. | packagebranch |
| C. | line |
| D. | regex |
| Answer» C. line | |
| 2. |
The ___________ parameter specifies the minimum acceptable line coverage rate needed by each class during Cobetura coverage checking. |
| A. | datafile |
| B. | branch |
| C. | line |
| D. | regex |
| Answer» D. regex | |
| 3. |
The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each class during Cobetura coverage checking. |
| A. | datafile |
| B. | branch |
| C. | line |
| D. | regex |
| Answer» C. line | |
| 4. |
“cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage. |
| A. | Before |
| B. | After |
| C. | Along with |
| D. | Before and after |
| Answer» C. Along with | |
| 5. |
THE_____________PARAMETER_SPECIFIES_THE_MINIMUM_ACCEPTABLE_LINE_COVERAGE_RATE_NEEDED_BY_EACH_CLASS_DURING_COBETURA_COVERAGE_CHECKING.?$ |
| A. | datafile |
| B. | branch |
| C. | line |
| D. | regex |
| Answer» D. regex | |
| 6. |
The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each package during Cobetura coverage checking.$ |
| A. | datafile |
| B. | packagebranch |
| C. | line |
| D. | regex |
| Answer» C. line | |
| 7. |
The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each class during Cobetura coverage checking? |
| A. | datafile |
| B. | branch |
| C. | line |
| D. | regex |
| Answer» C. line | |
| 8. |
“cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage.$ |
| A. | Before |
| B. | After |
| C. | Along with |
| D. | Before and after |
| Answer» C. Along with | |
| 9. |
The Cobertura command to run while checking coverage is ____________ |
| A. | cobertura-report.bat |
| B. | cobertura-instrument.bat |
| C. | cobertura-check.bat |
| D. | cobertura-merge.bat |
| Answer» D. cobertura-merge.bat | |
| 10. |
The default value of the format parameter is ____________ |
| A. | html |
| B. | jar |
| C. | java |
| D. | dat |
| Answer» B. jar | |
| 11. |
The source code directories are used to calculate the ____________ of each class. |
| A. | Data size |
| B. | Lines of code |
| C. | Cyclomatic code complexity |
| D. | Mutant score |
| Answer» D. Mutant score | |
| 12. |
____________ parameter specifies the encoding used to read the source. |
| A. | datafile |
| B. | basedir |
| C. | encoding |
| D. | format |
| Answer» D. format | |
| 13. |
The ____________ parameter is used to specify the type of report. |
| A. | datafile |
| B. | basedir |
| C. | encoding |
| D. | format |
| Answer» E. | |
| 14. |
The Cobertura command to run while reporting is ____________ |
| A. | cobertura-report.bat |
| B. | cobertura-instrument.bat |
| C. | cobertura-check.bat |
| D. | cobertura-merge.bat |
| Answer» B. cobertura-instrument.bat | |