Software engineer: Testing and Failure Diagnosis
Original interview scenarios on behavioral contracts, fixtures, asynchronous outcomes, independent oracles, parser and numeric boundaries, fault injection, reproducibility, and diagnostic evidence.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.A function's contract returns a transformed value without changing the caller's input. A test asserts the returned value only; the implementation also mutates the input. What observation is missing?
Show answer and explanation
- Only the correct returned value, treating it as proof that a separately promised no-mutation condition also held
- Only the number of statements the test executed
- Only whether the function completed
- The input's required state after the call
Answer: The input's required state after the call
A contract can include both results and side effects. Check the promised input preservation rather than infer it from a correct returned value.
2.A copy API promises a new independent container. Its test compares values but never checks identity or later aliasing. A faulty implementation returns the original container. What should the test exercise?
Show answer and explanation
- Only whether the result can be printed
- Only the original container's length
- Alias independence
- Only another equal-value example, without checking whether the returned container is independent of the caller's input
Answer: Alias independence
Value equality alone does not establish ownership or independence. Test the observable identity and aliasing properties actually promised, including behavior after an allowed mutation.
3.A report API promises chronological order. A test sorts both actual and expected rows before comparison. What defect can that test hide?
Show answer and explanation
- A missing required row in every case
- Incorrect output order
- Every difference in row contents
- The existence of any timestamp field
Answer: Incorrect output order
Normalization can erase a required property. Preserve order in the assertion when chronology is part of the contract, rather than sort away the behavior being checked.
4.A result must preserve duplicate entries. A test converts actual and expected lists to sets, allowing one duplicate to disappear unnoticed. What comparison better fits the requirement?
Show answer and explanation
- Only equality of the smallest element
- Set equality alone, treating distinct membership as sufficient even when the required result must preserve repeated entries
- Only whether both results are nonempty
- Multiplicity
Answer: Multiplicity
Sets remove multiplicity. Use sequence or multiset comparison as appropriate to the ordering contract so duplicate loss is observable.
5.A numerical check accepts a result when absolute error is at most 0.001. Expected is 0.0002; actual is 0.0010. Under that stated check, is it accepted?
Show answer and explanation
- Yes; the absolute error is 0.0008.
- Yes; every positive result is accepted.
- No; actual is five times expected.
- No; expected and actual differ.
Answer: Yes; the absolute error is 0.0008.
The supplied rule uses absolute error: 0.0010 - 0.0002 = 0.0008, which is below 0.001. Whether that tolerance suits the domain is a separate contract question.
6.A calculation's test uses a relative-error rule that divides by the expected value. The expected value can be zero. What must the test definition handle explicitly?
Show answer and explanation
- Only a more precise output format, without defining how a relative formula with expected zero is interpreted
- An assumption that zero never needs testing
- The zero-reference case and an appropriate domain-specific rule
- A requirement to accept every finite actual value
Answer: The zero-reference case and an appropriate domain-specific rule
A relative comparison based on a zero denominator is not defined by that formula. Specify the intended behavior, often with a suitable absolute component, rather than let an accidental arithmetic result decide correctness.
7.A test calls every branch of a validator but has no assertions about acceptance, rejection, or effects. What does branch execution alone fail to establish?
Show answer and explanation
- That execution coverage can be collected
- Behavioral correctness
- The fact that every branch ran, treating execution as proof that each acceptance and rejection result matched the requirement
- That the validator has branches
Answer: Behavioral correctness
Coverage describes exercised code, not whether its outcomes satisfy the contract. Add relevant oracles and negative cases instead of treating visitation as correctness.
8.A mutation changes a required comparison from <= to <. Tests still pass, and the boundary input is legal. What useful gap does that surviving mutation suggest?
Show answer and explanation
- The original comparison was necessarily wrong.
- The equality boundary may not be checked effectively.
- The tests exercised every semantic boundary.
- Every surviving mutation is equivalent, even when this one changes the result for a legal boundary input.
Answer: The equality boundary may not be checked effectively.
A changed inclusive boundary can alter required behavior only at equality. Inspect whether a valid boundary fixture and assertion would distinguish the implementations before drawing a broader coverage claim.
9.For unbounded mathematical integers, a mutation replaces x+0 with x. No side effects or type changes exist in this model. Must a correct test distinguish them?
Show answer and explanation
- No; tests should ignore all arithmetic results.
- Yes; every textual change must produce a failing test.
- Yes; adding zero always changes an integer's value.
- No; they are equivalent under the supplied observable model.
Answer: No; they are equivalent under the supplied observable model.
Mutation results require interpretation. An equivalent transformation cannot be rejected through a valid behavioral distinction in the stated domain; do not invent a false requirement to kill it.
10.A negative test accepts any exception. Its setup throws before the target operation is invoked, so the test passes. What must be narrowed?
Show answer and explanation
- The target failure boundary
- Only whether setup completed at some earlier point
- Only the test's overall failure result, without establishing that the target operation rather than fixture setup raised it
- A rule that every setup failure proves target validation works
Answer: The target failure boundary
A broad exception assertion can match the wrong failure. Ensure the target path ran and verify the required error type, result, or side-effect boundary rather than accept an unrelated setup exception.
11.A test allocates a temporary resource, then makes an assertion before registering cleanup. If the assertion fails, the resource remains and affects later tests. What lifecycle should the fixture guarantee?
Show answer and explanation
- Cleanup ownership is established for every successful allocation.
- A longer timeout prevents all cleanup leaks.
- The next test must always repair earlier tests' resources.
- Only successful tests must clean up, treating an assertion failure as permission to leave owned state for later tests.
Answer: Cleanup ownership is established for every successful allocation.
Arrange reliable scoped cleanup as soon as ownership exists. An assertion failure is a normal test outcome that must not bypass the fixture's resource lifecycle.
12.A test passes alone but fails after another test changes a process-global option. What should isolation review first examine?
Show answer and explanation
- A guarantee that the test runner is broken
- A requirement to run the failing test first forever
- Shared mutable state and its restoration between tests
- Only the final assertion, assuming shared process-global options cannot explain a failure that depends on which test ran first
Answer: Shared mutable state and its restoration between tests
Order dependence is evidence about context, not a unique root cause. Investigate shared settings and fixture boundaries instead of permanently hiding the dependency with one chosen order.
13.Two integration tests use the same fixed database record ID concurrently. Either cleanup can delete the other's fixture. What ownership boundary should the fixtures establish?
Show answer and explanation
- A guarantee that cleanup cannot race because tests are separate functions
- Distinct scoped test identities and cleanup authority
- Only a fixed cleanup delay, assuming two concurrently owned fixtures with the same ID cannot interfere once enough time passes
- Only serial test names, without actual serialization or distinct fixture ownership
Answer: Distinct scoped test identities and cleanup authority
Parallel tests need isolated or correctly coordinated fixture state. Create and remove only the records each test is authorized to own, with a deliberate contract for any shared fixture.
14.A mock records calls across tests. A test expects two calls of its own but reads a total including a prior test's call. What must the assertion scope?
Show answer and explanation
- The process-wide historical call total, treating calls from an earlier test as interactions caused by this test
- Only whether the same mock object still exists
- This test's interaction scope
- A requirement that every test ignore call history
Answer: This test's interaction scope
Interaction evidence needs a defined interval or fixture scope. Reset or separate state appropriately, or measure a valid delta, without confusing earlier activity with this test's behavior.
15.A fake service always returns a successful complete response. The real contract also permits missing optional fields, rejected requests, and partial outcomes. What test coverage is missing?
Show answer and explanation
- The relevant allowed and failing response behaviors
- Only the fake's successful return type
- Only more identical complete-success responses, treating repetition as coverage of allowed partial, missing-field, and rejection behaviors
- A claim that every production response must match the fake's easiest path
Answer: The relevant allowed and failing response behaviors
A fake's behavior limits what it exercises. Cover the contract cases needed by the client and separately verify the real integration rather than infer robustness from one success-only fixture.
16.An in-memory fake serializes every operation, but the real store permits concurrent transactions under a different isolation contract. What claim cannot the fake alone establish?
Show answer and explanation
- That a fake can be useful for some unit tests
- Correct behavior under the real store's concurrency semantics
- The fake's locally serialized results prove the same outcomes under a production store with a different concurrency and isolation contract.
- That the production store has an interface
Answer: Correct behavior under the real store's concurrency semantics
A substitute can preserve method names while changing important guarantees. Use appropriate contract and integration evidence for transaction, failure, and concurrency behavior the fake does not model.
17.A refactor preserves an API's result and required side effects but changes an internal helper's call count. A test fails solely on that count, which was never part of the contract. What should review question?
Show answer and explanation
- Whether internal helpers can be called
- Whether refactoring must change public results
- Whether the assertion encodes an incidental implementation detail
- Every internal helper call count must be contractual, even when a refactor preserves all promised results and required effects.
Answer: Whether the assertion encodes an incidental implementation detail
Interaction checks can be necessary when the interaction is promised or protects a boundary. Otherwise an incidental count can obstruct valid refactoring without testing the intended behavior.
18.A deadline test uses a real one-second sleep and assumes the worker has reached a particular state afterward. What would make the tested condition more explicit?
Show answer and explanation
- A longer arbitrary sleep, treating elapsed delay as proof that the worker reached the specific state
- Only disabling the failing assertion on busy hosts
- Controlled time and progress
- Only faster execution hardware
Answer: Controlled time and progress
Separate elapsed-time control from progress synchronization. Use the appropriate clock and state evidence so the test exercises the intended deadline condition without treating a delay as proof of execution.
19.A test framework waits only for the promise returned by the test. The test starts a rejecting asynchronous operation but neither awaits nor returns it. What can the test finish before observing?
Show answer and explanation
- The fact that an operation was started
- The operation's failure
- The fact that a promise exists for later work
- Its own synchronous statements
Answer: The operation's failure
An asynchronous assertion must participate in the framework's completion contract. Otherwise the test can report completion while the behavior or rejection it should check occurs later.
20.A test reports success after an API accepts background work. The required result is produced later, and that worker can fail. What must the test observe for the outcome claim?
Show answer and explanation
- Only existence of a tracking ID
- Only successful request acceptance, treating a tracking ID as proof that the later required background result was produced correctly
- Only the test method returning normally
- The required completion and effects of the background operation
Answer: The required completion and effects of the background operation
Acceptance and completed success are different boundaries. Wait for or otherwise verify the promised outcome, including appropriate failure and timeout behavior, rather than end the test at submission.
21.A property-based generator is supposed to test valid trees. It frequently creates cyclic graphs, which the precondition discards. The run reports many generated inputs but few accepted examples. What should coverage review inspect?
Show answer and explanation
- The inputs actually tested
- Only the random seed's numerical size
- A guarantee that rejected inputs provide equivalent tree coverage
- Only the attempted generation count, treating precondition-discarded cyclic inputs as executed valid-tree cases
Answer: The inputs actually tested
Generation, precondition acceptance, and property execution are distinct. Build a suitable valid-domain generator and inspect actual coverage instead of counting discarded cases as tested behavior.
22.A failing input is reduced until the original failure disappears, but the tool still reports the smaller input as the reproducer. What must minimization preserve?
Show answer and explanation
- Only minimum byte length, accepting reductions that no longer reproduce the target defect or satisfy the required input conditions
- The relevant failure predicate and required input conditions
- Only the original file extension
- A requirement that every reduction is automatically valid
Answer: The relevant failure predicate and required input conditions
A useful reduction remains a valid reproducer for the failure being investigated. Check that property during shrinking rather than optimize size while losing the defect.
23.A proposed metamorphic test says reordering inputs never changes a result. The API's specified operation is order-sensitive. What must be established before using that property?
Show answer and explanation
- The ability to construct permutations alone, treating every order-sensitive API as though its result must be permutation-invariant
- Only that both results have the same type
- A rule that every algorithm must be permutation-invariant
- That the transformation preserves the behavior the contract requires
Answer: That the transformation preserves the behavior the contract requires
A metamorphic relation is an oracle with assumptions. If order is meaningful, arbitrary reordering may legitimately change the result; use properties justified by the actual specification.
24.A serializer and parser share a bug that transforms one field consistently in opposite directions. Their round-trip test passes, but an independent implementation rejects the format. What does round-trip success fail to establish?
Show answer and explanation
- The existence of a serialized representation
- The components agree with each other, which alone proves their output matches the independently specified external representation.
- The ability to invoke the parser
- Format interoperability
Answer: Format interoperability
Two components can cancel each other's defects. Add independently specified format examples or interoperability checks for the required external contract.
25.Two implementations agree on every tested output, but both copied the same flawed reference calculation. What conclusion needs stronger evidence?
Show answer and explanation
- That their agreement establishes correctness of that calculation
- That an independent oracle could be useful
- That the compared outputs matched on the tested cases
- That the implementations share some reference logic
Answer: That their agreement establishes correctness of that calculation
Differential agreement is evidence with a scope. Shared assumptions or defects can survive comparison, so use independent semantics and appropriate properties when claiming correctness.
26.A test computes expected output by calling the same function it is testing, then compares actual output to that value. What is missing?
Show answer and explanation
- A guarantee that equality to self validates the specification
- An independent basis for the required result
- More calls to the same function for both expected and actual results, treating repeated self-agreement as an independent specification check
- Only a larger comparison timeout
Answer: An independent basis for the required result
A self-derived expectation can preserve the same wrong behavior. Specify expected results or properties independently enough to distinguish an implementation defect.
27.A fuzzer reports that a parser never crashed. The parser can silently return incorrect values on malformed input. What claim remains unverified?
Show answer and explanation
- The required parsing and rejection semantics
- That further semantic assertions can be added
- That generated inputs reached the parser
- That no crash was observed in the executed cases
Answer: The required parsing and rejection semantics
Crash freedom is one property, not the whole contract. Add appropriate validity, rejection, round-trip, differential, or other oracles while keeping their assumptions explicit.
28.A test seed reproduces generated data, but a failure also depends on thread scheduling and a filesystem iteration order. What record is needed for a stronger reproduction claim?
Show answer and explanation
- The relevant replay context
- Only the input generator seed, assuming it also controls thread scheduling and filesystem order without any such wiring
- A guarantee that all nondeterminism is controlled by one generator
- Only the final pass/fail label
Answer: The relevant replay context
A random seed controls only the sources wired to that generator. Capture or control other relevant inputs and schedules rather than label a partially recorded run fully reproducible.
29.A fuzzer samples input bytes uniformly. Most valid messages contain several structured fields and checksums, so almost every input fails at the first parser check. What coverage is limited?
Show answer and explanation
- The raw uniform-byte generation count, treating immediate rejection at the first check as coverage of deeper valid-message states
- The ability to generate any byte sequence
- Deeper behavior reached by suitably structured inputs
- The fact that malformed input handling matters
Answer: Deeper behavior reached by suitably structured inputs
Uniform bytes need not provide useful coverage of semantic states. Combine appropriate structured and malformed generators and observe which paths and properties actually execute.
30.A test suite reruns failures until one attempt passes and reports only that final pass. What evidence is lost?
Show answer and explanation
- The ability to run a test more than once
- The fact that transient failures can occur
- The failure frequency, conditions, and earlier outcomes
- The existence of one pass proves the earlier failed attempts contained no useful evidence and need not remain in the report.
Answer: The failure frequency, conditions, and earlier outcomes
A passing retry does not erase a prior failure. Retain the attempts and investigate the relevant nondeterminism instead of turning retries into unrecorded evidence selection.
31.A supplied size calculation uses unsigned eight-bit arithmetic modulo 256. It multiplies element count 64 by element size 4 and uses the result as bytes to allocate. What boundary case should a safety test expose?
Show answer and explanation
- The product wraps from mathematical 256 to stored 0.
- Count 64 must always produce four allocated bytes.
- The product is necessarily stored as mathematical 256.
- Unsigned arithmetic forbids every multiplication.
Answer: The product wraps from mathematical 256 to stored 0.
Under the explicit model, 64×4 = 256 and 256 mod 256 = 0. Test checked size handling at the actual representation boundary instead of assuming mathematical arithmetic and stored arithmetic coincide.
32.A supplied conversion maps integers modulo 256 into an unsigned byte. The input domain uses -1 as a sentinel that must be rejected before conversion. What should a boundary test verify?
Show answer and explanation
- -1 is rejected rather than accepted as byte value 255.
- Every negative integer automatically stays negative after conversion.
- A successful conversion proves the input was in the permitted domain.
- 255 is necessarily the original sentinel in every context.
Answer: -1 is rejected rather than accepted as byte value 255.
The conversion can erase the original domain meaning. Validate the required input condition before narrowing or reinterpretation, and test the sentinel boundary explicitly.
33.An identifier limit is four encoded bytes. The supplied encoding uses three bytes per symbol for a chosen input, and the input contains three such symbols. What length must that limit check?
Show answer and explanation
- 1 byte
- 3 bytes
- 9 bytes
- 4 bytes
Answer: 9 bytes
The specified representation uses 3×3 = 9 bytes. Symbol count and encoded-byte count answer different questions; test the unit the limit actually defines.
34.A wire format requires exact LF line endings. A test converts both LF and CRLF to one normalized form before comparing bytes. What defect can it hide?
Show answer and explanation
- The existence of a newline in the input
- A violation of the required wire representation
- Every parsed value must differ whenever line-ending bytes differ, regardless of the parser's actual semantic contract.
- The ability to compare two byte sequences
Answer: A violation of the required wire representation
Normalization can be valid for one contract and erase evidence for another. When exact bytes are required, assert those bytes at the relevant serialization boundary.
35.A signed-message format requires canonical byte ordering of fields. A test parses both outputs into maps and compares values only. What must be checked separately?
Show answer and explanation
- Only successful parsing of both representations
- Only the number of parser calls
- The required canonical serialized bytes
- Only semantic map equality, treating two differently ordered encodings as proof of identical canonical signed bytes
Answer: The required canonical serialized bytes
Equivalent parsed values do not establish identical canonical encoding. Test the representation required by signing or interoperability, as well as the semantic content.
36.A patch API defines an omitted field as unchanged and an explicit null as clear. Tests cover only nonnull replacements. What distinct cases are missing?
Show answer and explanation
- Only another nonnull value
- A rule that omitted and null fields are always equivalent
- Omission and explicit null under their different semantics
- Two nonnull replacements alone, treating omission and explicit null as though both must use replacement semantics
Answer: Omission and explicit null under their different semantics
The API distinguishes absence from a supplied null. Exercise both transitions so parsing or defaulting cannot silently merge behaviors the contract separates.
37.A configuration API permits zero as a valid limit. The implementation replaces any falsy value with a default. Which fixture directly distinguishes that defect?
Show answer and explanation
- Only an omitted field
- Only the default value itself
- An explicit zero value
- Only positive ordinary values, treating those passing cases as coverage of the explicitly valid zero boundary
Answer: An explicit zero value
A broad falsy check can collapse valid zero with absence. Use the stated input-domain semantics and test the valid boundary rather than only positive ordinary values.
38.A function promises support for lengths from 1 through 8 inclusive. What boundary set most directly checks both allowed endpoints and adjacent invalid values?
Show answer and explanation
- Only length 4
- Only length 8
- 2, 3, 4, and 5
- 0, 1, 8, and 9
Answer: 0, 1, 8, and 9
The set includes each allowed boundary and its immediate outside neighbor. It does not prove every property, but it directly distinguishes common range and inclusive-comparison errors.
39.A stream parser must accept a valid message regardless of how transport chunks divide its bytes. The tests always supply the entire message in one chunk. What transformation should be exercised?
Show answer and explanation
- Different chunk partitions of the same message
- A rule that chunk boundaries are always message boundaries
- Only a different ID in the same single-chunk fixture, treating changed content as coverage of transport segmentation
- Only the same full-buffer input repeated
Answer: Different chunk partitions of the same message
Transport segmentation can differ from logical framing. Test appropriate chunk boundaries, including inside encoded units and structural fields, against the parser's actual streaming contract.
40.A parser receives a truncated prefix that would be valid only if more bytes followed. The contract requires rejecting incomplete end-of-input. What must a negative test signal?
Show answer and explanation
- A guarantee that every valid prefix is a complete valid message
- Only a temporary absence of currently buffered bytes
- Only a shorter sleep before asking for more input
- That input has ended, not merely that the next chunk is delayed
Answer: That input has ended, not merely that the next chunk is delayed
A streaming parser may legitimately wait on an incomplete prefix. Exercise the defined end-of-input boundary to distinguish waiting for more data from required rejection of truncation.
41.An error-recovery test makes a dependency fail before any write begins. The reported bug occurs after a partial write. What path remains untested?
Show answer and explanation
- The existence of an error-handling branch
- Only failure before any effect, treating that path as equivalent to recovery after some required state has already changed
- The fixture's ability to raise an exception
- Recovery from an effect that has partly occurred
Answer: Recovery from an effect that has partly occurred
Fault location matters. A pre-effect failure does not exercise recovery from partial state; deliver the relevant fault at the intended boundary and verify the required resulting state.
42.A retry test raises an exception before sending a request and observes no duplicate external objects. What ambiguity has it not exercised?
Show answer and explanation
- The test can replace a dependency with a stub.
- The receiver applies the effect but the caller loses confirmation.
- The caller rejects invalid input before sending.
- No request bytes reach the receiver.
Answer: The receiver applies the effect but the caller loses confirmation.
Duplicate-risk behavior often appears after a remote effect and before its outcome is known locally. A failure delivered before sending cannot establish correctness across that uncertainty boundary.
43.A file-update API promises that failure leaves the old contents intact. A fault test checks only for an error result after injecting a write failure. What must it verify as well?
Show answer and explanation
- Only the returned error category, without inspecting the old file whose preservation is part of the failure contract
- Only that the process is still alive
- Only successful entry into the error logger
- The required old contents and other promised state after failure
Answer: The required old contents and other promised state after failure
A failure result does not prove the failure-state guarantee. Inspect the state and effects promised by the API, including whether the original file remains valid and unchanged.
44.A retrying operation makes three transport attempts but is required to create one logical receipt. A test asserts only that one call eventually succeeds. What further outcome is relevant?
Show answer and explanation
- Only a successful final attempt, without checking whether preceding uncertain attempts created extra logical receipts
- Only the duration of the final successful attempt
- The final logical receipt count and identity
- Only whether every attempt used a different request ID
Answer: The final logical receipt count and identity
Attempt success and correct logical effects are different assertions. Verify the required receipt and its replay identity across failed or uncertain attempts rather than count only a final successful response.
45.A diagnosis says a timed-out write had no effect because no successful response was received. The receiver may have applied it before the response was lost. What should the investigation preserve?
Show answer and explanation
- The outcome is unresolved until suitable effect evidence is obtained.
- The timeout proves the receiver rejected the write.
- The missing response proves success.
- The caller's wait time determines the receiver's committed state.
Answer: The outcome is unresolved until suitable effect evidence is obtained.
A local timeout does not uniquely identify the remote outcome. Check the appropriate operation or state evidence and retain uncertainty instead of assigning a result from missing confirmation alone.
46.A test's timeout ends its wait, but its worker can keep modifying a shared fixture. Cleanup immediately hands that fixture to the next test. What lifecycle must isolation address?
Show answer and explanation
- Only the timeout exception's type
- Only the next test's input values
- A guarantee that ending a wait always stops all work
- The previous worker's termination or continuing authority
Answer: The previous worker's termination or continuing authority
An observer's wait can end before the operation. Ensure the fixture is no longer exposed to old work, or preserve appropriate ownership and separation, before reusing it for another test.
47.A write interface explicitly permits returning after writing a prefix. Its fake always writes the entire buffer. What case should a client test add?
Show answer and explanation
- Partial successful writes and remaining-byte handling
- Only more complete successful writes, assuming the fake's full-buffer behavior proves the client handles legal prefix completions
- A requirement that every successful return means the whole buffer was written
- Only a larger single-buffer success response
Answer: Partial successful writes and remaining-byte handling
A fake can conceal a legal partial-completion contract. Verify that the caller handles actual progress, remaining data, and the interface's error or no-progress rules appropriately.
48.A stateful defect occurs only after create, update, delete, and recreate reuse a logical name. Tests always start from a fresh store and run one operation. What coverage is missing?
Show answer and explanation
- More fresh create tests alone, treating isolated operations as proof of delete-and-recreate behavior across retained state
- A guarantee that passing individual operations proves every sequence
- Only the final operation in the sequence on an empty fixture
- The relevant operation sequence and identity transitions
Answer: The relevant operation sequence and identity transitions
Stateful correctness depends on transitions and retained state. Exercise the sequence that reaches the relevant lifecycle boundary, with assertions about identities, effects, and surviving state.
49.Two asynchronous requests fail close together. A log analysis assigns the first error line to the first request started, although log arrival order can differ. What correlation is needed?
Show answer and explanation
- The actual operation identity and relevant causal context
- Only which request was invoked first
- Only adjacent log-line positions, treating log delivery order as proof of which asynchronous request caused each failure
- Only identical error message text
Answer: The actual operation identity and relevant causal context
Transport order is not necessarily operation identity or cause. Preserve and inspect correlation and relevant boundaries instead of pairing failures by proximity or start order alone.
50.A high-level request reports a generic storage error after a decoder failed on an invalid field. The investigator treats the final wrapper message as the root cause. What evidence should be followed?
Show answer and explanation
- Only the outermost message's severity label
- A rule that every storage wrapper identifies a disk failure
- The causal error chain and first relevant violated assumption
- Only the last line printed by the process
Answer: The causal error chain and first relevant violated assumption
A wrapper describes one boundary and can hide an earlier failure. Trace the operation and causal evidence to the relevant violated condition rather than infer a unique cause from a generic label.
51.An out-of-range access occurs after an earlier stage silently produced the wrong collection length. Fixing the access merely suppresses the exception. What should diagnosis inspect?
Show answer and explanation
- A guarantee that the throwing line always introduced the defect
- Only the nearest return statement
- Only the final exception site, assuming the location that detects an invalid length must also have introduced it
- The earliest relevant divergence from the expected state
Answer: The earliest relevant divergence from the expected state
The visible symptom can be downstream of the original violation. Compare expected and actual state along the causal path and verify that a repair restores the required behavior rather than hides the symptom.
52.An error spike starts near a configuration change. No controlled comparison or mechanism evidence has been collected. What is the configuration's role at this point?
Show answer and explanation
- A proven unique cause
- Proof that every other dependency is healthy
- A hypothesis requiring further evidence
- An explanation that needs no reproduction or observation
Answer: A hypothesis requiring further evidence
Temporal association can guide investigation without establishing causation. Compare relevant states, scope, alternatives, and mechanisms before making a stronger causal claim.
53.A regression bisection assumes the failure predicate is repeatable, but the same revision alternates between pass and fail. What must the procedure address?
Show answer and explanation
- The unstable predicate and its relevant nondeterminism
- A guarantee that one failed run identifies the introducing commit
- Only a faster revision checkout, treating one unstable pass or fail as a reliable regression predicate without characterizing variability
- Only the revision labels' sort order
Answer: The unstable predicate and its relevant nondeterminism
Bisection needs an interpretable predicate and suitable history assumptions. Reproduce or characterize variability and preserve repeated evidence rather than let a random label choose the supposed regression boundary.
54.Checking out an old source revision does not reproduce a failure because dependency resolution and fixture data changed. What must a reproduction record include?
Show answer and explanation
- Only the source revision, treating it as a complete description of resolved dependencies, fixture data, and effective runtime settings
- The relevant resolved dependencies, inputs, and environment
- A guarantee that source text defines all runtime behavior
- Only the final exception message
Answer: The relevant resolved dependencies, inputs, and environment
The executable experiment includes more than source. Record and recover the inputs and effective configuration needed to reproduce the relevant behavior.
55.A minimized test case still crashes, but with a different error before reaching the original defect. What must the reducer's success predicate distinguish?
Show answer and explanation
- Only whether the input became smaller
- The intended failure from an unrelated failure
- Only any nonzero exit, accepting an earlier unrelated crash as though it reproduces the original defect
- Only whether any exception text appears
Answer: The intended failure from an unrelated failure
A smaller failure is not necessarily the same reproducer. Preserve a suitably specific target condition and relevant domain requirements so reduction does not switch to a different bug.
56.A production failure depends on a particular record shape, but the record contains private user data. What reproduction approach preserves the useful structure without unnecessary disclosure?
Show answer and explanation
- Copy the raw record into every shared test log.
- Construct a suitable synthetic case and verify it reproduces the relevant defect.
- Delete every field without checking that the failure remains.
- Assume a random record necessarily exercises the same path.
Answer: Construct a suitable synthetic case and verify it reproduces the relevant defect.
Preserve the properties needed by the failure while controlling sensitive data. Verify the replacement reproduces the target behavior rather than choose between uncontrolled disclosure and an unvalidated substitute.
57.A race stops reproducing after detailed logging is added, with no intended logic change. What possibility should investigation retain?
Show answer and explanation
- Logging repaired the synchronization protocol merely because the failure stopped appearing under the changed timing.
- Any unlogged result must be invalid.
- Observer effects
- The old failure never happened.
Answer: Observer effects
Observation can perturb execution. Use appropriate scheduling, tracing, and independent state evidence to investigate the original race instead of treating its disappearance under instrumentation as proof of a fix.
58.A proposed fix passes a new fixture, but the original failing fixture was never rerun. What targeted regression evidence is missing?
Show answer and explanation
- The repaired program can produce any successful result.
- The new fixture passes, so the original still-relevant failing fixture is automatically established correct without being run.
- The original relevant failure becomes correct under the repaired version.
- The source has changed.
Answer: The original relevant failure becomes correct under the repaired version.
A new passing case does not demonstrate correction of the known defect. Preserve the valid original reproducer, verify before/after behavior, and extend tests for the repaired contract's broader boundaries.
59.A harness catches assertion failures, prints them, and exits with success. Automation reads only the exit status. What reporting contract is broken?
Show answer and explanation
- A successful exit always proves the assertions held.
- The failure signal does not reach the consumer that decides pass or fail.
- A printed message can never carry diagnostic information.
- The process must avoid catching any exception in any context.
Answer: The failure signal does not reach the consumer that decides pass or fail.
A test failure must be represented through the runner's actual result protocol. Logs alone may not make an automated consumer reject a failed run.
60.A diagnostic log retains only the final hundred lines. The investigator finds no earlier failure there and claims none occurred. What limit must the claim preserve?
Show answer and explanation
- Truncation proves every omitted line was successful.
- The retained tail cannot contain any useful evidence, so every statement about the execution must be discarded.
- A later exception guarantees no prior violation.
- The searched evidence was truncated.
Answer: The searched evidence was truncated.
Absence from a partial record is not evidence of absence from the full execution. Recover or collect the relevant context and identify the limits of what was retained.
61.A bug disappears when the failing test runs first but returns when another test runs before it. The team permanently fixes the order. What remains unexplained?
Show answer and explanation
- The shared state or interaction causing order dependence
- The runner's ability to execute tests sequentially
- One fixed passing order proves the unintended shared-state dependency was repaired, even though the failure returns in another permitted order.
- Only choosing a permanent order without specifying or repairing the shared-state contract
Answer: The shared state or interaction causing order dependence
A fixed order can conceal rather than resolve an unintended dependency. Isolate or deliberately specify the relevant fixture interaction and verify the actual contract across permitted execution orders.
62.A developer edits a module, but the test process is loading an older built artifact from a different directory. What should diagnosis establish first?
Show answer and explanation
- Only the test command copied into a message
- Only the expected module name
- The code and artifact actually executed
- Only saved source text, treating it as proof that the test loaded those bytes rather than a different cached build
Answer: The code and artifact actually executed
Source intent and executed code can differ. Inspect actual module resolution and artifact identity before attributing a result to a change that was never loaded.
63.A failing branch is enabled only by an environment flag. A local reproduction omits that flag and passes. What has that result established?
Show answer and explanation
- Proof that the original observation was impossible
- Behavior under the different local configuration, not the failing configuration
- The flag-enabled branch was repaired because a different local configuration, which never entered that branch, passed.
- A guarantee that flags cannot affect execution
Answer: Behavior under the different local configuration, not the failing configuration
The reproduction must include the conditions needed for the reported path. A pass under different effective configuration does not resolve the original failure claim.
64.A test relies on a dependency behavior that is no longer part of the installed version's documented contract. What comparison should guide its correction?
Show answer and explanation
- Only the oldest remembered behavior
- The actual required integration behavior and supported dependency contract
- Only the test's historical pass count
- A rule that changing any test always hides a product bug
Answer: The actual required integration behavior and supported dependency contract
Determine whether the application or the expectation violates the intended supported contract. Update the implementation or test with clear evidence, rather than preserve a stale assumption or weaken a valid requirement automatically.
65.A functional test fails because a busy host takes longer than an arbitrary sleep. The application has no such response-time requirement. What should the test replace?
Show answer and explanation
- Every failure with an unconditional retry pass
- The requirement to observe the operation at all
- The unsupported timing assumption with relevant completion evidence
- Remove the functional outcome assertion entirely, treating an unsupported sleep assumption as proof that the behavior need not be verified.
Answer: The unsupported timing assumption with relevant completion evidence
A functional test should synchronize on the required state or completion with an appropriate bound, rather than invent a performance contract through an arbitrary delay. Preserve real time requirements where they actually apply.
66.A stateful test resets all state after every generated command, but the defect requires one command's result to influence the next. What model is it not exercising?
Show answer and explanation
- The ability to create a fresh fixture
- More isolated commands on freshly reset fixtures, treating them as equivalent to the multi-step state history needed by the defect
- The required multi-step state transitions
- The existence of a reset operation
Answer: The required multi-step state transitions
Resetting between commands can remove the state a sequence should explore. Model valid operation histories and ownership of persistent test state under the intended lifecycle.
67.A model-based test generates a command that is invalid in the current state. The API promises a specific rejection with no side effect. What should the oracle check?
Show answer and explanation
- That rejection and its required state guarantees
- Only whether the command can be represented syntactically
- A success result regardless of current state
- Silently skip every invalid transition while reporting it as a verified API rejection, without checking its result or effects
Answer: That rejection and its required state guarantees
Invalid transitions can be important test cases. Follow their specified rejection behavior rather than discard them invisibly or require an invalid action to succeed.
68.A slow exact reference algorithm is practical only for small inputs. It agrees with an optimized implementation on those cases. What is a justified use of that evidence?
Show answer and explanation
- A guarantee that both algorithms have identical complexity
- Functional comparison within the tested domain, with separate evidence for larger limits
- A replacement for all resource-boundary tests
- The optimized implementation is proven at every input size because it agreed with a small-domain reference on the tested cases.
Answer: Functional comparison within the tested domain, with separate evidence for larger limits
A simple reference can be a useful independent oracle. Keep its domain and coverage clear, and test size, representation, and resource boundaries it did not exercise.
69.A test exhaustively enumerates every length-four sequence over the alphabet {A,B,C}, without shorter sequences. How many inputs does that enumerate?
Show answer and explanation
- 12
- 81
- 121
- 64
Answer: 81
Each of four positions has three choices, giving 3^4 = 81. Including all lengths zero through four would instead give 1+3+9+27+81 = 121, a different domain.
70.Three Boolean features are tested in configurations 000, 110, 101, and 011. Every pair of feature values is covered, but the defect needs all three features enabled. What configuration is missing?
Show answer and explanation
- 111
- 110
- 101
- 000
Answer: 111
Pairwise coverage does not necessarily exercise every higher-order interaction. The supplied four cases omit 111, so they cannot expose a defect requiring that exact three-feature combination.
71.A decision is A OR B. Tests use only (true,true) and (false,false), executing both outcomes. What additional behavior is not isolated by those cases?
Show answer and explanation
- Each condition's independent influence with the other held fixed
- The fact that true and false decision outcomes occurred, which proves each condition independently affected the decision with others fixed.
- The existence of Boolean inputs
- The ability to compute OR on those two cases
Answer: Each condition's independent influence with the other held fixed
Decision outcomes alone do not establish that each condition independently influences the result. Add appropriate distinguishing cases for the condition behavior the testing requirement actually calls for.
72.A generator is reset to the same seed before every iteration and deterministically emits the same first input. The report calls 1,000 iterations 1,000 distinct examples. What is wrong?
Show answer and explanation
- Repeated execution provides no evidence about any property, even stability under an intentionally unchanged input.
- A deterministic generator cannot emit any input.
- Input diversity versus run count
- Every iteration necessarily used a different seed.
Answer: Input diversity versus run count
Repeated cases can exercise timing or stability, but they do not become distinct generated inputs. Measure and describe the dimensions actually varied rather than inflate diversity from a loop count.
73.An optimizer may return any minimum-cost valid assignment. Several different assignments have the same optimal cost. A test requires one exact assignment without a tie-breaking requirement. What should its oracle verify?
Show answer and explanation
- Only whether the implementation matches its previous output
- Only whether the result is nonempty
- One arbitrary optimal witness as the only legal answer, even though the contract allows other valid equal-cost assignments
- Validity and optimal cost, plus any actual specified tie rule
Answer: Validity and optimal cost, plus any actual specified tie rule
Multiple valid witnesses require an oracle aligned with the contract. Check feasibility and the required objective rather than invent an ordering or tie rule that was never promised.
74.A changed snapshot fails. An engineer regenerates the expected snapshot from current output and accepts it without checking the intended behavior. What evidence is missing?
Show answer and explanation
- That the application produced output
- A new snapshot can be written from actual output, which alone proves the changed behavior satisfies the independent requirement.
- That the actual and newly copied expected bytes agree
- That the changed output satisfies the reviewed contract
Answer: That the changed output satisfies the reviewed contract
Updating an expectation can be legitimate, but agreement after copying actual output is not independent validation. Review the meaningful differences against the requirement before accepting them.
75.A test command exits successfully but discovers zero of the intended new cases because its filename pattern excludes them. What execution evidence must the check include?
Show answer and explanation
- That the required tests were actually discovered and run
- Only a report heading saying tests
- Only exit status, treating a successful runner with zero relevant discovered tests as proof that the new cases passed
- Only the test files' presence in the repository
Answer: That the required tests were actually discovered and run
A successful runner can have an empty or unintended scope. Verify the relevant discovery and execution inventory rather than infer it from file existence or exit status alone.
76.A flaky test is quarantined temporarily. The release report says the complete required behavior was verified without disclosing that exclusion. What scope must the report preserve?
Show answer and explanation
- Quarantine proves the excluded product behavior is correct, so its missing evidence can be omitted from the verification scope.
- The excluded coverage and the evidence still required
- A guarantee that an excluded failure cannot recur
- Only the total number of remaining tests
Answer: The excluded coverage and the evidence still required
Quarantine can manage an investigation without establishing the omitted property. Track ownership, reason, and missing evidence, and do not present a reduced scope as complete verification.
77.A test replaces a dependency in module A. The target function already holds a separate imported reference from module B and still calls the real dependency. What should the fixture verify?
Show answer and explanation
- Only an intended dependency name in the test source
- The actual dependency boundary used by the target was controlled.
- Every import automatically follows later replacement in any module.
- Only creation of a mock object in module A, treating that as proof that code holding a separate reference in module B used the substitute
Answer: The actual dependency boundary used by the target was controlled.
Creating a substitute does not establish that execution used it. Inject or replace the actual lookup boundary under the language and import contract, and verify intended isolation and interactions.
78.A fault-injection hook is configured, but a warm-cache path bypasses the hooked function. The test reports recovery success without the fault occurring. What must be observed?
Show answer and explanation
- The cache returned a successful result.
- No exception escaped from the test.
- Only the hook's configuration entry, treating it as proof of delivered failure even when the exercised cache path bypassed the hook
- The intended fault was delivered on the exercised path.
Answer: The intended fault was delivered on the exercised path.
A configured experiment is not necessarily a delivered experiment. Confirm the relevant path and fault before interpreting the result as recovery evidence.
79.A detector checks unsynchronized memory access. A defect instead performs the wrong logical sequence using individually synchronized operations. What does a clean detector run fail to establish?
Show answer and explanation
- Correctness of the higher-level operation invariant
- The possibility of collecting other evidence
- The detector's stated property scope
- The absence of any reported violation in that run
Answer: Correctness of the higher-level operation invariant
Different tools detect different classes of defects. A negative result for one property is not a proof of all state, lifetime, sequencing, or progress requirements.
80.An analyzer reports a path to failure that depends on an input precondition. The team dismisses it solely because production has not reported that failure. What should review establish?
Show answer and explanation
- Whether the path is feasible under the actual input and environment contract
- Only the absence of historical reports, treating lack of observed incidents as proof that the analyzer's input-dependent path is infeasible
- Only the warning's assigned severity level
- A guarantee that every static report is either always real or always irrelevant
Answer: Whether the path is feasible under the actual input and environment contract
Analyze the assumptions and reproduce or otherwise validate the relevant path. Lack of a reported incident does not determine whether a potential violation is feasible.
81.A test expects the primary operation's error, but a cleanup exception replaces it. The API promises preserving the primary error and recording cleanup failure separately. What should the test assert?
Show answer and explanation
- Any exception is sufficient, even if cleanup replaced the original error and the API requires preserving it separately.
- Only successful cleanup paths
- Only the final cleanup exception
- The specified primary outcome and secondary cleanup evidence
Answer: The specified primary outcome and secondary cleanup evidence
Failure composition is observable behavior under the supplied contract. Exercise the simultaneous failures and verify their intended reporting rather than accept any thrown exception as equivalent.
82.An API explicitly promises using a cache without contacting the store on a valid hit. Which interaction assertion can test that promised boundary?
Show answer and explanation
- No store call occurs for the defined valid-hit case.
- An exact incidental helper-call count for every internal function
- Only that a miss case contacts the store
- Only that the response body is nonempty
Answer: No store call occurs for the defined valid-hit case.
Some interaction assertions are contractual. Check the promised no-store path while avoiding incidental implementation details that do not define the behavior.
83.A function promises bounded memory under a specified input class. Its tests assert returned values only and collect no resource evidence. What remains unverified?
Show answer and explanation
- The existence of a test runner
- The ability to supply inputs
- Correct returned values prove the stated memory bound, even though no required resource measurement or analysis was performed.
- The stated memory bound under the relevant conditions
Answer: The stated memory bound under the relevant conditions
Functional results do not establish resource usage. Use appropriate measurement or analysis and its scope, overhead, and assumptions for the actual bound being claimed.
84.A test asserts an invariant after every internal field write, but the contract permits private intermediate state inside a protected operation and requires the invariant at observable boundaries. What must the oracle respect?
Show answer and explanation
- The invariant's actual observation and synchronization boundaries
- A rule that all invariants are irrelevant
- Only the number of field writes
- A requirement that every internal representation always be a public state
Answer: The invariant's actual observation and synchronization boundaries
A test can overconstrain a valid implementation. Verify that the allowed protocol really hides the transition and restores the invariant at required boundaries, rather than invent a stronger contract without reason.
85.A deadline test advances a fake wall clock, but the target reads an uninjected monotonic clock. What prerequisite for the test's timing claim is missing?
Show answer and explanation
- Only the displayed wall-clock value
- Only a larger change to the unrelated wall clock, assuming it necessarily advances the target's separate uninjected monotonic source
- A guarantee that all clock sources share one mutable value
- Control or valid observation of the clock the target actually uses
Answer: Control or valid observation of the clock the target actually uses
Clock injection must reach the actual timing boundary. Changing an unrelated clock does not establish how the target behaves as its own deadline source advances.
86.A parser test reuses one incremental parser across inputs intended as independent complete messages. State from one case contaminates the next. What lifecycle must the fixture specify?
Show answer and explanation
- Only additional test functions sharing the same unspecified parser lifetime
- Reset or separate parser state according to the intended message contract
- Only a different input label, without resetting or separating incremental parser state between supposedly independent messages
- A rule that parser state is irrelevant to every API
Answer: Reset or separate parser state according to the intended message contract
Some APIs are deliberately incremental; independent-message tests still need the appropriate fresh or reset state. Match fixture lifetime to the actual contract instead of accidentally composing unrelated cases.
87.An API returns milliseconds. A test accidentally expects seconds but uses a tolerance so broad that the unit error passes. What must numerical assertions preserve?
Show answer and explanation
- A rule that increasing tolerance always improves test quality
- Compatible units and a tolerance justified by the required accuracy
- Only whether the values have the same sign
- Only numerical type compatibility, treating a broad tolerance as permission to compare seconds with milliseconds without conversion
Answer: Compatible units and a tolerance justified by the required accuracy
Tolerances belong to a domain and unit. Validate representation and precision before accepting differences; a permissive threshold can conceal a fundamental unit mismatch.
88.A transform intentionally removes leading zeros from numeric text. A proposed test requires decoding the transformed text to reproduce the original spelling exactly. What assumption must be reviewed?
Show answer and explanation
- Only the fact that input and output are strings, treating that as proof of byte-for-byte invertibility despite deliberate information loss
- Only the number of encoder calls
- A rule that every transform must preserve every input byte
- Whether the specified transform is lossless for that representation
Answer: Whether the specified transform is lossless for that representation
A round-trip property must fit the semantics. A deliberately lossy representation change may preserve value without preserving original spelling; test the promised property rather than an unjustified inverse.
89.A supplied test mode disables ordinary assertion statements. A suite relies only on those statements and runs in that mode. What does a successful process exit fail to prove?
Show answer and explanation
- The process reached a successful exit, which proves disabled ordinary assertions must have evaluated their intended predicates.
- That a different check mechanism could be used
- That its intended checks were actually enforced
- That configuration can alter execution
Answer: That its intended checks were actually enforced
Verify the runner and check mechanisms used in the actual configuration. Successful execution without active assertions is not evidence that the intended predicates held.
90.A result file from yesterday remains in a reused directory. A new test process is still running, but a script reads that old file and reports the new run passed. What identity is missing?
Show answer and explanation
- Only the old result's content format
- A rule that a file's existence proves every later process completed
- Only the file's continued existence, treating yesterday's receipt as proof that the current running process reached a successful terminal state
- The result's binding to the current execution and terminal state
Answer: The result's binding to the current execution and terminal state
Associate evidence with the actual run, artifact, inputs, and completed status. A stale receipt must not substitute for observing the current execution's result.
91.In 20 executions of the same test setup, five fail and fifteen pass. What is the observed failure fraction in those executions?
Show answer and explanation
- 25%
- 75%
- 20%
- 5%
Answer: 25%
The observed fraction is 5/20 = 0.25 = 25%. It describes these executions, not an exact universal probability or a diagnosis of why they failed.
92.A supplied numerical model makes ordered comparisons with NaN false. A test accepts when NOT(
abs(actual-expected)> tolerance), and the result may be NaN although the contract requires a finite value. What can go wrong?Show answer and explanation
- NaN can pass that negated comparison without being a valid finite result.
- A tolerance proves the result is finite.
- The test always rejects NaN under the supplied comparison rules.
- Every Boolean expression involving NaN must be false, even when a false ordered comparison is explicitly negated.
Answer: NaN can pass that negated comparison without being a valid finite result.
If the inner ordered comparison is false for NaN, its negation is true. Validate the finite-domain requirement and use a comparison consistent with the actual numerical contract.
93.A supplied parser stores integers in a representation exact only through 2^53 and rounds 2^53+1 to 2^53. The protocol requires distinct exact IDs at both values. What should an interoperability test expose?
Show answer and explanation
- A successful parse proves exact preservation.
- The parser's rounded values define protocol identity, even though the supplied protocol requires the two exact IDs to remain distinct.
- Every integer protocol must use that representation.
- The representation loses a required identifier distinction.
Answer: The representation loses a required identifier distinction.
Parsing success is not exact numeric preservation. Test the boundary demanded by the protocol and use a representation or encoding that preserves the required IDs.
94.A payload parses as structurally valid JSON, but a required numeric field is the string "7" and the API forbids coercion. What must the test check beyond syntax?
Show answer and explanation
- A rule that parsing guarantees every application schema
- Only JSON syntax, treating grammar acceptance as proof that a numeric schema field can legally contain a string when coercion is forbidden
- Only that the string contains a digit
- The required runtime type and domain validation
Answer: The required runtime type and domain validation
A data format's grammar does not enforce every application requirement. Exercise the type and domain contract instead of accepting a syntactically valid but invalidly typed payload.
95.An integration test checks that a global item count increased by one. Another concurrent operation can cause that increase while the tested operation fails. What stronger correlation is needed?
Show answer and explanation
- Only a larger delay before reading
- Evidence of the specific intended item's identity and required state
- Only the test request's HTTP status text
- Only another global count read, without tying the observed increase to the tested request rather than unrelated concurrent work
Answer: Evidence of the specific intended item's identity and required state
An aggregate change can have a different cause. Correlate the outcome to the operation and scoped fixture being tested, including the required identity and content.
96.A test records only the absence of an error message. The implementation can fail silently and produce no required output. What should the success oracle establish?
Show answer and explanation
- No recorded error message is itself proof that the promised output exists, even when the implementation can fail silently.
- Only the logger's configured verbosity
- The required positive outcome as well as relevant failure evidence
- Only the process's ability to remain alive
Answer: The required positive outcome as well as relevant failure evidence
No error observed does not establish success. Assert the promised result, state, or effect and make the relevant missing or unresolved outcomes visible.
97.A failure predicate holds for input sizes 1 and 3 but not 2. Starting with size 3, a reducer tries only one-element removals, all producing size 2. What can it conclude?
Show answer and explanation
- No smaller failing input exists.
- Size 3 is locally irreducible under those tried moves, not globally smallest.
- Every two-element removal must also stop failing.
- Size 3 is the smallest failing input in the supplied domain.
Answer: Size 3 is locally irreducible under those tried moves, not globally smallest.
The supplied predicate gives a smaller failing size 1. Failure of every single removal establishes only the chosen local condition, not global optimality over other reductions.
98.A suite launches several checks but reports success when the first completed check passes. Another required check is still running and may fail. What completion contract is missing?
Show answer and explanation
- A guarantee that any one pass implies every sibling passes
- Only the launch count
- Aggregate evidence for all required checks and their final outcomes
- Only the first pass, treating success of one completed sibling as proof that every required still-running check will pass
Answer: Aggregate evidence for all required checks and their final outcomes
A partial result is not suite completion. Track the relevant checks to their required terminal outcomes and handle failures and cancellation according to the runner's actual policy.
99.A harness is tested only with a known-good implementation. What would help verify that its asserted property can reject an implementation known to violate it?
Show answer and explanation
- Only the count of loaded test modules
- A controlled known-bad case with the expected failing outcome
- A screenshot of the harness's success banner
- More identical known-good executions, treating positive results alone as proof that the harness rejects the known-bad implementation
Answer: A controlled known-bad case with the expected failing outcome
Positive controls alone do not test rejection sensitivity. A suitable negative control can reveal missing wiring or ineffective assertions, within the controlled case's actual scope.
100.A repair fixes one reproduced failure. Several unrelated incidents share the same generic exception text. What broader claim still needs evidence?
Show answer and explanation
- That further diagnosis can compare the incidents
- That the reproduced case passed after the repair
- That a generic message can have multiple causes
- That the repair resolves those other incidents too
Answer: That the repair resolves those other incidents too
A message category is not a unique cause. Preserve the evidence for the repaired case and investigate whether other incidents share the relevant mechanism before grouping them as resolved.
101.A verification report lists green commands but omits tested versions, fixture scope, skipped cases, actual outcomes, and known limits. What must its conclusion be grounded in?
Show answer and explanation
- Only the intended test plan
- Only the total number of green labels, treating the intended plan as equivalent to attributable executed checks and their actual results
- The behavior and scope supported by attributable execution evidence
- A guarantee that any passing command proves every requirement
Answer: The behavior and scope supported by attributable execution evidence
A useful report ties claims to the actual artifact, inputs, checks, results, and limitations. Distinguish executed verification from plans, assumptions, and untested behavior.