Which of the following are facts about a top-down software testing approach ? I. Top-down testing typically requires the tester to build method stubs. II. Top-down testing typically requires the tester to build test drivers.
only I
Incremental integration testing can proceed top-down (starting from the main control module) or bottom-up (starting from the lowest-level modules). The two approaches need different kinds of scaffolding code.
I. In top-down testing the high-level modules are tested first, while the modules they call are not yet integrated. Those lower modules are replaced by stubs, dummy methods that return fixed values. The statement is true.
II. Test drivers are programs that call a module under test and pass it inputs; they are needed in bottom-up testing, where the low-level modules are tested before the modules that would normally call them exist. In top-down testing the real upper modules already act as the callers, so drivers are not typically required. The statement is false.
Only statement I is a fact about the top-down approach; the choices including II describe bottom-up testing.
only I option is correct.
Which one of the following is not a source code metric ?
Maximum possible value of reliability is
Debugger is a program that
Which one of the following set of attributes should not be encompassed by effective software metrics ?
Which one of the following is used to compute cyclomatic complexity ?
Software testing is
Assume that a program will experience 200 failures in infinite time. It has now experienced 100 failures. The initial failure intensity was 20 failures/CPU hr. Then the current failure intensity will be
Which one of the following is not a definition of error ?
Regression testing is primarily related to
Which of the following statement(s) is/are TRUE with regard to software testing ?
I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance.
II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
Good design dictates that error conditions be anticipated and error-handling paths set up to reroute or clearly terminate processing when an error does occur. This approach is called ________.