Code Coverage - Multiple Choice Questions
1)
Code coverage analysis is the process of:
A) Finding areas of a program not exercised by a set of test cases,
B) Creating additional test cases to increase coverage, and
C) Determining a quantitative measure of code coverage, which is an indirect measure of quality.
D) Both A & B
E) All of above
2)
An optional aspect of code coverage analysis is: Identifying redundant test cases that do not increase coverage.
A) True
B) False
3)
Major benefit of ............... is that it is greatly able to isolate the portion of code, which could not be executed.
A) parameter coverage
B) condition coverage
C) statement coverage
D) loop coverage
4)
Statement coverage does not report whether loops reach their termination condition - only whether the loop body was executed.
A) True
B) False
5)
Statement coverage is also called line coverage.
A) True
B) False
6)
With 100 percent branch coverage, every branch of every statement may or may not be executed.
A) True
B) False
7)
Decision Coverage & Condition Coverage is one and same thing.
A) True
B) False
8)
Multiple condition coverage reports whether every possible combination of conditions occurs. The test cases required for full multiple condition coverage of a decision are given by the logical operator ....... for the decision.
A) section table
B) data table
C) truth table
D) variable table
9)
Path coverage drawbacks:
A) Number of possible paths that need to be supported by test procedures my be exceedingly exhaustive and beyond the scope of most test programs.
B) Path coverage is very time consuming and should be used for critical success functions only.
C) Path coverage in infinitely difficult.
D) Path coverage may have loopings.
10)
Function Coverage:
A) This metric reports whether you invoked each function or procedure.
B) This metric reports whether you executed each loop body zero times, exactly once, and more than once (consecutively).
C) Both A & B
D) There is no such thing as Function Coverage
Answers