White & Black Box Software Testing

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Alfredhook3
A
Alfredhook3
Community Contributor
Quizzes Created: 4044 | Total Attempts: 3,041,032
| Questions: 15 | Updated: Jun 17, 2026
Please wait...
Question 1 / 16
🏆 Rank #--
0 %
0/100
Score 0/100

1. What does White Box Testing examine?

Explanation

White Box Testing focuses on the internal workings of a software application. It involves examining the code, algorithms, and logic to ensure that all paths and conditions are tested. This type of testing allows for the identification of hidden errors and vulnerabilities by providing insight into how the program operates internally. It contrasts with Black Box Testing, which assesses functionality without knowledge of the internal code. By analyzing the internal structure, testers can verify that the software behaves as expected under various conditions.

Submit
Please wait...
About This Quiz
White & Black Box Software Testing - Quiz

This assessment focuses on White & Black Box Software Testing, covering key concepts like Cyclomatic Complexity, Unit Testing, and testing methodologies. It's designed to enhance your understanding of how to evaluate software functionality and code structure effectively. Mastering these concepts is crucial for software quality assurance professionals.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which formula is used to calculate Cyclomatic Complexity?

Explanation

Cyclomatic Complexity is a software metric used to measure the complexity of a program. It is calculated using the formula V(G) = E - N + 2P, where E represents the number of edges in the control flow graph, N is the number of nodes, and P is the number of connected components (usually 1 for a single program). This formula helps identify the number of linearly independent paths through the program, indicating its complexity and potential testing requirements. Higher values suggest more complex code, which may be harder to maintain and test.

Submit

3. Cyclomatic Complexity indicates the ______ number of test cases required for a program.

Explanation

Cyclomatic Complexity measures the number of linearly independent paths through a program's source code. It helps identify the minimum number of test cases needed to achieve comprehensive coverage of all possible execution paths. By determining the complexity, developers can ensure that all logical branches are tested, reducing the chances of undetected errors. Therefore, it indicates the minimum number of test cases required to adequately validate the program's functionality and ensure robustness.

Submit

4. Given a control flow graph with E = 12, N = 10, and P = 1, what is the Cyclomatic Complexity?

Explanation

Cyclomatic Complexity (CC) is calculated using the formula CC = E - N + 2P, where E is the number of edges, N is the number of nodes, and P is the number of connected components. In this case, substituting the values gives CC = 12 - 10 + 2(1) = 4. This metric helps to measure the complexity of a program's control flow, indicating the number of linearly independent paths through the code, which is useful for assessing maintainability and testing effort.

Submit

5. Unit Testing validates individual functions or modules in isolation.

Explanation

Unit testing focuses on verifying the functionality of specific components or functions within a software application independently from the rest of the system. By isolating these units, developers can ensure that each piece of code performs as expected, making it easier to identify and fix bugs early in the development process. This approach enhances code reliability and simplifies integration, as each unit has been tested in isolation before being combined with other components.

Submit

6. In the branch coverage example (if s >= 50), which two test inputs are needed for complete branch coverage?

Explanation

To achieve complete branch coverage in the given example, we need to test both outcomes of the condition (s >= 50). The input s = 75 satisfies the condition (true branch), while s = 40 does not (false branch). This combination ensures that both branches of the conditional statement are executed, thereby verifying the program's behavior under different scenarios. Other options do not effectively cover both branches, making s = 75 and s = 40 the optimal choice for achieving complete branch coverage.

Submit

7. A Control Flow Graph (CFG) is used to visualize program execution flow and help identify ______ paths.

Explanation

A Control Flow Graph (CFG) represents the flow of control within a program, illustrating how different paths are executed based on various conditions. By analyzing the CFG, one can identify independent paths, which are sequences of execution that do not affect each other. These paths are crucial for understanding the program's structure, optimizing performance, and ensuring thorough testing. Identifying independent paths helps developers focus on critical sections of code and enhances the overall reliability of the software by ensuring that all potential execution routes are considered.

Submit

8. Black Box Testing evaluates software functionality without any knowledge of internal code.

Explanation

Black Box Testing focuses on assessing the software's outputs based on various inputs, without any insight into the internal workings or code structure. This approach allows testers to evaluate the software from an end-user perspective, ensuring that it meets requirements and functions correctly in real-world scenarios. By isolating the testing process from the code, it helps identify discrepancies between expected and actual behavior, making it a valuable method for validating software functionality.

Submit

9. Which of the following is a failure type detectable by Black Box Testing?

Explanation

Black Box Testing focuses on evaluating the functionality of a software application without examining its internal code structure. It tests inputs and outputs to ensure the application behaves as expected. Missing functions and interface errors directly impact user experience and functionality, making them detectable in this testing approach. In contrast, issues like incorrect loop boundaries, uninitialized variables, or data structure implementation are internal code-related problems that Black Box Testing does not address, as it does not involve code analysis.

Submit

10. In Equivalence Partitioning for an admission system accepting 50%–90%, which input belongs to the valid equivalence class?

Explanation

In Equivalence Partitioning, valid equivalence classes represent ranges of acceptable input values. For an admission system accepting scores between 50% and 90%, any score within this range is considered valid. Among the options provided, 75 falls within the specified range (50% to 90%), making it a valid input. The other options, such as 40, 49, and 95, fall outside this range and are therefore invalid. Thus, 75 is the only score that meets the criteria for acceptance.

Submit

11. Boundary Value Analysis focuses on testing values at the ______ of input ranges because most defects appear there.

Explanation

Boundary Value Analysis is a testing technique that prioritizes the examination of values at the edges of input ranges, known as extremes. This approach is based on the observation that many software defects tend to occur at these boundaries rather than within the middle of the range. By testing the minimum and maximum values, as well as just outside these limits, testers can effectively identify potential issues that may not be evident when assessing values within the normal operational range. This method enhances the likelihood of uncovering critical bugs that could impact system performance.

Submit

12. In the ATM Withdrawal System case study, how many independent paths were identified using Basis Path Testing?

Explanation

In Basis Path Testing, independent paths are identified through control flow analysis of the program's structure. In the ATM Withdrawal System case study, three distinct paths were determined based on the different conditions and decisions present in the system. These paths represent unique sequences of operations that can be executed, allowing for comprehensive testing of the system's functionality. By ensuring that each path is tested, the methodology helps uncover potential errors and verifies that all logical branches work as intended. Thus, three independent paths were identified for thorough testing.

Submit

13. Match each testing concept with its correct description.

Submit

14. In the ATM combination testing scenario with Card Type (2), Language (3), and Transaction (3), what is the total number of combinations?

Explanation

To find the total number of combinations in the ATM scenario, multiply the number of options for each variable: Card Type (2) × Language (3) × Transaction (3). This results in 2 × 3 × 3 = 18 combinations. Each card type can be paired with each language option and each transaction type, leading to the total.

Submit

15. Which of the following are advantages of Orthogonal Array Testing (OAT)?

Explanation

Orthogonal Array Testing (OAT) is designed to efficiently cover multiple input combinations with fewer test cases, significantly reducing both testing time and costs. By strategically selecting combinations that maximize coverage, OAT maintains a strong defect detection capability without the exhaustive effort required by traditional methods that test every possible combination. This approach allows for effective testing while optimizing resource utilization, making it a valuable technique in software testing.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does White Box Testing examine?
Which formula is used to calculate Cyclomatic Complexity?
Cyclomatic Complexity indicates the ______ number of test cases...
Given a control flow graph with E = 12, N = 10, and P = 1, what is the...
Unit Testing validates individual functions or modules in isolation.
In the branch coverage example (if s >= 50), which two test inputs...
A Control Flow Graph (CFG) is used to visualize program execution flow...
Black Box Testing evaluates software functionality without any...
Which of the following is a failure type detectable by Black Box...
In Equivalence Partitioning for an admission system accepting...
Boundary Value Analysis focuses on testing values at the ______ of...
In the ATM Withdrawal System case study, how many independent paths...
Match each testing concept with its correct description.
In the ATM combination testing scenario with Card Type (2), Language...
Which of the following are advantages of Orthogonal Array Testing...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!