# NPTEL Software Testing Assignment 2 Answers 2022 Are you looking for the Answers to NPTEL Software Testing Assignment 2? This article will help you with the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL Software Testing Assignment 2

## What is Software Testing?

The world has become highly interconnected and hence more complex than ever before. We are surrounded by a multitude of networks in our daily life, for example, friendship networks, online Software Testing, world wide web, road networks etc. All these networks are today available online in the form of graphs which hold a whole lot of hidden information. They encompass surprising secrets which have been time and again revealed with the help of tools like graph theory, sociology, game theory, etc.

## CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find the answers for the NPTEL Software Testing Assignment 2

## NPTEL Software Testing Assignment 2 Answers:-

Q1. Which of the following are black box testing techniques?

Q2. Which one of the following is an implicit assumption made in equivalence class testing?

Q3. A function named compute-interest-rate(amount, months) was developed by the bank to compute the interest rate applicable for a deposit made by a customer. At least how many test cases are needed for weak equivalence class testing of the function compute-interest-rate?

Q4. For the function compute-interest-rate of Q. 3, at least how many test cases are needed for strong equivalence testing?

???? Next Week Answers: Assignment 02 ????

Q5. For the function compute-interest-rate of Q. 3, at least how many test cases are needed for robust equivalence testing?

Q6. Consider a function named solver that solves a quadratic equation of the form ax2+bx+c=0, where a, b, and c are floating point numbers. At least how many test cases are needed for strong equivalence class testing of the function solver considering only valid equivalence classes?

Q7. Consider a function named compute-grade that computes the grade of a student based on his attendance and the total marks obtained out of 100. If the attendance is below 80%, the student is assigned “F” grade irrespective of the marks scored. If the attendance of a student is 80% or more, the student with mark M is assigned a grade from EX, A, B, C, D, P, F depending upon whether M>89%, 90%>M>79%, 80%>M>69%, 70%>M>59%, 60%>M>49%, 50%>M>29%, or M<30%. If the decision making about the grade computation is represented in the form of a decision table, at least how many test cases are needed for decision table testing?

Q8. If a user interface has two check boxes, at least how many test cases are required to achieve pair-wise coverage testing?

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

Q10. 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 function, 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?