Software Testing Practice test 3

This set of MCQ(multiple choice questions) focuses on the Software Testing Practice Test 3.

If you have covered the basics of Software Testing, then you are good to attempt this Software Testing Practice Test 3. This set basically focuses on a particular topic of Software testing. There are two types of questions – single correct options and multi-correct options questions.

The following Software Testing practice tests are designed to test your ability to meet Software Testing requirements.
1. Software Testing – Practice Test 1
2. Software Testing – Practice Test 2
3. Software Testing – Practice Test 3
4. Software Testing – Practice Test 4

This free online Software Testing quiz will help you with self-assessment and prepare for other certification exams as well as Software Testing interview.

NOTE: You can check your answer immediately by clicking show answer button. ThisSoftware Testing Practice Test 3″ set contains 15 questions.

Now, start attempting the quiz.

Software Testing Practice Test 3

Q1. Which of the following types of program models is/are normally used to design the integration test plan in a software project deploying procedural development?

a) Control Flow graph (CFG)
b) Data Flow Diagram (DFD)
c) Structure chart
d) Entity Relationship Diagram (ERD)
e) Program dependency graph (PDG)

Answer: c)

Software Testing Practice Test 3

Q2. For a given function, the computed McCabe’s Cyclometric complexity metric does not correlate with which of the following?

a) Number of errors existing in the function after unit testing is complete
b) Time required to find the location of an error after a failure
c) Number of lines of code (LOC)
d) Difficulty of understanding the function
e) Number of test cases required to achieve MC/DC

Answer: c)

Q3. Which of the following characterize the equivalent mutants?

a) Mutants which arise from the similar code changes
b) Mutants which fail with the same set of test cases
c) Mutants for which no test cases fail
d) Mutants for which all test cases fail
e) Mutatns for which number of test cases fail

Answer: b)

Software Testing Practice Test 3

Q4. Which one of the following is the recommended integration testing strategy for a program having only three modules?

a) Top-down
b) Bottom-up
c) Mixed
d) Big-bang
e) Use-based

Answer: d)

Q5. If MC/DC coverge has been achieved on a unit under test, which of the following test coverage is/are implicitly implied?

a) Path coverage
b) Multiple condition coverage
c) Statement coverage
d) Condition/decision coverage
e) Data flow coverage

Answer: d)

Software Testing Practice Test 3

Q6. Why is the all path testing strategy rarely used in practice?

a) Too many test cases are required to be executed
b) Too weak a testing technique
c) it is subsumed by basis path testing
d) It is subsumed by statement coverage
e) It susumes statement coverage

Answer: a)

Software Testing Practice Test 3

Q7. Which fo the following are true of the “competent programmer hypthesis”, as used in the mutation testing literature?

a) Mutants corresposnding to only simple programming bugs need to be generated as competent programmers make only simple mistakes
b) Mutants corresposnding to only unsual programming bugs need to be generated as competent programmers rarely make simple mistakes
c) Mutants corresposnding to complex algorithmic bugs need to be generated during mutation testing, when the developing team consists of competent programmers
d) Mutation testing can be meaningfully carried out only for programs developed by competent programmers
e) Mutation testing can be meaningfully carried out only for programs developed by rather novice and incompetent programmers

Answer: a)

Q8. Which one of the following correlates well with the testing difficulty of a program?

a) Number of statements in the program
b) Number of decision statements in the program
c) Complexity of the arithmetic expressions used in the program
d) Time complexity of the program
e) Number of looping statements present in the program
f) Number of arithmetic operators used in the program

Answer: b)

Software Testing Practice Test 3

Q9. If two code segments have Cyclomatic complexities of N1 and N2 respectively, what will be the Cyclomatic complexity of the juxtaposition of the two code segments?

a) N1+N2
b) N1+N2+1
c) N1+N2-1
d) N1+N2+2
e) N1*N2

Answer: c)

Q10. Which one of the following is a fault-based testing technique?

a) Pair wise testing
b) Dataflow testing
c) Path testing
d) Mutation testing
e) Boundary value testing

Answer: d)

Software Testing Practice Test 3

Q11. Which of the following mutants are considered as equivalent mutants?

a) Mutants which arise from the same change
b) Mutants which do not cause failure with the same set of test cases
c) Mutants which cause failure for the same set of test cases
d) Mutants which are obtained from application of the same mutation operator
e) Mutants which cannot be killed by any test case

Answer: e)

Q12. At least how many test cases are required to achieve MC/DC coverage of the following code segment:
If((x==5) or (y<100) or (z>=500)) x=x+1;

a) 1
b) 2
c) 3
d) 4
e) 5

Answer: d)

Software Testing Practice Test 3

Multi-correct questions

Q13. If MC/DC coverage has been achieved on a unit under test, which of the following test coverage are implicitly implied?

a) Basis path coverage
b) Decision coverage
c) Multiple condition coverage
d) Condition/decision coverage
e) Data flow coverage

Answer: b), d)

Q14. Which of the following subsumption relations among white-box test coverage criteria are incorrect?

a) Multiple condition coverage subsumes decision coverage
b) Basic condition coverage subsumes decision coverage
c) Basic condition coverage subsumes statement coverage
d) Path coverage subsumes MC/DC
e) Modified Condition/Decision Coverage (MC/DC) subsumes basic condition coverage

Answer: b), d)

Q15. Which of the follwoing are NOT true of white box code coverage?

a) Code coverage increases as more and more test cases are designed and exercised.
b) 100% path coverage is achieved when all the test cases have been exercised.
c) 100% faults in a program are detected when full path coverage is achieved.
d) Test completion criteria are often specified in terms of code coverage criteria.
e) As the code coverage increases, the number of test case failure increases.

Answer: b), c)

Software Testing Practice Test 3



Don’t forget to tell us your score in comments by giving no. of correct questions.

Write a Testimonial for our website on email.

For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.

Leave a Comment

Your email address will not be published. Required fields are marked *