Vaidikalaya

MCQ On Gray Box Testing


Q1. Gray Box Testing is a combination of:.
  1. Unit and Integration Testing
  2. Manual and Automation Testing
  3. White Box and Black Box Testing
  4. 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:.
  1. Has full access to source code
  2. Has no knowledge of internal system
  3. Has partial knowledge of internal system
  4. 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:.
  1. Unit Testing
  2. Integration Testing
  3. Alpha Testing
  4. 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?.
  1. Code syntax errors
  2. Database interactions and APIs
  3. UI alignment issues
  4. 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?.
  1. End users
  2. Business users only
  3. Testers with limited technical knowledge
  4. 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:.
  1. Dead code
  2. Logical errors in loops
  3. Integration and data flow issues
  4. 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?.
  1. Matrix Testing
  2. Orthogonal Array Testing
  3. Statement Coverage
  4. Regression Testing

Answer: c, Statement Coverage

Solution: Statement coverage is a white box testing technique.

Q8. Gray Box Testing requires knowledge of:.
  1. Source code implementation
  2. System internals like DB schema or APIs
  3. Compiler design
  4. 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:.
  1. Finding UI defects
  2. Performance tuning at code level
  3. Security and integration testing
  4. 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:.
  1. Unit and System Testing
  2. Manual and Automation Testing
  3. Functional and Non-Functional Testing
  4. 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.