Maven/Maven Mcq Set 7 Sample Test,Sample questions

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

1.Workflow

2.Object

3.Class

4.Functions


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

1. Functional specification

2.Modularity

3.Redundancy

4.Class definition


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

1.Objects

2. Mock objects

3.Controllers

4.Modules


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

1.Instrumented copies

2.Objects

3.Mocks

4. Images


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

1.Testing

2.Coding

3. Debugging

4.Checking


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

1.datafile

2.packagebranch

3.line

4.regex


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

1.datafile

2. branch

3. line

4.regex


Question:
 To use cobertura, we need to include ____

1.cobertura.jar

2.junit.jar

3.hamcrest.jar

4. junitCobertura.jar


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

1.Function coverage

2.Statement coverage

3.Decision coverage

4.Condition coverage


Question:
A profiler can look for _________ in an application.

1.Bottlenecks

2.Redundancies

3.Nodes

4.States


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

1. Logic unit test

2. Integration unit test

3.Functional unit test

4.Acceptance unit test


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

1.Logic unit test

2.Integration unit test

3. Functional unit test

4.Acceptance unit test


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

1.Logic unit test

2. Integration unit test

3. Functional unit test

4.Acceptance unit test


Question:
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.

1. Search

2. Backtrack

3.Slice

4.Eliminate


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

1.Before

2.After

3.Along with

4.Before and after


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

1.Value

2.Coverage

3.Mechanism

4.Acceptance unit test


Question:
Cobertura is based on _______

1.JUnit

2. XUnit

3.Maven

4. Jcoverage


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

1. Ignore

2.Delete

3.Call

4.Define


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

1.a=true, b=true, c=true and a=false, b=false, c=false

2. a=false, b=true, c=true

3.a=true, b=false, c=true

4. a=true, b=true, c=false


Question:
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?

1.example(1,1)

2.example(0,1)

3.example(1,1) and example(0,1)

4.example(1,0) and example(0,1)


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

1.Access to more methods

2.Better documentation

3.Faster tests

4.More accepted tests


Question:
In a narrower sense, LCSAJ is also called ______

1.JJ-Path

2.Code Coverage

3.System Code Analysis

4.Code Breakdown


Question:
LCSAJ stands for ________

1.Loading Code standard as Jumps

2.Linear code sequence and jump

3.Loading code sequence and jump

4.Linear coverage sequence and jump


Question:
PVC stands for ______

1.Parameter Value Condition

2. Parameterised Values Check

3.Parameter Value Coverage

4.Path Value Check


Question:
The Cobertura command to run while checking coverage is ______

1.cobertura-report.bat

2. cobertura-instrument.bat

3.cobertura-check.bat

4.cobertura-merge.bat


Question:
The Cobertura command to run while reporting is _____

1.cobertura-report.bat

2. cobertura-instrument.bat

3.cobertura-check.bat

4.cobertura-merge.bat


Question:
The default value for the –datafile parameter is _____

1.cobertura.ser

2.cobertura.dat

3. datafile.ser

4.cobertura.log


Question:
The default value of the format parameter is _______

1.html

2.jar

3.java

4.dat


Question:
The JJ in JJ-path stands for ______

1.Just Jump

2. Jump-in-JUnit

3.Java-JUnit

4. Jump-to-Jump


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

1.Slicing criterion

2. Program criterion

3.Sliced Parts criterion

4. Information flow control


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

1.Data size

2.Lines of code

3.Cyclomatic code complexity

4.Mutant score


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

1.datafile

2.basedir

3.encoding

4.format


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

1. White Box

2.Unit

3.Black Box

4. Lossless Condition/decision coverage


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

1. datafile

2. branch

3.line

4. regex


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

1.White Box

2. Unit

3.Black Box

4.Loss Testing


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

1.−−datafile

2.−−destination

3.−−ignore

4.−−basedir


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

1.Result

2. Coverage

3.Mechanism

4. Acceptance


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

1.Static

2. Private

3.Protected

4.void


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

1.Redundant Condition/decision coverage

2.Transferred Condition/decision coverage

3.Modified Condition/decision coverage

4. Lossless Condition/decision coverage


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

1.Cobertura

2. JUnit

3. XUnit

4.Maven


Question:
_____ parameter specifies the encoding used to read the source.

1.datafile

2.basedir

3.encoding

4.format


Question:
_____ specifies the output directory for the instrumented classes.

1.−−datafile

2.−−destination

3. −−ignore

4. −−basedir


Question:
_____ tests are a superset of all other tests.

1.Unit

2. Integration

3. Loss

4.Acceptance


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

1.Path coverage

2.Loop coverage

3.Entry/exit coverage

4. State coverage


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

1.Function coverage

2.Statement coverage

3.Decision coverage

4.Condition coverage


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

1.Brute force debugging

2.Backtracking

3.Cause elimination

4.Program slicing


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

1.Linear code sequence and jump

2.State coverage

3.Lossless packs

4.Linear jumps


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

1. −−datafile

2. −−destination

3.−−ignore

4.−−auxClasspath


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

1. −−datafile

2. −−destination

3. −−ignore

4.−−basedir


Question:
______ tests are more difficult to write and run.

1.White Box

2.Unit

3. Black Box

4. Lossless Condition/decision coverage


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

1.Logic unit test

2. Integration unit test

3.Functional unit tes

4.Acceptance unit test


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

1.Basis Path Testing

2.Loss Testing

3.Universal Testing

4.Random Testing


Question:
_______ is the most common and least efficient debugging technique.

1.Brute force debugging

2.Backtracking

3.Cause elimination

4.Program slicing


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

1.−−datafile

2.−−destination

3. −−ignore

4. −−basedir


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

1. Logic unit test

2. Integration unit test

3.Functional unit test

4.Acceptance unit test


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

1.Redundant Condition/decision coverage

2.Multiple condition coverage

3. Modified Condition/decision coverage

4.Parameter Value Coverage


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

1.Non safe

2. Safety Critical

3.Critical

4. Lossless Condition/decision coverage


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

1. White Box

2. Unit

3.Black Box

4.Loss


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

1.Redundant Condition/decision coverage

2.Multiple condition coverage

3.Modified Condition/decision coverage

4.Lossless Condition/decision coverage


Question:
__________ is the computation of the set of programs statements.

1.Brute force debugging

2.Backtracking

3.Backtracking

4.Program slicing


More MCQS

  1. Maven Mcq Set 1
  2. Maven Mcq Set 2
  3. Maven Mcq Set 3
  4. Maven Mcq Set 4
  5. Maven Mcq Set 5
  6. Maven Mcq Set 6
  7. Maven Mcq Set 7
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!