# NPTEL Software Engineering Week 10 Assignment Answers

NPTEL Software Engineering Week 10 Assignment Answers:- In this post, we have provided the answers to the NPTEL Software Engineering Week 10. All the answers are provided here on the basis of data available on the internet.

## NPTEL Software Engineering Week 10 Assignment Answers 2022

Q1. Suppose a certain function takes 5 Integer input parameters, and each parameter can assume values in the range of 1 and 100. What is the minimum number of test cases required for robust boundary value testing of the function?

• a. 20
• b. 25
• C. 30
• d. 31
• e. 35
`Answer:- d`

Q2. Consider a function that takes an integer a (which can assume integral values between 0 to 100) as its argument and carries out actions involving setting the value of a variable b, and the value of the variable is displayed, as specified in the following table.

During black box testing of the function, at least how many valid equivalence test cases are required?

• a. 3
• b. 4
• C. 5
• d. 6
• e. 7
`Answer:- b`

Q3. Consider the following function that takes an integer a (that can assume values between 0 to 100) as argument and carries out the following actions involving setting the value of a variable b.

During black box testing of the function, at least how many boundary value test cases are required assuming that robust testing is not targeted?

• a. 5
• b. 7
• C. 10
• d. 12
• e. 14
`Answer:- a`

Q4. Consider a function named solver that solves a quadratic equation of the form ax+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?

• a. 3
• b. 4
• C. 5
• d. 6
• e. 7
`Answer:- a`

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

• a. 6
• b. 7
• c.8
• d. 9
• e. 10
`Answer:- c`

Q6. Scenario coverage testing can be considered to be which one of the following types of testing strategies?

• a. Pair-wise testing
• b. Decision table-based testing
• c. Equivalence partitioning-based testing
• d. Boundary value-based testing
• e. Combinatorial testing
`Answer:- c`

Q7. Consider a function compute-grade has been written by the academic unit of an Institute to compute the grade of a student from the marks obtained. Assume that the following grading scheme is being used by the academic Institute.

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`

Q8. Consider the following test case: “f a user types in a letter in a numeric field, then the program should not crash and should only display the message- incorrect data type, please enter a number.” Which of the following can be said of this test case?

• a. Positive test case
• b. Negative test case
• Black-box test case
• d. White-box test case
• e. Mutation testing
`Answer:- b, c`

Q9. In a certain software development organization it was found based on an analysis of collected data over several completed projects that black box unit tests detect 259% of the total defects detected, White box tests detect 30% of the defects, Integration tests detect 15%, and system tests detect 10% of the defects, and 20% defects were reported by the customers after the release of the software. What proportion of the total test effort should be allocated to integration testing?

• a. 10%
• b. 12%
• C. 15%
• d. 20%
• e. 25 %
`Answer:- d`

Q10. During unit testing, why is it important to test the boundary values ?

• a. It reduces test costs as boundary values are easily computed by hand.
• b. Debugging is easier when testing boundary values.
• C. The correct execution of a function on all boundary values proves that the function is correct.
• d. Programming the boundary conditions is usualy error-prone in practice
• e. Each boundary value test case checks working of two equivalence classes
`Answer:- d`