Software Testing Software Testing Methodologies & Techniques 1 — Questions and Answers
Question 1: Which testing technique involves testing without knowledge of the internal code structure?
- White-box testing
- Black-box testing (Correct answer)
- Grey-box testing
- Structural testing
Correct answer: Black-box testing
Black-box testing treats the software as an opaque system, focusing only on inputs and expected outputs without knowledge of internal logic.
Question 2: What is equivalence partitioning in software testing?
- Dividing test cases by priority
- Grouping inputs that should behave the same way (Correct answer)
- Splitting the codebase into modules
- Allocating testers to different features
Correct answer: Grouping inputs that should behave the same way
Equivalence partitioning divides input data into groups (partitions) where all values in a partition are expected to be processed identically.
Question 3: Which testing approach tests individual units of code in isolation?
- Integration testing
- System testing
- Unit testing (Correct answer)
- Acceptance testing
Correct answer: Unit testing
Unit testing verifies the smallest testable parts of an application independently from other components.
Question 4: What does boundary value analysis focus on?
- Testing random inputs
- Testing values at the edges of input ranges (Correct answer)
- Testing the most common use cases
- Testing system performance limits
Correct answer: Testing values at the edges of input ranges
Boundary value analysis targets values at the exact boundaries of input ranges, where defects are most likely to occur.
Question 5: Which type of testing verifies that new changes have not broken existing functionality?
- Smoke testing
- Regression testing (Correct answer)
- Exploratory testing
- Sanity testing
Correct answer: Regression testing
Regression testing re-executes previously passing tests to confirm that code changes have not introduced new defects.
Question 6: What is the primary goal of exploratory testing?
- Execute scripted test cases
- Simultaneously design and execute tests based on learning (Correct answer)
- Automate repetitive tests
- Measure code coverage
Correct answer: Simultaneously design and execute tests based on learning
Exploratory testing combines test design and execution simultaneously, relying on the tester's creativity and domain knowledge to uncover defects.
Which testing technique involves testing without knowledge of the internal code structure?