1What is the main basis for designing structural tests?
Structural Testing
Easy
A.The feedback collected from users
B.The visual design of the interface
C.The wording of user documentation
D.The internal structure of the code
Correct Answer: The internal structure of the code
Explanation:
Structural testing designs tests by examining the internal code, logic, and control flow of a program.
Incorrect! Try again.
2What is another common name for structural testing?
Structural Testing
Easy
A.Acceptance testing
B.White-box testing
C.Black-box testing
D.Usability testing
Correct Answer: White-box testing
Explanation:
Structural testing is also called white-box testing because it examines the internal implementation of the software.
Incorrect! Try again.
3What does code coverage measure?
Data and Code Coverage
Easy
A.The amount of code executed by tests
B.The number of defects reported by users
C.The number of requirements in a project
D.The amount of code written each day
Correct Answer: The amount of code executed by tests
Explanation:
Code coverage measures how much of the program's code is executed while the test suite runs.
Incorrect! Try again.
4What does data coverage mainly examine?
Data and Code Coverage
Easy
A.Whether every method has a short name
B.Whether every source file has comments
C.Whether relevant input data values are tested
D.Whether all screens use the same colors
Correct Answer: Whether relevant input data values are tested
Explanation:
Data coverage considers whether tests include the important values, ranges, and categories of input data.
Incorrect! Try again.
5What does 100% statement coverage mean?
Statement Coverage
Easy
A.Every defect was detected at least once
B.Every possible path ran at least once
C.Every requirement passed at least once
D.Every executable statement ran at least once
Correct Answer: Every executable statement ran at least once
Explanation:
100% statement coverage means that each executable statement was executed by at least one test.
Incorrect! Try again.
6Which formula calculates statement coverage?
Statement Coverage
Easy
A.Executed branches divided by total branches
B.Tested methods divided by total methods
C.Detected defects divided by total defects
D.Executed statements divided by total statements
Correct Answer: Executed statements divided by total statements
Explanation:
Statement coverage is the percentage of executable statements run by the tests.
Incorrect! Try again.
7What does branch coverage check for an if statement?
Branch Coverage
Easy
A.Whether the method returns a value
B.Whether the condition uses two variables
C.Whether both true and false outcomes execute
D.Whether the statement contains a comment
Correct Answer: Whether both true and false outcomes execute
Explanation:
Branch coverage checks whether tests execute each possible decision outcome, such as both true and false.
Incorrect! Try again.
8A decision has two possible branches, but tests execute only one. What is its branch coverage?
Branch Coverage
Easy
A.75%
B.50%
C.25%
D.100%
Correct Answer: 50%
Explanation:
One of the two branches was executed, so the branch coverage is .
Incorrect! Try again.
9What does path coverage measure?
Path Coverage
Easy
A.The number of inputs in a test
B.The execution of possible program paths
C.The execution speed of program methods
D.The number of files in a project
Correct Answer: The execution of possible program paths
Explanation:
Path coverage measures which possible routes through the program's control flow are executed.
Incorrect! Try again.
10Why can achieving 100% path coverage be difficult?
Path Coverage
Easy
A.Programs may contain descriptive comments
B.Methods may contain meaningful names
C.Programs may contain many possible paths
D.Tests may contain expected results
Correct Answer: Programs may contain many possible paths
Explanation:
Branches and loops can create a very large number of possible execution paths, making full path coverage difficult.
Incorrect! Try again.
11What does method coverage measure?
Other Coverages and Understanding Their Differences
Easy
A.The variables declared during testing
B.The branches selected during testing
C.The methods called during testing
D.The defects corrected during testing
Correct Answer: The methods called during testing
Explanation:
Method coverage measures how many methods are invoked by the test suite.
Incorrect! Try again.
12What does condition coverage focus on?
Other Coverages and Understanding Their Differences
Easy
A.Individual statements in documentation
B.Individual methods in source files
C.Individual Boolean conditions in decisions
D.Individual values in output reports
Correct Answer: Individual Boolean conditions in decisions
Explanation:
Condition coverage checks whether each Boolean condition evaluates to both true and false.
Incorrect! Try again.
13Which coverage type is generally stronger than statement coverage for testing decisions?
Other Coverages and Understanding Their Differences
Easy
A.Branch coverage
B.Class coverage
C.Line coverage
D.Method coverage
Correct Answer: Branch coverage
Explanation:
Branch coverage requires each decision outcome to execute, while statement coverage may miss an untested outcome.
Incorrect! Try again.
14What is EclEmma mainly used for?
Introduction to Code Coverage Tool EclEmma
Easy
A.Designing database tables
B.Creating interface mockups
C.Measuring Java code coverage
D.Managing project requirements
Correct Answer: Measuring Java code coverage
Explanation:
EclEmma is an Eclipse code coverage tool used to measure which parts of Java code are executed by tests.
Incorrect! Try again.
15EclEmma is commonly integrated with which development environment?
Introduction to Code Coverage Tool EclEmma
Easy
A.Blender
B.Eclipse
C.Excel
D.Photoshop
Correct Answer: Eclipse
Explanation:
EclEmma is provided as a code coverage plug-in for the Eclipse development environment.
Incorrect! Try again.
16Which coverage library is used by modern versions of EclEmma?
Introduction to Code Coverage Tool EclEmma
Easy
A.JUnit
B.JaCoCo
C.Mockito
D.Selenium
Correct Answer: JaCoCo
Explanation:
Modern versions of EclEmma use the JaCoCo library to collect and report Java code coverage.
Incorrect! Try again.
17In EclEmma's source highlighting, what does a green line normally indicate?
Interpreting Results of EclEmma
Easy
A.The line was fully covered
B.The line was not covered
C.The line was partly covered
D.The line contains an error
Correct Answer: The line was fully covered
Explanation:
Green highlighting normally means that the corresponding code was fully executed during the coverage run.
Incorrect! Try again.
18In EclEmma's source highlighting, what does a red line normally indicate?
Interpreting Results of EclEmma
Easy
A.The line was not covered
B.The line was fully covered
C.The line was partly covered
D.The line was recently edited
Correct Answer: The line was not covered
Explanation:
Red highlighting normally identifies code that was not executed during the coverage run.
Incorrect! Try again.
19What does cyclomatic complexity measure?
Cyclomatic Complexity
Easy
A.The number of files stored in a project
B.The number of independent paths through code
C.The number of comments written in code
D.The number of users running a program
Correct Answer: The number of independent paths through code
Explanation:
Cyclomatic complexity measures the number of linearly independent paths through a program's control flow.
Incorrect! Try again.
20A simple method has two decision points. What is its cyclomatic complexity using decisions plus one?
Cyclomatic Complexity
Easy
A.4
B.2
C.1
D.3
Correct Answer: 3
Explanation:
Using , two decision points give .
Incorrect! Try again.
21A method validates an age, calculates a discount, and then formats the result. A tester designs cases by examining the method's conditions and loops rather than its requirements. Which testing approach is being applied?
Structural Testing
Medium
A.Structural testing
B.Acceptance testing
C.Exploratory testing
D.Usability testing
Correct Answer: Structural testing
Explanation:
Structural testing derives test cases from the internal control flow, conditions, statements, and other implementation details of the code.
Incorrect! Try again.
22A structural test suite executes every line of a sorting method but never checks whether the returned array is correctly ordered. What is the main weakness of this suite?
Structural Testing
Medium
A.It may execute faults without detecting them
B.It must have zero branch coverage
C.It cannot measure statement coverage
D.It cannot test private methods
Correct Answer: It may execute faults without detecting them
Explanation:
Coverage confirms that code was executed, but assertions are still required to reveal incorrect behavior.
Incorrect! Try again.
23Tests execute all statements in a method, but they use only positive integer inputs. Which additional activity would most directly improve data coverage?
Data and Code Coverage
Medium
A.Testing zero, negative, and boundary values
B.Running the same positive tests repeatedly
C.Refactoring the method into fewer lines
D.Removing duplicate assertion statements
Correct Answer: Testing zero, negative, and boundary values
Explanation:
Data coverage improves when tests exercise meaningful input classes and boundaries, even if code coverage is already high.
Incorrect! Try again.
24A program contains 120 executable statements, and a test suite executes 90 distinct statements. What is its statement coverage?
Data and Code Coverage
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Statement coverage is .
Incorrect! Try again.
25Consider the code: if (score >= 50) result = "Pass"; notifyUser();. Assuming both assignments and method calls are executable statements, which single test is sufficient for statement coverage?
Statement Coverage
Medium
A.score = 50
B.score = 0
C.score = 49
D.score = -1
Correct Answer: score = 50
Explanation:
With score = 50, the assignment inside the if and the subsequent method call both execute.
Incorrect! Try again.
26A test suite has statement coverage for a method containing an if statement without an else. What can be concluded?
Statement Coverage
Medium
A.Every condition value ran independently
B.Every feasible path ran at least once
C.Every executable statement ran at least once
D.Every decision outcome ran at least once
Correct Answer: Every executable statement ran at least once
Explanation:
Statement coverage guarantees execution of statements, but it does not guarantee both true and false outcomes of every decision.
Incorrect! Try again.
27For the decision if (age >= 18 && hasId), which test set achieves branch coverage of the overall decision using the fewest tests?
Branch Coverage
Medium
A.(17, true) only
B.(18, false) and (17, false)
C.(18, true) only
D.(18, true) and (17, true)
Correct Answer: (18, true) and (17, true)
Explanation:
The first test makes the complete decision true, while the second makes it false, covering both decision branches.
Incorrect! Try again.
28A method contains three independent if statements, each with a true and a false outcome. A test suite covers five of the six outcomes. What is the branch coverage?
Branch Coverage
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
There are six total branch outcomes, so coverage is .
Incorrect! Try again.
29A method contains two sequential, independent if statements and no loops. How many combinations of true and false outcomes must be considered for complete path coverage?
Path Coverage
Medium
A.3 paths
B.6 paths
C.4 paths
D.2 paths
Correct Answer: 4 paths
Explanation:
The two binary decisions produce paths: true-true, true-false, false-true, and false-false.
Incorrect! Try again.
30Why is complete path coverage usually impractical for a method containing an input-controlled loop?
Path Coverage
Medium
A.The loop makes assertions impossible to evaluate
B.The loop always creates infeasible branches
C.The loop can produce an unbounded number of paths
D.The loop prevents statements from being instrumented
Correct Answer: The loop can produce an unbounded number of paths
Explanation:
Different iteration counts create different execution paths, so an input-controlled loop may generate an unbounded set of paths.
Incorrect! Try again.
31For if (A || B), tests use (A=true, B=false) and (A=false, B=true). They achieve a true result in both cases. Which coverage requirement is definitely not satisfied?
Other Coverages and Understanding Their Differences
Medium
A.Line coverage
B.Statement coverage
C.Method coverage
D.Decision coverage
Correct Answer: Decision coverage
Explanation:
The decision is never false, so both outcomes of the decision are not covered, even though each condition takes both truth values.
Incorrect! Try again.
32A test suite calls every method in a class, but several branches inside those methods are never taken. Which coverage can still be ?
Other Coverages and Understanding Their Differences
Medium
A.Path coverage
B.Condition coverage
C.Branch coverage
D.Method coverage
Correct Answer: Method coverage
Explanation:
Method coverage requires each method to be invoked, but it does not require all internal branches, conditions, or paths to execute.
Incorrect! Try again.
33Which test set provides condition coverage for if (x > 0 && y > 0) but does not provide branch coverage of the overall decision?
Other Coverages and Understanding Their Differences
Medium
A.(1, -1) and (-1, 1)
B.(1, 1) and (-1, 1)
C.(1, 1) and (-1, -1)
D.(1, 1) and (1, -1)
Correct Answer: (1, -1) and (-1, 1)
Explanation:
Each basic condition is true once and false once, but the complete decision is false in both tests, so its true branch is not covered.
Incorrect! Try again.
34A developer wants to measure coverage for a JUnit test class in Eclipse using EclEmma. Which action should be selected?
Introduction to Code Coverage Tool EclEmma
Medium
A.Coverage As > JUnit Test
B.Debug As > Eclipse Application
C.Profile As > Maven Build
D.Run As > Java Application
Correct Answer: Coverage As > JUnit Test
Explanation:
EclEmma collects coverage by launching the selected tests through the appropriate Coverage As command.
Incorrect! Try again.
35What is EclEmma's primary role during automated Java testing in Eclipse?
Introduction to Code Coverage Tool EclEmma
Medium
A.Replacing JUnit with a test framework
B.Recording which code elements tests execute
C.Generating assertions from method outputs
D.Repairing defects found by JUnit tests
Correct Answer: Recording which code elements tests execute
Explanation:
EclEmma instruments Java bytecode and reports coverage for elements such as instructions, branches, lines, methods, and classes.
Incorrect! Try again.
36After running tests with EclEmma, a source line is highlighted red. What does this normally indicate?
Interpreting Results of EclEmma
Medium
A.The line was not executed
B.The line contains invalid syntax
C.The line executed every branch
D.The line caused a test failure
Correct Answer: The line was not executed
Explanation:
In EclEmma's source highlighting, red marks missed code, green marks fully covered code, and yellow marks partial coverage.
Incorrect! Try again.
37EclEmma highlights a line containing an if statement in yellow after all tests pass. What is the best interpretation?
Interpreting Results of EclEmma
Medium
A.The line has complete path coverage
B.The line contains a failed assertion
C.The line was never loaded
D.The line was only partially covered
Correct Answer: The line was only partially covered
Explanation:
Yellow indicates partial coverage, commonly because the line executed but one or more branch outcomes were not taken.
Incorrect! Try again.
38EclEmma reports line coverage but branch coverage for a class. What should the developer investigate first?
Interpreting Results of EclEmma
Medium
A.Decision outcomes not exercised by tests
B.Assertions that execute too frequently
C.Methods that contain no statements
D.Classes that were never loaded
Correct Answer: Decision outcomes not exercised by tests
Explanation:
All source lines ran, but some outcomes of conditional decisions were missed, reducing branch coverage.
Incorrect! Try again.
39A method has four binary decision points and one connected control-flow component. What is its cyclomatic complexity?
Cyclomatic Complexity
Medium
A.8
B.5
C.4
D.6
Correct Answer: 5
Explanation:
For one connected method, cyclomatic complexity is the number of decision points plus one: .
Incorrect! Try again.
40A control-flow graph has 12 edges, 9 nodes, and 1 connected component. Using , what is its cyclomatic complexity?
Cyclomatic Complexity
Medium
A.3
B.6
C.4
D.5
Correct Answer: 5
Explanation:
Substitution gives , representing five linearly independent paths.
Incorrect! Try again.
41A payment method achieves 100% statement and branch coverage, but no test checks whether the charged amount matches the business rule. Which conclusion is most defensible?
Structural Testing
Hard
A.The method requires only path coverage to prove the business rule
B.The method is structurally exercised, but functional faults may remain undetected
C.The method is correct because every control-flow outcome was executed
D.The method is fault-free unless it contains an infeasible execution path
Correct Answer: The method is structurally exercised, but functional faults may remain undetected
Explanation:
Structural coverage measures which implementation elements execute; it does not establish that outputs satisfy requirements or that test oracles are correct.
Incorrect! Try again.
42A required authorization check was accidentally omitted from an implementation. Tests are derived only from the implemented control-flow graph and achieve every selected structural coverage target. What is the principal testing risk?
Structural Testing
Hard
A.The missing check will increase cyclomatic complexity without changing coverage
B.The missing check will be detected whenever statement coverage reaches 100%
C.The missing check may remain invisible because it creates no structure to cover
D.The missing check will necessarily appear as an uncovered branch in the report
Correct Answer: The missing check may remain invisible because it creates no structure to cover
Explanation:
Implementation-based test design cannot directly cover code that should exist but does not. Requirements-based testing is needed to expose such omission faults.
Incorrect! Try again.
43Consider:
JAVA
int x = 1; // d1
if (a) x = 2; // d2
consume(x); // u1
Assuming both values of a are feasible, which test requirement is necessary to cover both definition-use pairs ending at u1?
Data and Code Coverage
Hard
A.Run one test with a false and one test with a true
B.Run only a test with a true because it executes both definitions
C.Run two tests with a true but different values of x
D.Run only a test with a false because d1 dominates u1
Correct Answer: Run one test with a false and one test with a true
Explanation:
The pair d1-u1 requires a to be false; otherwise d2 kills d1. The pair d2-u1 requires a to be true.
Incorrect! Try again.
44In data-flow testing, a path from a definition of variable v to a use of v contains another assignment to v before that use. How should the original definition-use pair be classified?
Data and Code Coverage
Hard
A.It is not covered because the intervening assignment kills the definition
B.It is covered only when the second assignment stores the same value
C.It is covered because both the definition and use execute on one path
D.It is infeasible because a variable cannot have multiple definitions
Correct Answer: It is not covered because the intervening assignment kills the definition
Explanation:
A definition-use pair requires a definition-clear path. Any intervening redefinition kills the reaching definition, regardless of the assigned value.
Incorrect! Try again.
45For the following code, what is the minimum number of tests required for 100% statement coverage, assuming a and b can independently be true or false?
JAVA
if (a) {
s1();
} else if (b) {
s2();
} else {
s3();
}
Statement Coverage
Hard
A.Three tests selecting s1, s2, and s3 separately
B.One test because all statements belong to one conditional chain
C.Four tests covering every combination of a and b
D.Two tests selecting s1 once and both other statements together
Correct Answer: Three tests selecting s1, s2, and s3 separately
Explanation:
The three statements occur on mutually exclusive paths. Each path must therefore be selected by a separate test.
Incorrect! Try again.
46A single test uses a = true and b = true for the following code:
JAVA
int x = 0;
if (a) x = 1;
if (b) x = 2;
return x;
Which coverage assessment is correct?
Statement Coverage
Hard
A.It achieves path coverage because the executed path contains every statement
B.It achieves statement coverage but misses both false branch outcomes
C.It achieves statement and branch coverage because both bodies execute
D.It misses statement coverage because the initial assignment is overwritten
Correct Answer: It achieves statement coverage but misses both false branch outcomes
Explanation:
Every executable statement runs, but neither decision is exercised with a false result. Statement coverage does not require every branch outcome.
Incorrect! Try again.
47For the short-circuit decision if (A && B), a suite contains (A=true, B=true) and (A=false, B=true). Which statement is correct?
Branch Coverage
Hard
A.Branch coverage is incomplete because the body executes only once
B.Decision coverage is complete, but B=false has not been exercised
C.Path coverage is complete because the decision has two final outcomes
D.Condition coverage is complete because both input variables have two values
Correct Answer: Decision coverage is complete, but B=false has not been exercised
Explanation:
The overall decision is true once and false once, so decision or branch coverage is achieved. Due to short-circuiting, B is not evaluated in the second test and is never false when evaluated.
Incorrect! Try again.
48What is the minimum number of tests needed for 100% branch coverage of the following code, assuming all combinations are feasible?
JAVA
if (A) {
if (B) s1();
} else {
s2();
}
Branch Coverage
Hard
A.Three tests for (true,true), (true,false), and one A=false case
B.One test with both conditions evaluating to true
C.Four tests for all combinations of A and B
D.Two tests for (true,true) and (false,false)
Correct Answer: Three tests for (true,true), (true,false), and one A=false case
Explanation:
The outer decision needs true and false outcomes. While it is true, the inner decision must also produce both outcomes, requiring three tests.
Incorrect! Try again.
49For two sequential independent decisions, if (A) s1(); followed by if (B) s2();, a suite contains only (true,true) and (false,false). What has the suite achieved?
Path Coverage
Hard
A.Full path coverage but only half of the branch outcomes
B.Full branch coverage but only two of the four complete paths
C.Full condition coverage and all four complete execution paths
D.Full statement coverage without complete branch coverage
Correct Answer: Full branch coverage but only two of the four complete paths
Explanation:
Each decision has produced true and false, so branch coverage is complete. The mixed paths (true,false) and (false,true) remain unexecuted.
Incorrect! Try again.
50Consider:
JAVA
if (x > 0) s1();
if (x <= 0) s2();
Which statement best characterizes its complete start-to-end paths?
Path Coverage
Hard
A.All four outcome combinations are feasible with boundary values
B.Three paths are feasible because x = 0 creates a third case
C.Only the path executing both statements is infeasible
D.Two of the four syntactic outcome combinations are feasible
Correct Answer: Two of the four syntactic outcome combinations are feasible
Explanation:
For x > 0, the outcomes are (true,false); for x <= 0, they are (false,true). The combinations (true,true) and (false,false) are infeasible.
Incorrect! Try again.
51Which four-test suite provides MC/DC for the decision (A && B) || C, assuming logical conditions are considered independently?
Other Coverages and Understanding Their Differences
Hard
Executing every feasible path necessarily executes every feasible edge and reachable statement. The reverse implications do not generally hold.
Incorrect! Try again.
53Which description most accurately explains how EclEmma gathers Java coverage information?
Introduction to Code Coverage Tool EclEmma
Hard
A.It modifies Java source files by inserting permanent logging statements
B.It uses JaCoCo instrumentation to record execution of Java bytecode
C.It statically explores every feasible source-level execution path
D.It parses JUnit assertions to infer which source statements are correct
Correct Answer: It uses JaCoCo instrumentation to record execution of Java bytecode
Explanation:
EclEmma integrates JaCoCo with Eclipse. Coverage is collected from instrumented bytecode during execution, not inferred from assertions or exhaustive static analysis.
Incorrect! Try again.
54Why can EclEmma display surprising source-level coverage for compiler-generated constructs such as synthetic methods, implicit branches, or transformed expressions?
Introduction to Code Coverage Tool EclEmma
Hard
A.Coverage is collected from bytecode and then mapped back to source lines
B.Coverage treats each source line as exactly one bytecode instruction
C.Coverage is estimated from source formatting and Eclipse syntax coloring
D.Coverage ignores compiled instructions whenever source code is available
Correct Answer: Coverage is collected from bytecode and then mapped back to source lines
Explanation:
One source construct may compile into several instructions or branches. Mapping bytecode results back to source can therefore produce non-obvious line and branch counts.
Incorrect! Try again.
55An EclEmma report shows 100% instruction coverage and 75% branch coverage for a package. Which interpretation is valid?
Interpreting Results of EclEmma
Hard
A.Every branch executed, but one-quarter of assertions were unsuccessful
B.Every counted instruction executed, but some decision outcomes did not
C.Every source line executed, so the branch percentage must be inaccurate
D.Every source path executed, but some instructions lacked debug information
Correct Answer: Every counted instruction executed, but some decision outcomes did not
Explanation:
Instruction and branch coverage measure different elements. Executing all instructions does not necessarily exercise every outcome of every compiled decision.
Incorrect! Try again.
56After collecting coverage, a developer recompiles a class and then generates a report using the earlier execution data. EclEmma reports that the class does not match the execution data. What is the most likely cause?
Interpreting Results of EclEmma
Hard
A.The class has a cyclomatic complexity greater than the configured limit
B.The test suite omitted at least one branch in the recompiled class
C.The analyzed class bytes differ from those used during coverage collection
D.The source file contains statements that the Java compiler optimized
Correct Answer: The analyzed class bytes differ from those used during coverage collection
Explanation:
JaCoCo associates execution data with specific class definitions. Recompilation can change the class identifier, making old coverage data incompatible.
Incorrect! Try again.
57A method is marked as covered, yet its complexity counter reports Missed: 2 and Covered: 3. What is the best interpretation?
Interpreting Results of EclEmma
Hard
A.Two infeasible paths were detected and removed from the coverage percentage
B.Some independent control-flow complexity remains associated with uncovered branches
C.Two source statements failed while three source statements completed successfully
D.The method executed twice unsuccessfully and three times successfully
Correct Answer: Some independent control-flow complexity remains associated with uncovered branches
Explanation:
JaCoCo's complexity counter estimates covered and missed independent paths from branch coverage. A method can execute while still retaining missed complexity.
Incorrect! Try again.
58A connected control-flow graph has 14 edges and 11 nodes. Using with , what is its cyclomatic complexity?
Cyclomatic Complexity
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Substitution gives .
Incorrect! Try again.
59A method contains three independent binary if decisions and one switch with four possible targets, including default. Assuming no other decisions, what is its cyclomatic complexity?
Cyclomatic Complexity
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Start with 1. Each binary decision contributes 1, and a four-target switch contributes . Thus .
Incorrect! Try again.
60A method has cyclomatic complexity . Which conclusion follows directly from this value?
Cyclomatic Complexity
Hard
A.Its control-flow graph has six linearly independent paths
B.Exactly six tests will achieve complete feasible path coverage
C.At least six defects must be present in its decision logic
D.Exactly six executable statements occur in the method
Correct Answer: Its control-flow graph has six linearly independent paths
Explanation:
Cyclomatic complexity gives the dimension of a basis set of independent control-flow paths. It does not determine total feasible paths, required test count, statement count, or defect count.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →