Software Testing | Week 2

Quiz

Link : Software Testing Week 2 (nptel.ac.in)

1.  Which of the following best defines an infeasible test path?

c. An infeasible test path is one that cannot be executed by any test case

Explanation

2. How are test requirements defined and met in graphs-based structural coverage criteria?

b. Test requirements are defined as properties of test paths and they are met by using test paths that satisfy each test requirement

Explanation

3. In control flow graphs, which of the terms below represents a basic block?

a. A basic block is a sequence of statements such that there is no branching in the sequence

Explanation

4. 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?

b. S represents a loop in the method

Explanation

5. Which of the algorithms will return the shortest paths between two nodes in a control flow graph?

a. Breadth first search

Explanation

6. State true or false: There are test paths that achieve node coverage but not edge coverage.

b. False

Explanation

7. Which of the following test paths achieve edge coverage?

a. Test path [1, 2, 3, 2, 4].

Explanation

8. State yes or no: In the graph above, the test path [1, 2, 3, 2, 4] tours the pair of edges [3, 2, 3].

b. No

Explanation

9. The test paths {[1, 2, 4], [1, 2, 3, 2, 3, 2, 4]} achieve which of the following coverage criteria?

d. Edge pair coverage

Explanation

10. State true or false: The test path [1, 2, 3, 2, 4] achieves edge coverage.

a.  True

Explanation

* The material and content uploaded on this website are for general information and reference purposes only and don’t copy the answers of this website to any other domain without any permission or else copyright abuse will be in action.

Please do it by your own first!

DMCA.com Protection Status

5 1 vote
Article Rating
Subscribe
Notify of
guest

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Harrish yadav
Harrish yadav
1 year ago

Is these answers are correct?

Dinesh dhupia
Dinesh dhupia
1 year ago

Thanks

Nilesh
Nilesh
1 year ago

Hi




4
0
Would love your thoughts, please comment.x
()
x