256
GB
What is the key difference between structural (white-box) and behavioural (black-box) testing?
IN
संरचनात्मक (व्हाइट-बॉक्स) और व्यवहारिक (ब्लैक-बॉक्स) परीक्षण के बीच मुख्य अंतर क्या है?
A
Both provide complete coverage when used independently
स्वतंत्र रूप से उपयोग किए जाने पर दोनों पूर्ण कवरेज प्रदान करते हैं
B
White-box tests based on code structure cannot detect missing functionality; black-box tests cannot ensure structural paths are exercised; both alone are insufficient
White-box tests based on code structure cannot detect missing functionality; black-box tests cannot ensure structural paths are exercised; अकेले दोनों अपर्याप्त हैं
C
White-box testing is superior for all categories of defects
व्हाइट-बॉक्स परीक्षण सभी श्रेणियों के दोषों के लिए बेहतर है
D
Black-box testing requires access to source code
ब्लैक-बॉक्स परीक्षण के लिए स्रोत कोड तक पहुंच की आवश्यकता होती है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
White-box testing achieves code coverage but cannot detect requirements never implemented — you can have 100% branch coverage and still miss critical user functions. Black-box drives from specifications but may never exercise rare code paths. Effective testing combines both.
व्याख्या (हिन्दी)
व्हाइट-बॉक्स परीक्षण कोड कवरेज प्राप्त करता है लेकिन कभी लागू नहीं की गई आवश्यकताओं का पता नहीं लगा सकता है - आपके पास 100% शाखा कवरेज हो सकता है और फिर भी महत्वपूर्ण उपयोगकर्ता फ़ंक्शन छूट सकते हैं। ब्लैक-बॉक्स विशिष्टताओं से संचालित होता है लेकिन कभी भी दुर्लभ कोड पथों का प्रयोग नहीं कर सकता है। प्रभावी परीक्षण दोनों को जोड़ता है।