1. What is the primary goal of unit testing?
A) To test individual components or functions in isolation
B) To test the interaction between integrated components
C) To test the entire system as a whole
D) To test user interactions with the system
Answer: A
2. Which of the following testing strategies involves testing combined components or systems?
A) Integration Testing
B) Unit Testing
C) System Testing
D) Acceptance Testing
Answer: A
3. Which testing strategy verifies the complete and integrated software system?
A) System Testing
B) Unit Testing
C) Integration Testing
D) Regression Testing
Answer: A
4. What type of testing is performed to ensure that different modules or components of a system work together as expected?
A) Integration Testing
B) Unit Testing
C) System Testing
D) Performance Testing
Answer: A
5. Which testing approach focuses on verifying the smallest testable parts of an application in isolation?
A) Unit Testing
B) Integration Testing
C) System Testing
D) Acceptance Testing
Answer: A
6. What is a common tool used for unit testing in Java?
A) JUnit
B) Selenium
C) JMeter
D) TestNG
Answer: A
7. What is the primary focus of integration testing?
A) To test the interfaces and interaction between modules
B) To test the functionality of individual components
C) To verify the entire system’s compliance with requirements
D) To test end-user scenarios
Answer: A
8. Which type of testing is designed to validate the overall behavior of the software system as per the requirements?
A) System Testing
B) Integration Testing
C) Unit Testing
D) Alpha Testing
Answer: A
9. What does unit testing primarily focus on?
A) Testing individual units or functions of the code
B) Testing interactions between different units
C) Testing the entire system’s performance
D) Testing the user interface
Answer: A
10. Which testing strategy involves testing the software with real-world scenarios and user inputs?
A) System Testing
B) Unit Testing
C) Integration Testing
D) Load Testing
Answer: A
11. Which of the following is a key benefit of unit testing?
A) Early detection of bugs in individual components
B) Testing the entire system in a live environment
C) Validating end-to-end business processes
D) Evaluating system performance under load
Answer: A
12. What is the main objective of system testing?
A) To ensure that the complete and integrated system meets the specified requirements
B) To test interactions between different system modules
C) To evaluate individual software components
D) To assess the system’s performance under stress
Answer: A
13. In which type of testing are mock objects often used?
A) Unit Testing
B) Integration Testing
C) System Testing
D) Acceptance Testing
Answer: A
14. Which testing method focuses on testing the software’s interaction with external systems?
A) Integration Testing
B) Unit Testing
C) System Testing
D) Regression Testing
Answer: A
15. Which type of testing is typically performed after integration testing to verify that integrated components work together correctly?
A) System Testing
B) Unit Testing
C) Smoke Testing
D) User Acceptance Testing
Answer: A
16. What type of testing involves testing the application’s functionality from end to end?
A) System Testing
B) Unit Testing
C) Integration Testing
D) Stress Testing
Answer: A
17. Which testing strategy involves checking the interface between modules?
A) Integration Testing
B) Unit Testing
C) System Testing
D) Acceptance Testing
Answer: A
18. Which of the following is NOT typically a part of unit testing?
A) Functionality testing of individual units
B) Verification of data flow between modules
C) Testing the interaction between multiple modules
D) Checking the correctness of algorithms in isolated code
Answer: B
19. What is the main purpose of a unit test?
A) To ensure that individual code units work as expected
B) To validate the overall system behavior
C) To test the system’s performance under load
D) To check compliance with business requirements
Answer: A
20. Which type of testing is concerned with testing all the interactions of different modules to ensure that they work together?
A) Integration Testing
B) Unit Testing
C) System Testing
D) Regression Testing
Answer: A