📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

A programmer writes a function, then immediately tests it in isolation with sample inputs. This is an example of what?

A. Acceptance testing
B. Unit testing ✅
C. Regression testing
D. System testing

Correct Answer: B. Unit testing

Explanation

Unit testing checks the smallest testable part, such as a function or module, in isolation.