Embercode
✕
Learning with AIQuick quiz

Bug reports

8 questions. Covers Writing a good bug report.

Questions 1 to 5 of 8

  1. 1. A teammate sends this bug report: > Title: Broken > My average function gives the wrong answer. Please help. What is the most important thing missing?
  2. 2. A report says only: 'My code does not run.' What should it add so the reader can see the problem?
  3. 3. Put these steps for shrinking a program to a minimal example in order.

    Use the arrows to put the steps in order.

    1. 1.Run it. If the bug still happens, keep the removal; if not, put the piece back
    2. 2.Repeat until removing anything else makes the bug disappear
    3. 3.Remove one piece you think is not involved
    4. 4.Copy the full program into a new file
  4. 4. What does this print? ``python def average(numbers): total = 0 for n in numbers[1:]: total += n return total / len(numbers) print(average([2, 4, 6, 8, 10])) ``
  5. 5. True or false: a screenshot of a crash is as good as pasting the error text, because a reader can read the picture.

4 question(s) left on this page.