- Testing: running a program to find defects before it is put into use. It shows the presence of bugs, not their absence.
- Black-box: test from the specification without looking at the code.
- Decision table: conditions × actions; each column is a rule → one test case. n binary conditions → up to 2ⁿ rules.
🎯 How this can come up · 1 question
How many rules does a full decision table with 3 binary conditions have?
2³.
- Equivalence partitioning: divide inputs into classes that behave the same; test one value from each (valid and invalid).
🎯 How this can come up · 1 question
Valid ages are 18–60. How many equivalence classes?
Correct: 3 (below, inside, above).
- Boundary value analysis: test at and around the edges: min−1, min, min+1, max−1, max, max+1.
🎯 How this can come up · 1 question
Valid range 1–100. Which set is BVA?
Correct: 0, 1, 2, 99, 100, 101.
- Basis path testing (white-box): draw the flow graph, compute cyclomatic complexity, find independent paths, design one test per path.
- Cyclomatic complexity V(G) = E − N + 2 = P + 1 (P = predicate/decision nodes) = number of regions. It is the number of independent paths.
🎯 How this can come up · 2 questions
A flow graph has 9 edges and 7 nodes. V(G) =
9 − 7 + 2.
A function with 3 if-statements (no loops) has V(G) =
Correct: 4.
- Unit testing: test individual components (methods, classes) in isolation, usually by developers.
- Integration testing: test the interfaces between combined units.
- Stub: a dummy CALLED module (replaces a lower module in top-down integration). Driver: a dummy CALLING module (replaces an upper module in bottom-up).
🎯 How this can come up · 1 question
Top-down integration testing needs:
Correct: Stubs.
- System testing: test the complete integrated system against requirements (functional and non-functional: performance, load, stress, security, usability).
- Acceptance testing: customers test with their data to decide whether to accept the system (alpha: at the developer’s site; beta: at users’ sites).
🎯 How this can come up · 1 question
Testing by real users at their own sites before release is:
Correct: Beta testing.
- Regression testing: re-run tests after changes to make sure nothing that worked is now broken.
No slides match this filter.
































