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.
Add your answer
Loading...

Leave a comment

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