CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
A tester designs test cases specifically to exercise every branch of an if-else statement in the source code. This is an example of:
- A. User acceptance testing done by end customers
- B. White-box (structural) testing
- C. Acceptance testing
- D. Black-box testing
Correct answer: B. White-box (structural) testing
White-box testing uses knowledge of the internal code structure (statements, branches, paths) to design test cases; aiming for every branch is a classic white-box coverage criterion.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A class diagram marks an attribute's visibility with a '#' symbol before its name. What does this denote?
- Which of these is a defining feature of the V-model, distinguishing it from plain waterfall?
- Using Basic COCOMO for a embedded mode project (Effort = 3.6 × (KLOC)^1.2 person-months), what is the estimated effort for a 24 KLOC…
- A 'flaky test' is one that:
- What is the main reason software cost/effort estimates (such as those from COCOMO) are described as estimates rather than guarantees, even…
- A function has 3 independent input variables, each with its own valid range. Using robust BVA (standard BVA plus one invalid value just…