Software Testing Software Testing Methodologies & Techniques 2 — Questions and Answers
Question 1: In decision table testing, what does each column represent?
- A test environment
- A combination of input conditions and corresponding actions (Correct answer)
- A code module
- A test team member
Correct answer: A combination of input conditions and corresponding actions
Each column in a decision table represents a unique rule — a specific combination of input conditions and the expected system action.
Question 2: Which testing level verifies that integrated components work together correctly?
- Unit testing
- Integration testing (Correct answer)
- Acceptance testing
- System testing
Correct answer: Integration testing
Integration testing validates the interaction and data flow between combined modules or components.
Question 3: What is state transition testing best suited for?
- Testing systems that change behavior based on previous states (Correct answer)
- Testing network performance
- Testing database queries
- Testing user interface layouts
Correct answer: Testing systems that change behavior based on previous states
State transition testing is ideal for systems where outputs and behaviors depend on the current state and the sequence of prior inputs.
Question 4: Which technique uses the software's internal logic to design tests?
- Black-box testing
- White-box testing (Correct answer)
- Ad-hoc testing
- End-to-end testing
Correct answer: White-box testing
White-box testing (also called structural testing) uses knowledge of the internal code structure to create test cases that cover specific paths and branches.
Question 5: What is the main purpose of smoke testing?
- Verify all features in depth
- Quickly check that the build is stable enough for further testing (Correct answer)
- Test system performance under load
- Validate business requirements
Correct answer: Quickly check that the build is stable enough for further testing
Smoke testing performs a shallow, wide test of core functionality to determine if the build is stable enough to proceed with more detailed testing.
Question 6: Which testing technique requires a tester to trace all possible paths through code?
- Boundary value analysis
- Equivalence partitioning
- Control flow testing (Correct answer)
- Use case testing
Correct answer: Control flow testing
Control flow testing analyzes the sequence of statements and branches in code to ensure every path is exercised at least once.
In decision table testing, what does each column represent?