Maven MCQ Quiz Hub

Maven Mcq Set 7

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

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?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

PVC stands for ______





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

LCSAJ stands for ________





✅ Correct Answer: 2

The JJ in JJ-path stands for ______





✅ Correct Answer: 4

In a narrower sense, LCSAJ is also called ______





✅ Correct Answer: 1

_______ is the most common and least efficient debugging technique.





✅ Correct Answer: 1

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.





✅ Correct Answer: 2

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





✅ Correct Answer: 3

__________ is the computation of the set of programs statements.





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

A profiler can look for _________ in an application.





✅ Correct Answer: 1

_____ tests are a superset of all other tests.





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

______ tests are more difficult to write and run.





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

Cobertura is based on _______





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

_____ specifies the output directory for the instrumented classes.





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

The default value for the –datafile parameter is _____





✅ Correct Answer: 1

To use cobertura, we need to include ____





✅ Correct Answer: 1

The Cobertura command to run while reporting is _____





✅ Correct Answer: 1

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





✅ Correct Answer: 4

_____ parameter specifies the encoding used to read the source.





✅ Correct Answer: 3

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





✅ Correct Answer: 3

The default value of the format parameter is _______





✅ Correct Answer: 1

The Cobertura command to run while checking coverage is ______





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2