Maven/Maven%20Mcq%20Set%207 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

Posted Date:-2022-01-09 05:47:44


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

Posted Date:-2022-01-09 05:49:40


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

Posted Date:-2022-01-09 05:44:47


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

1.Instrumented copies

2.Objects

3.Mocks

4. Images

Posted Date:-2022-01-09 05:55:18


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

1.Testing

2.Coding

3. Debugging

4.Checking

Posted Date:-2022-01-09 05:41:05


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

Posted Date:-2022-01-09 06:04:49


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

Posted Date:-2022-01-09 06:04:23


Question:
 To use cobertura, we need to include ____

1.cobertura.jar

2.junit.jar

3.hamcrest.jar

4. junitCobertura.jar

Posted Date:-2022-01-09 05:58:38


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

Posted Date:-2022-01-09 05:29:53


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

1.Bottlenecks

2.Redundancies

3.Nodes

4.States

Posted Date:-2022-01-09 05:42:21


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

Posted Date:-2022-01-09 05:45:19


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

Posted Date:-2022-01-09 05:46:14


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

Posted Date:-2022-01-09 05:44:20


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

Posted Date:-2022-01-09 05:39:12


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

Posted Date:-2022-01-09 06:03:31


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

1.Value

2.Coverage

3.Mechanism

4.Acceptance unit test

Posted Date:-2022-01-09 05:51:14


Question:
Cobertura is based on _______

1.JUnit

2. XUnit

3.Maven

4. Jcoverage

Posted Date:-2022-01-09 05:54:56


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

1. Ignore

2.Delete

3.Call

4.Define

Posted Date:-2022-01-09 05:45:42


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

Posted Date:-2022-01-09 05:30:44


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)

Posted Date:-2022-01-09 05:29:18


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

Posted Date:-2022-01-09 05:53:02


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

1.JJ-Path

2.Code Coverage

3.System Code Analysis

4.Code Breakdown

Posted Date:-2022-01-09 05:36:36


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

Posted Date:-2022-01-09 05:35:39


Question:
PVC stands for ______

1.Parameter Value Condition

2. Parameterised Values Check

3.Parameter Value Coverage

4.Path Value Check

Posted Date:-2022-01-09 05:33:30


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

Posted Date:-2022-01-09 06:03:03


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

Posted Date:-2022-01-09 05:59:13


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

1.cobertura.ser

2.cobertura.dat

3. datafile.ser

4.cobertura.log

Posted Date:-2022-01-09 05:58:12


Question:
The default value of the format parameter is _______

1.html

2.jar

3.java

4.dat

Posted Date:-2022-01-09 06:02:18


Question:
The JJ in JJ-path stands for ______

1.Just Jump

2. Jump-in-JUnit

3.Java-JUnit

4. Jump-to-Jump

Posted Date:-2022-01-09 05:36:09


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

Posted Date:-2022-01-09 05:40:39


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

Posted Date:-2022-01-09 06:01:34


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

1.datafile

2.basedir

3.encoding

4.format

Posted Date:-2022-01-09 06:00:09


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

Posted Date:-2022-01-09 05:49:12


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

Posted Date:-2022-01-09 06:03:59


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

Posted Date:-2022-01-09 05:52:35


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

1.−−datafile

2.−−destination

3.−−ignore

4.−−basedir

Posted Date:-2022-01-09 05:56:10


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

1.Result

2. Coverage

3.Mechanism

4. Acceptance

Posted Date:-2022-01-09 05:50:19


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

1.Static

2. Private

3.Protected

4.void

Posted Date:-2022-01-09 05:53:52


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

Posted Date:-2022-01-09 05:31:28


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

1.Cobertura

2. JUnit

3. XUnit

4.Maven

Posted Date:-2022-01-09 05:54:27


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

1.datafile

2.basedir

3.encoding

4.format

Posted Date:-2022-01-09 06:00:53


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

1.−−datafile

2.−−destination

3. −−ignore

4. −−basedir

Posted Date:-2022-01-09 05:57:01


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

1.Unit

2. Integration

3. Loss

4.Acceptance

Posted Date:-2022-01-09 05:43:49


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

Posted Date:-2022-01-09 05:34:19


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

Posted Date:-2022-01-09 05:30:19


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

Posted Date:-2022-01-09 05:39:46


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

Posted Date:-2022-01-09 05:35:10


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

1. −−datafile

2. −−destination

3.−−ignore

4.−−auxClasspath

Posted Date:-2022-01-09 05:57:49


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

1. −−datafile

2. −−destination

3. −−ignore

4.−−basedir

Posted Date:-2022-01-09 05:57:27


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

1.White Box

2.Unit

3. Black Box

4. Lossless Condition/decision coverage

Posted Date:-2022-01-09 05:50:47


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

Posted Date:-2022-01-09 05:47:08


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

Posted Date:-2022-01-09 05:33:52


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

1.Brute force debugging

2.Backtracking

3.Cause elimination

4.Program slicing

Posted Date:-2022-01-09 05:37:04


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

Posted Date:-2022-01-09 05:56:36


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

Posted Date:-2022-01-09 05:46:41


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

Posted Date:-2022-01-09 05:32:36


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

Posted Date:-2022-01-09 05:33:08


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

Posted Date:-2022-01-09 05:53:27


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

Posted Date:-2022-01-09 05:32:09


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

1.Brute force debugging

2.Backtracking

3.Backtracking

4.Program slicing

Posted Date:-2022-01-09 05:40:14


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!