Software Testing NPTEL Week 1 Assignment Answers

Are you looking for Software Testing NPTEL Week 1 Assignment Answers? You’ve come to the right place! Access the latest and most accurate solutions for your Week 6 assignment in the Software Testing course


Software Testing NPTEL Week 1 Assignment Answers
Software Testing NPTEL Week 1 Assignment Answers

Software Testing NPTEL Week 1 Assignment Answers (July-Dec 2025)


Question 1. Choose the right option to fill in the blank: Suppose a method M1 calls a method M2, which in turn, calls another method M3. The level of testing that tests for the interface of calls from M1 to M2 and then to M3 is called as . . . . . . . . . . . ..
a) Functional testing.
b) Unit testing.
c) Integration testing.
d) System testing.

View Answers


Question 2. State true of false: A coverage criterion C1 is said to subsume another coverage criterion C2 if there is at least one test case that satisfies C1 which also satisfies C2.
a) True.
b) False.

View Answers


Question 3. State true or false: Testing can be used to find all the errors in code.
a) True.
b) False.

View Answers


Question 4. Which of the following are practised in level 3 thinking during testing?
a) Testing is a mental discipline, everyone in an organization strives to test thoroughly.
b) Testing is done mainly by developers, to debug their code.
c) Testing is done to identify failures and reduce risks.
d) Testing is done to show absence of errors.

View Answers


Question 5. Which of the following best defines usability testing?
a) Testing done to ensure that the software looks nice.
b) Testing done to ensure that the software is usable by all the users.
c) Testing done to understand how users can use a software.
d) Testing done to ensure that the user interface of the software is as specified in the requirements.

View Answers


Question 6. Which of the following is a list of white-box testing techniques?
a) Unit testing, performance testing.
b) Integration testing, stress testing.
c) Unit testing, integration testing.
d) Usability testing, performance testing.

View Answers


Question 7. As per the lectures, which of the following sentences best defines a test case?
a) A test case contains only inputs to the software artifact.
b) A test case contains inputs to the software artifact along with the expected outputs.
c) A test case contains inputs to the software artifact and a decision on pass or fail.
d) A test case contains inputs to the software artifact, which is run and the actual output is also recorded as a part of the test case.

View Answers


Question 8. When do we say that a set of test cases T satisfies the test requirements TR for a coverage criterion C?
a) For every test requirement tr ∈ TR, there is exactly one test case t ∈ T such that t satisfies tr.
b) For some test requirement tr ∈ TR, there is some test case t ∈ T such that t satisfies tr.
c) For some test requirement tr ∈ TR, all the test cases t ∈ T are such that t satisfies tr.
d) For every test requirement tr ∈ TR, there is at least one test case t ∈ T such that t satisfies tr.

View Answers


Question 9. When do we say that a coverage criterion C1 subsumes a coverage criterion C2?
a) C1 subsumes C2 iff some test case that satisfies C1 also satisfies C2.
b) C1 subsumes C2 iff every test case that satisfies C1 also satisfies C2.

View Answers


Question 10. What does the JUnit assertion assertFalse(val1 > val2) return when val1 is less than val2?
a) True.
b) False.

View Answers


Software Testing NPTEL Week 1 Assignment Answers (Jan-Apr 2025)

Course Link: Click Here


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 – 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.

View Answer


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 overtime.

View Answer


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.

View Answer

These are Software Testing NPTEL Week 1 Assignment Answers


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.

View 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.
See also  Big Data Computing Nptel Week 1 Assignment Answers

View Answer

These are Software Testing NPTEL Week 1 Assignment Answers


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.

View Answer


7. What is the purpose of a 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 tests are over.
  • C) Carry out performance testing.
  • D) Carry out monkey testing.
  • E) Try multiple test cases concurrently to “singe” the system.

View 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.

View 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.

View 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.

View Answer


Software Testing NPTEL Week 1 Assignment Answers (Jul-Dec 2024)

Course Link: Click Here


Q1.An error was detected in a piece of code in the version that was ready for release, just before the release. The error was successfully fixed by the concerned software developer who did not test if the entire software is working correctly with the fix. Which kind of testing did the developer fail to do?
System testing.
Integration testing.
Regression testing.
Functional testing.

Answer: Regression testing.


Q2.When is it that we say that a particular coverage criterion C1 does not subsume another coverage criterion C2?
C1 does not subsume C2 when there is at least one test case that satisfies C1 that does not satisfy C2.
C1 does not subsume C2 when there is at least one test case that satisfies C2 that does not satisfy C1

Answer: a)C1 does not subsume C2 when there is at least one test case that satisfies C1 that does not satisfy C2.


These are Software Testing NPTEL Week 1 Assignment Answers


Q3.Consider the statements regarding testing given below.
Testing can be used to find all the errors in code.
Testing can be used to show that a piece of software is fully correct.
Testing can be used to find real errors in code.
The purpose of testing is not to show correctness of software but to
show errors.
Which of the following is true about the above-given statements?

All the statements above are correct.
The first and second statements are correct.
The third and fourth statements are correct.
Only the fourth statement is correct.

Answer: Only the fourth statement is correct.


These are Software Testing NPTEL Week 1 Assignment Answers


Q4.With reference to the various levels of testing, which level is the most mature and ideal for reducing errors in software and which level is the least mature and possibly leads to unknown faults being found after de- ployment?
Level 4 is the most mature and level 0 is the least mature level.
All the levels are at equal risk, there is no notion of one level being more mature than the other.
Level 0 is the most mature and level 4 is the least mature level.
Level 4 is the most mature and level 1 is the least mature level, level 0 is of not much use for consideration.

Answer: Level 4 is the most mature and level 0 is the least mature level.


These are Software Testing NPTEL Week 1 Assignment Answers


Q5.A particular software requirement specifies that a piece of software running on a cloud server needs to respond really fast even when thousands of users login simultaneously and request for services. Which kind of testing is done to check for such a requirement?
System testing.
Stress testing.
Performance testing.
Functionality testing.

Answer :Performance testing.


These are Software Testing NPTEL Week 1 Assignment Answers


Q6.Which of the following is a list of testing phases where both white-box and black-box techniques are applicable?
Unit testing only.
Unit testing and integration testing only.
Unit testing, integration testing and system testing.
None of the above.

Answer: Unit testing, integration testing and system testing.


These are Software Testing NPTEL Week 1 Assignment Answers


Q7.State true or false: There are certain phases in the software development and testing life-cycle where predominantly only black-box testing tech- niques are used.
True.
False.

Answer: True.


These are Software Testing NPTEL Week 1 Assignment Answers


Q8.What are the results of test case execution?
There is an explicit message that test case execution has caused an error in the program.
There is an explicit message that there is no error from the test case.
The test case has either passed or failed.
The program produces an output that is the same as the expected output.

Answer: The test case has either passed or failed.


These are Software Testing NPTEL Week 1 Assignment Answers


Q9.State true or false: Can JUnit be used to pass a collection of test cases for execution and collating the results?
True.
False.

Answer: True.


Q10.What does the JUnit assertion assertFalse(x1 <= x2) return when x1 is greater than x2?
True.
False.

Answer: True.


These are Software Testing NPTEL Week 1 Assignment Answers

Software Testing NPTEL Week 1 Assignment Answers (Jan-Apr 2024)

Q1. Pick the correct statement from the following:
a. Every programming error causes a bug
b. Every programming error is caused by a failure
c. Every failure is caused by a fault
d. Every bug can be tracked to a programming error
e. Every bug causes a failure

See also  All About NPTEL

Answer: c. Every failure is caused by a fault


Q2. The main purpose of integration testing is to find which one of the following types of errors?
a. Logic errors
b. algorithm errors
c. Arithmetic errors
d. Design errors
e. Module interfacing errors

Answer: e. Module interfacing errors


Q3. Which of the following are performance test cases for a Library automation software?
a. Measuring the response time of book issue
b. Checking whether a book is correctly removed from the list of borrowed books of a member after return of the book
c. Checking how easy the system is to use by a member
d. Checking if after the details of a procured book is entered, it is corrected added to the book list
e. Checking whether a member can issue out a reserved book

Answer: a, c


For answers or latest updates join our telegram channel: Click here to join

These are Software Testing NPTEL Week 1 Assignment Answers


Q4. Usability issues are tested during which one of the following type of testing?
a. Unit testing
b. Integration testing
c. Performance testing
d. Regression testing
e. Smoke testing

Answer: c. Performance testing


Q5. The purpose of the error seeding technique is which of the following?
a. Determine the origin of the bugs
b. Plant trojans in code
c. Determine the number of latent bugs
d. Plant insidious bugs before delivery to the customer
e. Introduce known bugs in code to determine whether testing is adequate

Answer: c. Determine the number of latent bugs
e. Introduce known bugs in code to determine whether testing is adequate


Q6. Which of the following are false concerning verification?
a. Helps answer the question: “Have you built the right thing?”
b. Concerns checking the final product against its specification.
c. Usually carried out by the test team.
d. May consist of review and simulation activities
e. Checks whether an artifact produced at the end of a phase conforms to the corresponding artifact produced in a previous phase.

Answer: a. Helps answer the question: “Have you built the right thing?”
b. Concerns checking the final product against its specification.
c. Usually carried out by the test team.


For answers or latest updates join our telegram channel: Click here to join

These are Software Testing NPTEL Week 1 Assignment Answers


Q7. Who among the following performs acceptance testing?
a. Customer
b. Quality assurance team of the developing organization
c. Developers
d. System analysts
e. Test team of the developing organization
f. Independent third party testers

Answer: a. Customer


Q8. Which one of the following testing techniques would be effective for testing whether a developed software meets its non-functional requirements?
a. Path testing
b. Dataflow testing
c. Performance testing
d. Robust boundary-value testing
e. Smoke testing

Answer: c. Performance testing


Q9. Unit testing of a software module does NOT test which of the following?
a. Whether the module interfaces well with other modules.
b. Whether the functions in the module are working as per design.
c. Whether all arithmetic statements in the module are working properly.
d. Whether the module meets the non-functional requirements specified in the SRS document
e. Whether all control statements in the module are working properly.

Answer: a. Whether the module interfaces well with other modules.
d. Whether the module meets the non-functional requirements specified in the SRS document


For answers or latest updates join our telegram channel: Click here to join

These are Software Testing NPTEL Week 1 Assignment Answers


Q10. Suppose an untested program was determined to contain 1280 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. After each testing strategy is applied a bug fix cycle is carried out. While fixing a bug, 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. 400
b. 540
c. 760
d. 840
e. 1024

Answer: b. 540


For answers or latest updates join our telegram channel: Click here to join

These are Software Testing NPTEL Week 1 Assignment Answers

More Weeks of Software Testing: Click here

More Nptel Courses: https://progiez.com/nptel-assignment-answers


Software Testing NPTEL Week 1 Assignment Answers (July-Dec 2023)

Course Link: Click Here

These are Software Testing NPTEL Week 1 Assignment Answers


Q1) The purpose of the error seeding technique is which of the following?
a. Determine the origin of the bugs
b. Plant trojans in code
c. Determine the number of latent bugs
d. Plant insidious bugs before delivery to the customer
e. Introduce known bugs in code to determine whether testing is adequate

Answer: c, e


Q2) The main purpose of integration testing is to find which one of the following types of errors?
a. Logic errors
b. algorithm errors
c. Arithmetic errors
d. Design errors
e. Module interfacing errors

Answer: e. Module interfacing errors


These are Software Testing NPTEL Week 1 Assignment Answers


Q3) Usability issues are tested during which one of the following type of testing?
a. Unit testing
b. Integration testing
c. Performance testing
d. Regression testing
e. Smoke testing

Answer: c. Performance testing


Q4) Pick the correct statement from the following :
a. Every programming error causes a bug
b. Every programming error is caused by a failure
c. Every failure is caused by a fault
d. Every bug can be tracked to a programming error
e. Every bug causes a failure

Answer: c. Every failure is caused by a fault

See also  Soft Skills Nptel Week 1 Assignment Answers

These are Software Testing NPTEL Week 1 Assignment Answers


Q5) Which one of the following is false concerning verification?
a. Helps answer the question : “Have you built the right thing?”
b. Concerns checking the final product against its specification.
c. Usually carried out by the test team.
d. May consist of review and simulation activities
e. Checks whether an artifact produced at the end of a phase conforms to the corresponding artifact produced in a previous phase.

Answer: a, b, c


Q6) Who among the following performs acceptance testing?
a. Customer
b. Quality assurance team of the developing organization
c. Developers
d. System analysts
e. Test team of the developing organization

Answer: a. Customer


These are Software Testing NPTEL Week 1 Assignment Answers


Q7) Which one of the following testing technique is effective for testing whether a developed software meets its non-functional requirements?
a. Path testing
b. Dataflow testing
c. Performance testing
d. Robust boundary-value testing
e. Smoke testing

Answer: c. Performance testing


Q8) Unit testing of a software module does NOT test which of the following?
a. Whether the module interfaces well with other modules.
b. Whether the functions in the module are working as per design.
c. Whether all arithmetic statements in the module are working properly.
d. Whether the module meets the non-functional requirements specified in the SRS document
e. Whether all control statements in the module are working properly.

Answer: a, d


These are Software Testing NPTEL Week 1 Assignment Answers


Q9) Which one of the following can be inferred from the pesticide paradox?
a. Greater number of bugs are detected towards the end of a testing process
b. More severe bugs are detected towards the end of a testing process
c. After a test methodology has been used on a program to detect bugs, it is ineffective for detecting the remaining bugs
d. A test methodology should be applied again and again until all the bugs have been eliminated
e. A good testing methodology when used several times on a program, effectively expose almost all bugs latent in it

Answer: c. After a test methodology has been used on a program to detect bugs, it is ineffective for detecting the remaining bugs


Q10) The V model of software development is not appropriate for the development of which of the following applications?
a. Nuclear reactor control software
b. Avionics software
c. Automotive control software
d. Management information system (MIS) software
e. Graphical user interface development project

Answer: d, e


These are Software Testing NPTEL Week 1 Assignment Answers


1. Choose the right option to fill in the blank: Suppose a method M1M1 calls a method M2M2, which in turn, calls another method M3M3. The level of testing that tests for the interface of calls from M1M1 to M2M2 and then to M3M3 is called as . . . . . . . . . . . ..

a. Functional testing.
b. Unit testing.
c. Integration testing.
d. System testing.

Answer:- c


2. State true or false: A coverage criterion C1 said to subsume another coverage criterion C2 if there is at least one test case that satisfies C1 which also satisfies C2.

a. True.
b. False.

Answer:- b


These are Software Testing NPTEL Week 1 Assignment Answers


3. State true or false: Testing can be used to find all the errors in code.

a. True.
b. False.

Answer:- a

These are Software Testing NPTEL Week 1 Assignment Answers


4. Which of the following are practised in level 3 thinking during testing?

a. Testing is a mental discipline, everyone in an organization strives to test thoroughly.
b. Testing is done mainly by developers, to debug their code.
c. Testing is done to identify failures and reduce risks.
d. Testing is done to show absence of errors.

Answer:- c

These are Software Testing NPTEL Week 1 Assignment Answers


5. Which of the following best defines usability testing?

a. Testing done to ensure that the software looks nice.
b. Testing done to ensure that the software is usable by all the users.
c. Testing done to understand how users can use a software.”
d. Testing done to ensure that the user interface of the software is as specified in the requirements

Answer:- d


6. Which of the following is a list of white-box testing techniques?

Answer:- c

These are Software Testing NPTEL Week 1 Assignment Answers


7. As per the lectures, which of the following sentences best defines a test case?

a. A test case contains only inputs to the software artifact.
b. A test case contains inputs to the software artifact along with the expected outputs
c. A test case contains inputs to the software artifact and a decision on pass or fail.
d. A test case contains inputs to the software artifact, which is run and the actual output is also recorded as a part o f the test case.

Answer:- b


These are Software Testing NPTEL Week 1 Assignment Answers


8. When do we say that a set of test cases T satisfies the test requirements TR for a coverage criterion C?

a. For every test requirement tr ∈ TR, there is exactly one test case t ∈ T such that t satisfies tr.
b. For some test requirement tr ∈ TR, there is some test case tt such that t∈T such that t satisfies tr.
c. For some test requirement tr∈TR, all the test cases t∈T are such that tt satisfies tr.
d. For every test requirement tr ∈ TR, there is at least one test case t ∈ T such that t satisfies tr.

Answer:- d

These are Software Testing NPTEL Week 1 Assignment Answers


9. When do we say that a coverage criterion C1 subsumes a coverage criterion C2?

Answer:- b


These are Software Testing NPTEL Week 1 Assignment Answers


10. What does the JUnit assertion assertFalse(val1 > val2) return whenval1 is less than val2?

a. True.
b. False.

Answer:- b

These are Software Testing NPTEL Week 1 Assignment Answers

More Weeks of Software Testing: Click here

More Nptel Courses: https://progiez.com/nptel-assignment-answers


These are Software Testing Week 1 Assignment 1 Nptel Answers