Thursday, December 24, 2009

Testing Multiple Choice Questions-1

Black-box Testing Multiple Choice Questions:

Black-box testing - A testing approach whereby the program is considered as a complete entity and the internal structure is ignored. Test data are derived solely from the application’s specification. [The Art of Software Testing]

1
With black box testing, the software tester does not (or should not) have access to the source code itself.

A) True
B) False

2
......... testing comes under black box testing.

A) Unit
B) Functional
C) System
D) Both B & C

3
Black box testing attempts to find errors in the external behavior of the code in the following categories.......

A) incorrect or missing functionality
B) interface errors
C) errors in data structures used by interface
D) behavior or performance errors
E) initialization and termination errors
F) All of above

4
It is best if the person who plans and executes black box tests is not the programmer of the code and does not know anything about the structure of the code.

A) True
B) False

5
The four specification-based or black-box techniques are:

A) Control flow graph
B) boundary value analysis
C) decision tables
D) state transition testing
E) equivalence partitioning

6
Which of the below could be used to evaluate the coverage achieved for specification-based (black-box) test techniques?

1 Decision outcomes tables
2 Partitions exercised
3 Boundaries exercised
4 State transitions tables
5 Statements exercised

A) 1,2,4 or 5
B) 2,3 or 5
C) 1,3 or 5
D) 2, 3, 4 or 5

7
What kind of errors are neglected by black-box testing and can be uncovered by white-box testing ?

A) behavioral errors
B) logic errors
C) performance errors
D) typographical errors
E) Synonymous errors
F) both b and d

8
You can develop a reasonably rigorous test by using certain black-box-oriented test-case-design methodologies

A) Equivalence partitioning
B) Boundary-value analysis
C) Cause-effect graphing
D) Error guessing
E) Statement coverage
F) Decision coverage

9
These two properties, although they appear to be similar, describe two distinct considerations. The first implies that each test case should invoke as many different input considerations as possible to minimize the total number of test cases necessary. The second implies that you should try to partition the input domain of a program into a finite number of equivalence classes such that you can reasonably assume (but, of course, not be absolutely sure) that a test of a representative value of each class is equivalent to a test of any other value.These two considerations form a black-box methodology known as ..........

A) Boundary Value Analysis
B) Equivalence Partitioning
C) Error Guessing
D) Cookie Testing

10
Except when used on small programs, function testing is normally a black-box activity.

A) True
B) False

11
Black-box testing tries to look for errors in which of the following categories

A) incorrect or missing functions
B) interface errors
C) performance errors
D) all of the above
E) none of the above

12
Use-cases can provide useful input into the design of black-box tests of OO software.

A) True
B) False

13
Gray-box testing is a combination of .........

A) Back and white-box testing
B) Black- and white-box testing
C) black- and integration testing
D) None of above

14
While creating unit test cases, ..... are created and documented to validate the unit logic and ..... to test the unit against the specifications

A) White-box test cases, black-box test cases
B) black-box test cases, White-box test cases
C) black-box test cases, black-box test cases
D) None of Above

15
........is a testing technique that requires devising test cases to demonstrate that each program function is operational.

A) black-box testing
B) glass-box testing
C) grey-box testing
D) white-box testing

1) a, 2) d, 3) f, 4) a, 5) b,c,d,e, 6) b, 7) f, 8) a,b,c,d, 9) b, 10) a, 11) d, 12) a, 13) b, 14) a, 15) a