Question

    Which testing type evaluates internal code logic and

    control flow?
    A Unit Testing Correct Answer Incorrect Answer
    B Integration Testing Correct Answer Incorrect Answer
    C White Box Testing Correct Answer Incorrect Answer
    D Black Box Testing Correct Answer Incorrect Answer
    E User Acceptance Testing (UAT) Correct Answer Incorrect Answer

    Solution

    White Box Testing , also known as glass box or transparent box testing, evaluates the internal structure, logic, and flow of code. Testers use knowledge of the internal architecture to design test cases, focusing on code coverage, control structures, and paths. Techniques such as statement coverage, branch coverage, and path coverage are commonly used. For example, a white box test might verify that a loop executes the expected number of times or that all branches of an if-else statement are tested. This method ensures robust code quality and early defect detection. Why Other Options Are Incorrect :

    1. Unit Testing : This focuses on testing individual components or modules, regardless of their internal code logic.
    2. Integration Testing : This evaluates how different modules interact, without detailed inspection of internal logic.
    3. Black Box Testing : This examines external functionality without insight into the internal code structure.
    4. User Acceptance Testing (UAT) : This validates the system against user requirements and does not involve code-level testing.

    Practice Next