Automated Program Repair Quiz
Automated Program Repair Quiz.
Which best describes automated program repair?
*
Automatically generating candidate code changes intended to fix a software defect
Automatically translating source code into another programming language
Automatically proving that an entire software system is free of defects
Automatically replacing software testing with code review
Which inputs can help an automated repair tool locate and reproduce a bug? Select all that apply.
*
A failing test case
A stack trace or bug report
A program's source code
An unrelated color theme for the code editor
What is the role of a fault localization technique in program repair?
*
It identifies code locations that may be responsible for a failure
It guarantees that every generated patch is correct
It deploys a patch to production
It converts all failing tests into passing tests without changing code
Which activities may be part of an automated repair workflow? Select all that apply.
*
Reproducing the failure or collecting relevant test results
Ranking or locating suspicious code
Generating candidate patches
Testing candidate patches against relevant checks
What is a candidate patch?
*
Why might a repair tool generate multiple candidate patches for one bug?
*
A candidate patch makes the known failing test pass. What is the most important next step before treating it as a correct repair?
*
Run relevant regression tests and other validation checks
Assume the patch is correct because one test now passes
Remove the tests that previously failed
Deploy the patch immediately without review
Why can passing the existing test suite be insufficient to prove that a patch is correct?
*
The tests may not cover all relevant behavior or expose regressions
Passing tests always means the patch changed no behavior
Test results cannot be used to evaluate software changes
A patch is correct only if it changes every test
Which are recognized limitations or risks of automated program repair? Select all that apply.
*
A patch may overfit the available tests
The tool may struggle with incomplete specifications or complex behavior
Searching many candidate patches can require substantial computation
Any generated patch is guaranteed to be maintainable and correct
In a few sentences, describe one way to improve confidence in a generated repair beyond checking that the original failing test passes.
*
Submit Quiz
Should be Empty: