Software testing 2022

When do we say that a set of test cases T1 satisfies the test requirements TR for a coverage criterion C?
For every test requirement tr ∈ TR, there is exactly one test case t ∈ T such that t satisfies tr
For some test requirement tr ∈ TR, there is some test case t ∈ T such that t satisfies tr
For some test requirement tr ∈ TR, all test case t ∈ T such that t satisfies tr
For every test requirement tr ∈ TR, there is at least one test case t ∈ T such that t satisfies tr
How are test requirements defined and met in graphs-based structural coverage criteria?
Test requirements are defined as properties of test paths and they are met by using test paths that satisfy each test requirement.
Test requirements are basically the same as test paths; they are given as test paths.
In control flow graphs, which of the terms below represents a basic block?
A basic block is a sequence of statements such that there is no branching in the sequence.
A basic block is any sequence of statements that occurs as a path in the control flow graph.
Consider a control flow graph G corresponding to a method and a strongly connected component S in C . Which of the following does S represent in the code that G corresponds to?
S represents a loop in the method.
S represents the entire method in case the method does not have loops.
Which of the following test paths achieve edge coverage?
Both the paths above achieve edge coverage
Test paths [1, 2, 4] and [1, 2, 3, 2].
None of the above two paths achieve edge coverage.
State yes or no: In the graph above, the test path [1, 2, 3, 2, 4] tours the pair of edges [3, 2, 3].
Yes
No
The test paths {[1, 2, 4], [1, 2, 3, 2, 3, 2, 4]} achieve which of the following coverage criteria?
Node and edge coverage only.
Edge pair coverage.
Node coverage only
Edge coverage only
State true or false: The test path [1, 2, 3, 2, 4] achieves edge coverage.
True
False
Which of the following represents a basic block in a control flow graph?
A basic block of statements is a sequence of statements such that if the first statement in the sequence is executed then all the statements in the sequence will also be executed
A basic block of statements is a set of all statements that are a part of a function that the control flow graph represents
Consider a variable count of type int. Suppose there is a method that has a statement of the type count++; Which of the following statements are correct regarding the data flow definition of count?
The statement is a definition of count.
The statement is neither a definition nor a use of count.
The statement is both a definition and use of count.
The statement is a use of count
{"name":"Software testing 2022", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"When do we say that a set of test cases T1 satisfies the test requirements TR for a coverage criterion C?, How are test requirements defined and met in graphs-based structural coverage criteria?, In control flow graphs, which of the terms below represents a basic block?","img":"https://www.quiz-maker.com/3012/CDN/93-4524995/1.jpg?sz=1200"}
Powered by: Quiz Maker