- 1 : With thorough testing it is possible to remove all defects from a program prior to delivery to the customer.
- a. True b. False
- The correct answer is b
- 2 : Which of the following are characteristics of testable software?
- a. observability b. simplicity c. stability d. all of the above
- The correct answer is d
- 3 : The testing technique that requires devising test cases to demonstrate that each program function is operational is called
- a. black-box testing
- b. glass-box testing
- c. grey-box testing
- d. white-box testing
- The correct answer is a
- 4 : The testing technique that requires devising test cases to exercise the internal logic of a software module is called
- a. behavioral testing
- b. black-box testing
- c. grey-box testing d. white-box testing
- The correct answer is d
- 5 : What types of errors are missed 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. both b and d
- The correct answer is e
- 6 : Program flow graphs are identical to program flowcharts.
- a. True b. False
- The correct answer is b
- 7 : The cyclomatic complexity metric provides the designer with information regarding
- the number of
- a. cycles in the program
- b. errors in the program
- c. independent logic paths in the program
- d. statements in the programThe correct answer is c
- 8 : The cyclomatic complexity of a program can be computed directly from a PDL
- representation of an algorithm without drawing a program flow graph.
- a. True b. False
- The correct answer is a
- 9 : Condition testing is a control structure testing technique where the criteria used to
- design test cases is that they
- a. rely on basis path testing
- b. exercise the logical conditions in a program module
- c. select test paths based on the locations and uses of variables
- d. focus on testing the validity of loop constructs
- The correct answer is b
- 10 : Data flow testing is a control structure testing technique where the criteria used to
- design test cases is that they
- a. rely on basis path testing
- b. exercise the logical conditions in a program module
- c. select test paths based on the locations and uses of variables
- d. focus on testing the validity of loop constructs
- The correct answer is c
- 11 : Loop testing is a control structure testing technique where the criteria used to design
- test cases is that they
- a. rely basis path testing
- b. exercise the logical conditions in a program module
- c. select test paths based on the locations and uses of variables
- d. focus on testing the validity of loop constructs
- The correct answer is d
- 12 : Black-box testing attempts to find 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
- The correct answer is d
- 13 : Graph-based testing methods can only be used for object-oriented systems
- a. True b. False
- The correct answer is b
14 : Equivalence testing divides the input domain into classes of data from which test cases can be derived to reduce the total number of test cases that must be developed.
a. True b. False
The correct answer is a
15 : Boundary value analysis can only be used to do white-box testing.
a. True b. False
The correct answer is b
16 : Comparison testing is typically done to test two competing products as part of customer market analysis prior to product release.
a. True b. False
The correct answer is b
17 : Orthogonal array testing enables the test designer to maximize the coverage of the test cases devised for relatively small input domains.
a. True b. False
The correct answer is a
18 : Test case design "in the small" for OO software is driven by the algorithmic detail of
the individual operations.
a. True b. False
The correct answer is a
19 : Encapsulation of attributes and operations inside objects makes it easy to obtain object state information during testing.
a. True b. False
The correct answer is b
20 : Use-cases can provide useful input into the design of black-box and state-based tests
of OO software.
a. True b. False
The correct answer is a
21 : Fault-based testing is best reserved for
a. conventional software testing
b. operations and classes that are critical or suspect
c. use-case validation
d. white-box testing of operator algorithms
The correct answer is b
22 : Testing OO class operations is made more difficult by
a. encapsulation b. inheritance c. polymorphism d. both b and c
The correct answer is d
23 : Scenario-based testing
a. concentrates on actor and software interaction
b. misses errors in specifications
c. misses errors in subsystem interactions
d. both a and b
The correct answer is a
24 : Deep structure testing is not designed to
a. examine object behaviors
b. exercise communication mechanisms
c. exercise object dependencies
d. exercise structure observable by the user
The correct answer is d
25 : Random order tests are conducted to exercise different class instance life histories.
a. True b. False
The correct answer is a
26 : Which of these techniques is not useful for partition testing at the class level
a. attribute-based partitioning
b. category-based partitioning
c. equivalence class partitioning
d. state-based partitioning
The correct answer is c
27 : Multiple class testing is too complex to be tested using random test cases.
a. True b. False
The correct answer is b
28 : Tests derived from behavioral class models should be based on the a. data flow
diagram
b. object-relation diagram
c. state diagram
d. use-case diagram
The correct answer is c
29 : Client/server architectures cannot be properly tested because network load is highly
variable.
a. True b. False
The correct answer is b
30 : Real-time applications add a new and potentially difficult element to the testing mix
a. performance b. reliability c. security d. time
The correct answer is d
1 comment:
thanks a lot,Manish.
Post a Comment