NPTEL Software Testing Week 1 Assignment Answers 2025
1. Which of the following statements describe a failure of a software?
a. A programmer misunderstood a part of the specification
b. A user notices that the results produced do not match with what it should be
c. An expression in C code uses the operator ‘-‘, was used by oversight in place of “+’
d. A program crashes when a tester enters a valid input
e. A reviewer reports that he/she has found a defect in the code.
Answer :- b, d
2. About half the effort of development of a typical software is spent on testing. But, testing typically requires only 10% of the development time. Which one of the following explains this apparent anomaly?
a. A team has too many coders as compared to testers
b. Testing permits many parallel activities
c. A team has too many designers as compared to coders
d. Testers are more proficient as compared to other developers
e. Managers force testers to work overtime
Answer :- b
3. Which of the following are true concerning verification in the context of waterfall-based
development?
a. Carried out by the testers
b. Carried out by the developers
c. Involves both static and dynamic activities
d. Involves only static activities
e. Involves only dynamic activities
Answer :- For Answers Click Here
4. Which one of the following statements is true concerning unit testing?
a. Carried out by the developers
b. Involves testing the system as a whole
c. Often carried out by a separate testing team
d. Carried out by the customers
e. Concerns validation of system functions
Answer :-
5. Which of the following statements are not implied by the pesticide paradox?
a. A software can be tested by repeated application of a testing methodology
b. A software should be tested by successive application of a wide range of testing methodologies
c. The best testing methodology should be used towards the end of the testing phase
d. A software should be tested by deploying the best among all the testing methodologies
e. Any testing methodology is effective only for certain types of errors
Answer :-
6. Which one of the following is true concerning integration testing?
a. Carried out by the developers
b. Involves testing the system as a whole
c. Often carried out by a separate testing team
d. Carried out by the customers
e. Concerns validation of system functions
Answer :- For Answers Click Here
7. What is the purpose of smoke test?
a. Check sanity of the developed system
b. Carry out a final round of testing of the software after black-box and white-box test are over
c. Carry out performance testing
d. Carry out monkey testing
e. Try multiple test cases concurrently to singe the system
Answer :-
8. Which of the following should NOT normally be an objective of a test team?
a. To find faults in the software.
b. To assess whether the software is ready for release.
c. To crash the software by using negative test cases
d. To demonstrate that the software doesn’t work.
e. To prove that the software is correct.
Answer :-
9. Which one of the following activities is a validation activity?
a. Design inspection
b. Acceptance testing
c. Code inspection
d. Simulation
e. Unit testing
Answer :-
10. Which of the following are not true of the V model?
a. During requirements specification phase, system test cases are designed
b. During design phase, integration test cases are designed
c. During coding phase, unit test cases are designed
d. During design phase, unit test cases are designed
e. During requirements specification phase, integration test cases are designed
Answer :- For Answers Click Here
NPTEL Software Testing Week 2 Assignment Answers 2025
1. Which one of the following is an implicit assumption made in equivalence class testing?
a. A program behaves in similar ways to every input value belonging to an equivalence class.
b. Different equivalence classes of a program contain similar bugs
c. Different equivalence classes of a program contain dissimilar bugs
d. Equivalence classes define the behaviorally similar components of a program
e. Equivalence classes define the behaviorally similar code segments of a program
Answer :- For Answers Click Here
2.
Answer :-
3. For the function compute-interest-rate of Q. 2, at least how many test cases are needed for strong equivalence testing?
а. 3
b. 6
C. 8
d. 9
e. 12
Answer :-
4.

Answer :-
5. Consider the following code snippet.
if(i>j) then
if(i>k) then max=i;
else max=k;
else ifj>k) max=j
else max=k;
What would be the basic condition coverage achieved, for a test case with the input values i=5, j=6, k=7?
a. 20%
b. 33.3%
C. 40%
d. 66.6%
e. 100%
Answer :-
6. Which of the following are white-box testing techniques?
a. Statement coverage
b. Cause-effect graphing
c. MC/DC
d. Pair-wise testing
e. Mutation testing
f. Data flow testing
Answer :- For Answers Click Here
7. Consider a function named solver that solves a quadratic equation of the form ax2+bx+e=0, where a, b, and e are floating point numbers. At least how many test cases are needed for equivalence class testing of the function solver considering only valid equivalence classes?
a. 2
b. 3
c. 4
d. 5
e. 9
Answer :-
8. 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%, ог
M<30%. If the decision making about the grade computation is represented in the form of a
decision table, how many test cases are needed for decision table testing?
a. 6
b. 7
с. 8
d. 10
e. 12
Answer :-
9. If a user interface has two check boxes, at least how many test cases are required to achieve pair- wise coverage?
а. 3
b. 4
c. 5
d. 6
e. 7
Answer :-
10. Consider the function find-intersection(m1,c1,m2,c2) that computes the point of intersection of two straight lines of the form y=mxte. For equivalence class testing, at the first level of the
equivalent 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?
а. 1
b. 2
c. 3
d. 4
e. 5
Answer :- For Answers Click Here