Vidyalelo
Python · Q36

MCQs on Python Tuples: Exam

Programming · Python · question 36

Q36

Is the following Python code valid? >>> a=(1,2,3,4) >>> del a

A.
No because tuple is immutable
B.
Yes, first element in the tuple is deleted
C.
Yes, the entire tuple is deleted
Answer
D.
No, invalid syntax for del method

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board