Software Testing | Week 4

Session Jan-Apr 2023

Course Name: Soft Skills Development

Course Link: Click Here

These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q1. Which one of the following correctly states the purpose of carrying out regression testing after every change made to a software?
a. It ensures the unchanged features continue to work fine.
b. It ensures the changed features continue to work fine.
c. It ensures that the obsolete test cases are removed from the test suite.
d. It ensures that the test suite is properly optimized
e. It ensured that the test suite is properly prioritized

Answer: a. It ensures the unchanged features continue to work fine.


Q2. Which of the following correctly state the purpose of the error seeding technique?
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


These are NPTEL Software Testing Week 4 Assignment 4 Answers


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


Q4. Which of the following types of testing are usually not performed during acceptance testing?
a. Stress testing
b. Functionality testing
c. Mutation testing
d. Recovery testing
e. White box testing

Answer: c, e


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q5. Capture and replay type of tools are useful to carry out which one of the following types of tests?
a. Regression testing
b. Performance testing
c. Mutation testing
d. Smoke testing
e. Monkey testing

Answer: a. Regression testing


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


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q7. In an object-oriented program even if the base class has been thoroughly tested, why is it necessary to retest the inherited methods?
a. A new context of usage occurs in the derived class
b. Code of methods can get corrupted during the process of inheritance
c. Encapsulation prevents testing base class code
d. Inherited methods can be polymorphic
e. Base class methods get augmented during the process of inheritance

Answer: a. A new context of usage occurs in the derived class


Q8. Which one of the following do not support of automating regression testing?
a. Regression test cases are executed frequently
b. Regression test cases are a subset of the original test cases
c. Effective capture and replay type of testing tools are available as open source as well as from commercial offerings
d. Some of the original test cases may require maintenance after a change
e. Code changes may require some of the test cases to be redesigned

Answer: b, d, e


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q9. Which of the following is/are usually not included in the test report?
a. Pre-condition for test case execution that were set up
b. Test inputs exercised
c. Number of times a test case was observed to fail
d. Test outputs observed
e. The suspected error that is causing failure of a test case

Answer: c, e


Q10. From the following, pick the odd testing technique out.
a. Compatibility test
b. Usability test
c. Documentation test
d. Security test
e. Unit test

Answer: e. Unit test


These are NPTEL Software Testing Week 4 Assignment 4 Answers

More Weeks of Software Testing: Click Here

More Nptel course: https://progiez.com/nptel


Session Jul-Dec 2022

Course Name: Software Testing

Link to Enroll: Click here

These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q1. Which of the following best describes a test driver?
a. It is a special purpose implementation of a software module, used to develop or test a component that calls it.
b. It is a software component that replaces another component that takes care of the control and/or the calling of a software component.

Answer: b. It is a software component that replaces another component that takes care of the control and/or the calling of a software component.


Q2. If method A uses a variable v shared with method B, where A writes to v and B reads from v, then, it is an example of which kind of coupling interface listed below?
a. Parameter coupling.
b. Interface coupling.
c. External coupling.
d. Shared data coupling.

Answer: d. Shared data coupling.


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q3. To test sequencing constraints that occur as requirements specification, which of the following tests are used?
a. Tests are inputs to sequencing constraints that violate the constraints.
b. Tests are inputs to sequencing constraints that satisfy the constraints.
c. Tests are sequences of method calls, as they occur in the specification.
d. Tests are randomly generated sequencing constraints.

Answer: a. Tests are inputs to sequencing constraints that violate the constraints.


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q4. A simple path from the last definition to the first use of a coupling variable is called as . . . . . . . ..
a. A du path.
a. A coupling du-path.

Answer: a. A coupling du-path.


Q5. State Yes or No: Are control flow graphs representing code the same as finite state machines that represent the same code?
a. Yes
b. No

Answer: b. No


Q6. Which of the following is true with reference to the graph satisfying the sequencing constraints?
a. All the sequencing constraints are satisfied.
b. Constraints (1) and (2) are satisfied but (3) and (4) are not.
c. Constraints (1), (2) and (3) are satisfied but (4) is not.
d. All constraints are violated.

Answer: b. Constraints (1) and (2) are satisfied but (3) and (4) are not.


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q7. State true or false: The path (1,4,5,7) satisfies constraint (4).
a. True.
b. False.

Answer: b. False.


Q8. State true or false: The path (1,2,3,7) satisfies all the constraints.
a. True.
b. False.

Answer: a. True.


Q9. State yes or no: Does the path (1,4,6,7) violate any of the constraints?
a. Yes.
b. No.

Answer: b. No.


These are NPTEL Software Testing Week 4 Assignment 4 Answers


Q10. State true or false: The path (1,4,6,4,6,7) satisfies all the constraints.
a. Yes.
b. No.

Answer: b. No.


These are NPTEL Software Testing Week 4 Assignment 4 Answers

More Solution of NPTEL: https://progiez.com/nptel



These are NPTEL Software Testing Week 4 Assignment 4 Answers

This content is uploaded for study, general information, and reference purpose only.