Which of the given options best describes the truthfulness of the following…
2023
Which of the given options best describes the truthfulness of the following statements?
i) A tuple is an immutable sequence of Python objects. The tuple course = ("i", "m", "n", "o") has four elements.
ii) To explicitly remove an entire tuple, use the drop statement.
- A.
i-True, ii-True
- B.
i-False, ii-True
- C.
i-True, ii-False
- D.
i-False, ii-False
Attempted by 1602 students.
Show answer & explanation
Correct answer: C
To evaluate the truthfulness of the statements, analyze each one separately.
Statement i: A tuple is an immutable sequence of Python objects. This means the tuple structure cannot be changed after creation. The tuple course = ("i", "m", "n", "o") contains four elements. Therefore, statement i is true.
Statement ii: Python does not have a "drop statement" for removing a tuple. To delete a tuple reference, Python uses the del statement. Therefore, statement ii is false.
Thus, statement i is true and statement ii is false.