MCQs for Software Engineering: Lecture 10
Lecture 10
1. What is black-box testing primarily concerned with?
**A. Inputs and expected outputs**
B. Internal code logic
C. Debugging errors
D. Testing hardware constraints
2. What is the purpose of boundary value analysis in black-box testing?
A. Debugging system constraints
**B. Testing extreme values at the boundaries**
C. Testing internal paths
D. Validating actors
3. Which of the following is an example of equivalence partitioning?
A. Testing extreme values
**B. Dividing inputs into groups with similar behavior**
C. Validating actors
D. Testing hardware interactions
4. What is comparison testing used for?
A. Testing internal modules
**B. Comparing outputs from multiple implementations**
C. Debugging system constraints
D. Validating functional requirements
5. What does compatibility testing evaluate?
**A. Software performance in different environments**
B. Debugging errors
C. Validating actors
D. Testing runtime performance
6. What is the purpose of state-based testing?
A. Validating user inputs
**B. Evaluating object behavior based on state diagrams**
C. Testing external modules
D. Debugging actors
7. What does equivalence partitioning assume about test cases?
A. Test cases are unique for each input
**B. Behavior is the same for all inputs in a partition**
C. Extreme values must always be tested
D. Outputs are always independent
8. What is backward compatibility testing?
A. Testing software with newer hardware
**B. Ensuring software works with older hardware**
C. Debugging constraints
D. Validating user requirements
9. What is forward compatibility testing?
A. Debugging system constraints
**B. Verifying behavior with newer hardware or software versions**
C. Testing functional requirements
D. Validating external outputs
10. What is the main focus of boundary testing?
**A. Finding errors at the edges of input ranges**
B. Debugging constraints
C. Testing runtime performance
D. Validating user requirements
11. What is a key benefit of black-box testing?
**A. It does not require knowledge of the internal code**
B. It skips system validation
C. It focuses on hardware
D. It tests only functional modules
12. Why is boundary value analysis effective?
**A. Boundaries are common sources of errors**
B. It skips functional tests
C. It ignores partitions
D. It avoids testing extreme values
13. What does state-based testing rely on?
A. External actors
**B. Object state diagrams**
C. Debugging constraints
D. Runtime performance
14. What is the goal of positive testing?
**A. To check if the system works as expected with valid inputs**
B. To test invalid inputs
C. To debug hardware
D. To validate constraints
15. What is the purpose of negative testing?
A. Debugging runtime errors
**B. Checking how the system handles invalid inputs**
C. Validating state diagrams
D. Testing performance
16. What is the focus of equivalence testing?
A. Testing all possible inputs
**B. Testing a representative set of inputs**
C. Debugging errors
D. Validating outputs
17. What is a limitation of comparison testing?
A. It skips functional tests
**B. It is costly and requires multiple implementations**
C. It focuses only on state diagrams
D. It validates actors
18. What is the purpose of user documentation testing?
A. Debugging system errors
**B. Ensuring documentation aligns with software functionality**
C. Testing functional outputs
D. Validating constraints
19. Which technique focuses on corner cases for input values?
A. Equivalence testing
**B. Boundary value analysis**
C. Debugging actors
D. State testing
20. Why is compatibility testing important?
**A. It ensures the software works across various platforms**
B. It focuses only on inputs
C. It skips runtime validation
D. It avoids system errors