Thursday, December 24, 2009

Testing Multiple Choice Questions-9

Unit Testing Multiple Choice Questions

1
The goal of unit testing is to isolate each part of the program and show that the individual parts are correctly.

A) True
B) False

2
When software is developed using a test-driven approach, the unit test may take the place of ...... Each unit test can be seen as a design element specifying classes, methods, and observable behavior.

A) informal design
B) formal design
C) unique design
D) both A & B

3
Unit testing is commonly automated, but cannot still be performed manually.

A) True
B) False

4
To ensure testing robustness and simplify maintenance, tests should never rely on other tests nor should they depend on the ordering in which tests are executed.

A) True
B) False

5
Select all unit testing frameworks

A) ASUnit
B) ASPUnit
C) FCTX
D) MinUnit
E) All of above

6
Unit tests should be written without explicit knowledge of the environment context in which they are executed so that they can be run anywhere at anytime.

A) True
B) False

7
As a consequence, unit testing is traditionally a motivator for programmers to create .... and ....... code bodies. This practice promotes healthy habits in software development.

A) uncoupled, uncohesive
B) decoupled, cohesive
C) decohesive, coupled
D) uncoupled, cohesive

8
The most common approach to unit testing requires drivers and stubs to be written.

A) True
B) False

9
The exact scope of a unit is left to interpretation. Supporting test code, sometimes called ......, may be necessary to support an individual test.

A) Conjucture
B) RemUnit
C) scaffolding
D) All of above

10
Internal and unit testing can be automated with the help of ....... tools.

A) Testing
B) coverage
C) scaffolding
D) None

1) a, 2) b, 3) b, 4) a, 5) e, 6) a, 7) b, 8) a, 9) c, 10) b