CBSE Class 12 Computer Science
Question 9 of 42
Solved 2024 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 9
Back to all questions 9
Question Statement 4
Reason — The statement that would give an error during execution of the given code is Statement 4 (tup[4] = 80). This is because tuples in Python are immutable, meaning we cannot modify the elements of a tuple after it has been created. Here, it is attempting to assign 80 to the element at the index 4 of a tuple, which results in an error because tuples do not support item assignment.