Maven MCQ Quiz Hub

Maven Mcq Set 7

Choose a topic to test your knowledge and improve your Maven skills

1. For the following function, int example (int x, int y) { int z = 0; if ((x>0) && (y>0)) { z = x; } return z; } Which function call ensures condition coverage for this function?




2. A combination of function coverage and branch coverage is sometimes also called ______




3. ______ criterion requires that every point of entry and exit in the program has been invoked at least once.




4. For the following code if (a or b) and c then The condition/decision criteria will be satisfied by:




5. _____ criterion extends the decision criteria with specifications that each condition has to affect the decision outcome independently.




6. _________ criterion requires that inside each decision, all combinations of conditions are tested.




7. _______ requires that in a method taking parameters, all the common values for such parameters be considered.




8. ________ applications are often required to show that testing achieves 100% of some form of code coverage.




9. PVC stands for ______




10. _______ is a method of achieving complete branch coverage without achieving complete path coverage.




11. ______ criteria checks whether each state in a finite-state machine been reached and explored.




12. ______ is a software analysis method used to identify structural units in code under test.




13. LCSAJ stands for ________




14. The JJ in JJ-path stands for ______




15. In a narrower sense, LCSAJ is also called ______




16. _______ is the most common and least efficient debugging technique.




17. An effective method for locating errors in small programs is to ___________ the incorrect results through the logic of the program until the point where the logic went astray is found.




18. ______ involves the use of induction or deduction and introduces the concept of binary partitioning.




19. __________ is the computation of the set of programs statements.




20. The point at which the program slice affects the values at some point of interest is ______




21. Program slicing can be used in _______ to locate source of errors more easily.




22. A profiler can look for _________ in an application.




23. _____ tests are a superset of all other tests.




24. A ___________ is a test that exercises code by focusing on a single method.




25. In logic unit test, the boundaries of a given test can be controlled by using _____




26. A _____is a test that focuses on the interaction between components in their real environment.




27. Code that accesses a database has tests that effectively _________ the database.




28. A ______ is a test that extends the boundaries of integration unit testing to confirm a stimulus response.




29. _______ more dependent on an external environment than pure unit tests are.




30. _______ are put in scope because they’re often useful as part of the battery of tests run in development.




31. Functional Unit tests don’t test a complete ____________ as expected by pure functional tests.




32. The __________ test relies exclusively on the external system interface to verify its correctness.




33. In black box testing, all that is needed to know in order to test the system properly is the system’s ________




34. White box testing provides better test _________ than black box testing.




35. ______ tests are more difficult to write and run.




36. Black box tests can bring more ________ than white box tests.




37. Using _____ testing, tests can be created that cover the public API of an application.




38. Higher test coverage is achieved by white box tests because of ____




39. ________ tests can control both the inputs to each method and the behaviour of secondary objects.




40. White box unit tests can be written against ____________ package-private, and public methods.




41. _____ is a free Java tool that calculates the percentage of code accessed by tests.




42. Cobertura is based on _______




43. In order to measure test coverage, Cobertura creates __________ of class files specified.




44. While using Cobertura from the command line, which parameter specifies the base directory?




45. _______ is used to specify the name of the file to use for storing the metadata about the classes.




46. _____ specifies the output directory for the instrumented classes.




47. ______ specifies a regular expression to filter out certain lines of the source code.




48. ______ is used to add extra classes and jar files to Cobertura.




49. The default value for the –datafile parameter is _____




50. To use cobertura, we need to include ____




51. The Cobertura command to run while reporting is _____




52. The ______ parameter is used to specify the type of report.




53. _____ parameter specifies the encoding used to read the source.




54. The source code directories are used to calculate the ____________ of each class.




55. The default value of the format parameter is _______




56. The Cobertura command to run while checking coverage is ______




57. “cobertura-check.bat” is run ________ the JUnit tests to show which classes do not have adequate test coverage.




58. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each class during Cobetura coverage checking.




59. The ___________ parameter specifies the minimum acceptable line coverage rate needed by each class during Cobetura coverage checking.




60. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each package during Cobetura coverage checking.