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?
Regression testing.
When is it that we say that a particular coverage criterion C_1 does not subsume another coverage criterion C_2?
C_1 does not subsume C_2 when there is at least one test case that satisfies C_2 that does not satisfy C_1.
Which of the following statement(s) is/are true:
1) Testing can be used to show that a piece of software is fully correct.
2) Testing can be used to find real errors in code.
3) The purpose of testing is not to show correctness of software but to show errors.
1) Testing can be used to show that a piece of software is fully correct.
2) Testing can be used to find real errors in code.
3) The purpose of testing is not to show correctness of software but to show errors.
2) Testing can be used to find real errors in code.
3) The purpose of testing is not to show correctness of software but to show errors.
3) The purpose of testing is not to show correctness of software but to show errors.
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 deployment?
Level 4 is the most mature and level 0 is the least mature level.
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?
Stress testing.
Which of the following is a list of testing phases where both white-box and black-box techniques are applicable?
a) Unit testing only.
b) Unit testing and integration testing only.
c) Unit testing, integration testing and system testing.
a) Unit testing only.
b) Unit testing and integration testing only.
c) Unit testing, integration testing and system testing.
Unit testing, integration testing and system testing.
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
What are the results of test case execution?
The test case has either passed or failed.
State true or false: Can JUnit be used to pass a collection of test cases for execution and collating the results?
True
What does the JUnit assertion assertFalse(x1 <= x2) return when x1 is greater than x2?
True
Which of the following sentences best defines a test case?
a) A test case contains inputs to the software artifact along with the expected outputs.
b) A test case contains inputs to the software artifact and a decision on pass or fail.
a) A test case contains inputs to the software artifact along with the expected outputs.
b) A test case contains inputs to the software artifact and a decision on pass or fail.
A test case contains inputs to the software artifact along with the expected outputs.
Which of the following is a list of white-box testing techniques?
a) Integration testing, stress testing.
b) Unit testing, integration testing.
a) Integration testing, stress testing.
b) Unit testing, integration testing.
Unit testing, integration testing.
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 user interface of the software is as specified in the requirements.
a) Testing done to ensure that the software looks nice.
b) Testing done to ensure that the user interface of the software is as specified in the requirements.
Testing done to ensure that the user interface of the software is as specified in the requirements.
Which of the following are practised in level 3 thinking during testing?
a) Testing is done mainly by developers, to debug their code.
b) Testing is done to identify failures and reduce risks.
a) Testing is done mainly by developers, to debug their code.
b) Testing is done to identify failures and reduce risks.
Testing is done to identify failures and reduce risks.
When do we say that a set of test cases T satisfies the test requirements TR for a coverage criterion C?
For every test requirement tr ∈ TR, there is at least one test case t ∈ T such that t satisfies tr.