A developer has written a new sorting algorithm. To verify its correctness, which type of testing should primarily be applied?
- Acceptance Testing
- Integration Testing
- Performance Testing
- Unit Testing
Unit Testing is the process of verifying individual units or components of a software. Since a sorting algorithm is a singular function or component, unit tests are essential to ensure that it works correctly in isolation. This ensures that the algorithm correctly sorts data under various scenarios before it's integrated with other components.
Loading...
Related Quiz
- What does the term "WCAG" stand for in the context of web accessibility?
- You are leading a testing team for a critical application, and during the test control phase, you realize that many identified bugs are not being fixed. How would you handle this situation?
- Which SDLC model involves continuous iterations of development and testing?
- _______ are specific markers added to elements in HTML to improve their accessibility features.
- When using the "stubs" and "drivers" approach in testing, which form of integration testing is typically being employed?