MCQ On Gray Box Testing
Q1. Gray Box Testing is a combination of:.
- Unit and Integration Testing
- Manual and Automation Testing
- White Box and Black Box Testing
- Functional and Non-Functional Testing
Answer: c, White Box and Black Box Testing
Solution: Gray box testing combines concepts of white box and black box testing.
Q2. In Gray Box Testing, the tester:.
- Has full access to source code
- Has no knowledge of internal system
- Has partial knowledge of internal system
- Modifies the application code
Answer: c, Has partial knowledge of internal system
Solution: Tester has limited or partial knowledge of internal workings.
Q3. Gray Box Testing is mainly used for:.
- Unit Testing
- Integration Testing
- Alpha Testing
- Beta Testing
Answer: b, Integration Testing
Solution: Gray box testing is commonly applied during integration testing.
Q4. Which of the following is commonly tested using Gray Box Testing?.
- Code syntax errors
- Database interactions and APIs
- UI alignment issues
- Compiler errors
Answer: b, Database interactions and APIs
Solution: Gray box testing focuses on data flow and API interactions.
Q5. Who typically performs Gray Box Testing?.
- End users
- Business users only
- Testers with limited technical knowledge
- Database administrators only
Answer: c, Testers with limited technical knowledge
Solution: Gray box testing is performed by testers with some technical understanding.
Q6. Gray Box Testing helps in identifying:.
- Dead code
- Logical errors in loops
- Integration and data flow issues
- Code optimization problems
Answer: c, Integration and data flow issues
Solution: It helps identify issues between system components.
Q7. Which of the following is NOT a Gray Box Testing technique?.
- Matrix Testing
- Orthogonal Array Testing
- Statement Coverage
- Regression Testing
Answer: c, Statement Coverage
Solution: Statement coverage is a white box testing technique.
Q8. Gray Box Testing requires knowledge of:.
- Source code implementation
- System internals like DB schema or APIs
- Compiler design
- Operating system kernel
Answer: b, System internals like DB schema or APIs
Solution: Tester needs awareness of internal components like DB or APIs.
Q9. Gray Box Testing is most effective in:.
- Finding UI defects
- Performance tuning at code level
- Security and integration testing
- Code refactoring
Answer: c, Security and integration testing
Solution: Gray box testing is effective for security and integration validation.
Q10. Gray Box Testing lies between:.
- Unit and System Testing
- Manual and Automation Testing
- Functional and Non-Functional Testing
- White Box and Black Box Testing
Answer: d, White Box and Black Box Testing
Solution: Gray box testing is positioned between white and black box testing.