Design & Implementation Mcqs for Software Engineering - Set 5

1)   Which granularity level of testing checks the behavior of module cooperation ?

a. Unit Testing
b. Integration Testing
c. Acceptance Testing
d. Regression Testing
Answer  Explanation 

ANSWER: Integration Testing

Explanation:
Integration testing is the phase in software testing in which individual software modules are combined and tested as a group.


2)   What do you understand by V&V in software testing ?

a. Verified Version
b. Version Validation
c. Verification and Validation
d. Version Verification
Answer  Explanation 

ANSWER: Verification and Validation

Explanation:
V&V generally refers to any activity that attempts to ensure that the software will function as required.


3)   Which test refers to the retesting of a unit, integration and system after modification, in order to ascertain that the change has not introduced new faults ?

a. Regression Test
b. Smoke Test
c. Alpha Test
d. Beta Test
Answer  Explanation 

ANSWER: Regression Test

Explanation:
Regression test seeks to uncover new software bugs in existing functional and non-functional areas of a system after changes have been made to them.


4)   In which test design each input is tested at both ends of its valid range and just outside its valid range ?

a. Boundary value testing
b. Equivalence class partitioning
c. Boundary value testing AND Equivalence class partitioning
d. Decision tables
Answer  Explanation 

ANSWER: Equivalence class partitioning

Explanation:
Boundary value analysis is a software testing technique in which tests are designed to include representatives of boundary values.


5)   When does the testing process stops ?

a. When resources (time and budget) are over
b. When some coverage is reached
c. When quality criterion is reached
d. Testing never ends
Answer  Explanation 

ANSWER: When quality criterion is reached

Explanation:
As software testing is an exhaustive process, when the quality assurance is established and the product is ready to be delivered, testing is stopped.


6)   Specifying a set of test cases or test paths for each item to be tested at that level is known as__________________?

a. Test case generation
b. Test case design
c. ALL of the mentioned
d. None of the mentioned
Answer  Explanation 

ANSWER: ALL of the mentioned

Explanation:
No explanation is available for this question!


7)   You want to avoid multiple inheritance. Which design pattern would you choose ?

a. Abstraction-Occurrence Pattern
b. Player-Role Pattern
c. General Hierarchy Pattern
d. Singleton Pattern
Answer  Explanation 

ANSWER: Player-Role Pattern

Explanation:
The answer is self-explanatory.


8)   In factory method pattern, the framework must instantiate classes but it only knows about the abstract classes, which it cannot initiate. How would one solve this problem ?

a. encapsulating the knowledge of which document subclass to is to be created and
b. moving this knowledge out of the framework
c. instantiating the application specific documents without knowing their class
d. all of the mentioned
Answer  Explanation 

ANSWER: all of the mentioned

Explanation:
Following all the options in order will solve the factory method problem.


9)   Which design pattern defines one-to-many dependency among objects ?

a. Singleton pattern
b. Facade Pattern
c. Observer pattern
d. Factory method pattern
Answer  Explanation 

ANSWER: Observer pattern

Explanation:
Observer pattern defines one-to-many dependency among objects so that when one object changes its state, all its dependents are notified.


10)   Which pattern prevents one from creating more than one instance of a variable ?

a. Factory Method
b. Singleton
c. Observer
d. None of the mentioned
Answer  Explanation 

ANSWER: Singleton

Explanation:
In singleton pattern, the class itself is made responsible for keeping track of its instance.Thus it ensures that no more than one instance is created.