Software Testing NPTEL Week 2 Solutions

This set of MCQ(multiple choice questions) focuses on the Software Testing NPTEL Week 2 Solutions.

Over the years program several testing techniques have developed and tools have become available. Also, testing has been acknowledged as the primary technique for ensuring software reliability. The course would provide a brief introduction to test process and techniques available for black box and white box test case design. Integration, system and regression testing would also be discussed. A few of the test tools would be discussed and the participants would be encouraged to use.

Course layout

Answers COMING SOON! Kindly Wait!

Week 1: Assignment answers
Week 2: Assignment answers
Week 3: Assignment answers
Week 4: Assignment answers
Week 5: Assignment answers
Week 6: Assignment answers
Week 7: Assignment answers
Week 8: Assignment answers
Week 9: Assignment answers
Week 10: Assignment answers
Week 11: Assignment answers
Week 12: Assignment answers

NOTE: You can check your answer immediately by clicking show answer button. Software Testing NPTEL 2023 Week 2 Assignment Solution” contains 10 questions.

Now, start attempting the quiz.

Software Testing NPTEL Week 2 Solutions

Q1. Cause-effect test cases are, in effect, are designed using which one of the following types of testing techniques?

a) Decision-table based testing
b) Coverage-based testing
c) Fault-based testing
d) Path-based testing
e) Equivalence testing

Answer: a) Decision-table based testing

Q2. Consider the function find-intersection (m1, c1, m2, c2) that computes the point of intersection of two straight lines of the form y=mx+c. For equivalence class testing of the given fucntion, at the first level of the equivalence class hierarchy the valid and invalid equivalence classes can be formed. The valid set of input values can be further divided into how many equivalence classes?

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

Answer: c) 3

Q3. During black box testing of the function compute-grade, altogether at least how many equivalence test cases are needed to be designed, assuming that robust testing is targeted?

a) 6
b) 7
c) 8
d) 9
e) 10

Answer: d) 9

Software Testing NPTEL Week 2 Solutions

Q4. Which one of the following types of bugs may not get detected in black-box testing, but are very likely to be get detected by white-box testing?

a) Incorrect functionality
b) Missing functionality
c) Trojans
d) Incorrect algorithm
e) Performance errors

Answer: c) Trojans

Q5. Consider the following program code. At least how many test cases are needed for basic condition coverage?

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

Answer: a) 2

Q6. Which one of the following captures the basic idea based on which design of the equivalence classes of a function based on its specification is carried out?

a) A set of input values constitute an equivalence class if the tester believes these are processed identicaly
b) A set of test cases constitute an equivalence class, if the tester believes that these are processed differently
c) A set of input values that are partially ordered constitute an equivalence class
d) A set of dissimilar input values constitute an equivalence class
e) Equivalence classes define the behaviorally similar components of a program

Answer: a) A set of input values constitute an equivalence class if the tester believes these are processed identicaly

Software Testing NPTEL Week 2 Solutions

Q7. Which of the following is/are false regarding white-box testing?

a) White-box test cases designed based on the code structure of a program
b) White-box testing is also called structural testing
c) White-box test cases designed based on the design of a program
d) White-box test cases designed based on the requirements specification of a program
e) White-box testing is also called behavioral testing

Answer: c), d), e)

Q8. Assume that a function try takes four parameters w, x, y, and z as arguments. Each of these four parameters can assume values in the range 0 to 100. How many boundary value test cases should be designed for robust testing of the function try?

a) 9
b) 13
c) 17
d) 25
e) 30

Answer: d) 25

Q9. At least how many test cases are required to achieve multiple condition coverage of the following code segment:

a) 2
b) 4
c) 6
d) 8
e) 12

Answer: d) 8

Software Testing NPTEL Week 2 Solutions

Q10. Code coverage analysis is used to measure which one of the following?

a) Extent of unreachable code
b) Sufficiency of test cases
c) Quality of code
d) Distribution of bugs
e) Percentage of bugs exposed

Answer: b) Sufficiency of test cases

<< Prev- Compiler Design NPTEL Week 1 Solutions

>> Next- Compiler Design NPTEL Week 3 Solutions


DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.

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.

Checkout for more NPTEL Courses: Click Here!

Leave a Comment

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