Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Test case: inputs, preconditions, expected results and postconditions for one test objective. Must be repeatable.
Exam weight Low
Exam weight Low
Exam weight Low
- Good test cases: simple, one thing at a time, traceable to requirements, with a clear expected result.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight High
- Triangle problem: classify three sides as equilateral, isosceles, scalene, or not a triangle: include invalid inputs (0, negatives, a + b ≤ c).
🎯 How this can come up · 1 question
Written
Give three test cases for a program that classifies a triangle from three integer sides.
(3, 3, 3) → equilateral; (3, 3, 4) → isosceles; (3, 4, 5) → scalene; plus invalid ones such as (1, 2, 3) → not a triangle (a + b = c) and (0, 4, 5) or (−1, 2, 2) → invalid input.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Testing is "complete" when exit criteria are met (coverage, remaining risk, time/budget), never when all bugs are gone.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Test driver: code that CALLS the unit under test. Stub: replaces a module the unit calls. Harness: drivers + stubs + tools.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Oracle: decides pass/fail (comparison-based with expected outputs, or checks of properties).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight High
- Smoke test: a quick subset of tests to check the build is stable enough for further testing.
🎯 How this can come up · 1 question
MCQ
A quick check that a new build’s main functions work before deeper testing is a:
Correct: Smoke test.
Exam weight Low
No slides match this filter.


































