NPTEL Software Testing Week 1 Assignment Answers 2024

NPTEL Software Testing Week 1 Assignment Answers 2024

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:- For Answer Click Here

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:-  For Answer Click Here

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

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:-  For Answer Click Here

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

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

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:-  For Answer Click Here

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

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:-  For Answer Click Here

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

Answer:-