250+ TOP MCQs on Object Oriented Testing and Answers

Software Engineering Multiple Choice Questions on “Object Oriented Testing”.

1. The architecture of object-oriented software results in a series of layered subsystems that encapsulate collaborating classes.
a) True
b) False

Answer: a
Clarification: It is necessary to test an OO system at a variety of different levels in an effort to uncover errors that may occur as classes collaborate with one another and subsystems communicate across architectural layers.

2.The construction of object-oriented software begins with the creation of
a) design model
b) analysis model
c) code levels
d) both design and analysis model

Answer: d
Clarification: It is due to the evolutionary nature of the OO software engineering paradigm, these models begin as relatively informal representations of system requirements and evolve into detailed models of classes, class connections and relationships, system design and allocation, and object design.

3. Which testing integrates the set of classes required to respond to one input or event for the system?
a) cluster testing
b) thread-based testing
c) use-based testing
d) none of the mentioned

Answer: b
Clarification: Each thread is integrated and tested individually. Regression testing is applied to ensure that no side effects occur.

4. Which of the following is one of the steps in the integration testing of OO software?
a) cluster testing
b) thread-based testing
c) use-based testing
d) none of the mentioned

Answer: a
Clarification: Here, a cluster of collaborating classes is exercised by designing test cases that attempt to uncover errors in the collaborations.

5. __________ methods can be used to drive validations tests
a) Yellow-box testing
b) Black-box testing
c) White-box testing
d) All of the mentioned

Answer: b
Clarification: Black-box testing methods are as appropriate for OO systems as they are for systems developed using conventional software engineering methods.

6. Which of the following is a part of testing OO code?
a) Validation tests
b) Integration tests
c) Class tests
d) System tests

Answer: c
Clarification: None.

7. The object of ___________within an OO system is to design tests that have a high likelihood of uncovering plausible bugs.
a) Fault-based testing
b) Integration testing
c) Use-based testing
d) Scenario-based testing

Answer: a
Clarification: The object of fault-based testing within an OO system is to design tests that have a high likelihood of uncovering plausible faults.

8. What refers to the externally observable structure of an OO program?
a) Deep structure
b) Surface structure
c) Core structure
d) All of the mentioned

Answer: b
Clarification: Surface structure refers to the externally observable structure of an OO program which is immediately obvious to an end-user.

9. _____________ categorizes class operations based on the generic function that each performs.
a) Category-based partitioning
b) Attribute-based partitioning
c) State-based partitioning
d) None of the mentioned

Answer: a
Clarification: For example, operations in the account class can be categorized in initialization operations (open, setup), computational operations (deposit,withdraw) etc.

10. Which of the following is black-box oriented and can be accomplished by applying the same black-box methods discussed for conventional software?
a) Conventional testing
b) OO system validation testing
c) Test case design
d) Both Conventional testing and OO system validation testing

Answer: d
Clarification: None.

11. In which of the following testing strategies, a smallest testable unit is the encapsulated class or object?
a) Unit testing
b) Integration testing
c) System testing
d) None of the mentioned

Answer: a
Clarification: None.

12. Which of the following testing types is not a part of system testing?
a) Recovery testing
b) Stress testing
c) System testing
d) Random testing

Answer: d
Clarification: It is a testing method at class level.

Leave a Reply

Your email address will not be published. Required fields are marked *