0%
0 / 15 answered

Lists Practice Test

15 Questions
Question
1 / 15
Q1

A student grades list of integers starts as 90, 84, 76, 88, 95. A teacher tries to add 10 points to the second grade, like a bonus for extra credit. The code mistakenly uses grades2 = grades2 + 10 while intending the second element. The list uses zero-based indexing. Only one element should be updated. Based on the scenario above, identify the error in the list operation and suggest a correction.

Question Navigator