Bird
0
0

Identify the error in this beta testing feedback collection code:

medium📝 Debug Q6 of 15
Testing Fundamentals - Testing Types and Levels
Identify the error in this beta testing feedback collection code:
feedback = []
feedback.append('UI bug')
feedback.add('Crash')
print(feedback)
A'add' method does not exist for list
BMissing parentheses in append
Cfeedback should be a dictionary
Dprint statement syntax error
Step-by-Step Solution
Solution:
  1. Step 1: Review list methods in Python

    Lists have 'append' method but no 'add' method.
  2. Step 2: Identify incorrect method usage

    Using feedback.add('Crash') causes an error because 'add' is not valid for lists.
  3. Final Answer:

    'add' method does not exist for list -> Option A
  4. Quick Check:

    List method 'add' invalid [OK]
Quick Trick: Use append() for lists, add() is for sets [OK]
Common Mistakes:
  • Using set methods on lists
  • Confusing append syntax
  • Assuming print causes error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes