Project Management Concepts

A developer checks that one function returns the correct result before it is combined with other code. Which test is this?

Show the answer

Correct answerC. Unit testing

AWhy not this: Regression testing re-runs earlier tests to confirm a change did not break existing features.

BWhy not this: Smoke testing is a quick check that a whole build's critical functions work, not a check of one component.

CWhy this is right: Unit testing checks a single function or module in isolation, usually by the developer, before integration.

DWhy not this: Stress testing pushes the system beyond normal limits to see how and where it fails.

Unit testing verifies the smallest testable pieces, such as a single function or module, in isolation. Smoke testing is a broad, shallow check of a whole build, not of one isolated component.