NPTEL Software Engineering Week 10 Assignment Answers 2024

Sanket
By Sanket

NPTEL Software Engineering Week 10 Assignment Answers 2024

1. Why is it necessary to test a large program at three different levels: unit, integration, as well as system
levels, rather than testing only at the system level?

a. It reduces the number of test cases that need to be designed
b. It reduces the test execution effort
c. It reduces the debugging effort
d. It reduces test case design effort.
e. It increases thoroughness of testing

Answer :- For Answers Click Here 

2.

image 163
Answer :- For Answers Click Here 

3.

image 164
Answer :- For Answers Click Here 

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

a. 3
b. 4
C. 5
d. 6
e. 7

Answer :- 

5. 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 :- 

6. 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 :- For Answers Click Here 

7.

image 165
Answer :- 

8. Suppose an untested program was determined to contain 640 bugs. Three different testing techniques
were applied to test the code. Each testing technique is effective to detect 50% of the bugs that exist
before the concerned testing technique is applied. While fixing a bug after the application of a test
strategy, there is a 50% chance of creating another bug. How many bugs would exist in the code after
the three testing and bug-fix cycles have been carried out?

a. 200
b. 270
c. 350
d. 448
e. 487

Answer :- 

9. 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 :- 

10. Suppose a function named try takes two Boolean variables as input. How many valid equivalence classes can be designed for the black-box testing of the function try?

a. 2
b. 4
c. 6
d. 8
e. 10

Answer :- For Answers Click Here 
Share This Article
Leave a comment