MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

MACHINE LEARNING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is FALSE about Tuples in Python?
A
Tuples are immutable
B
Tuple items can be deleted using del keyword
C
Tuples can be declared as:x, y=1, 2
D
None of the above
Explanation: 

Detailed explanation-1: -Explanation: Tuples are represented with round brackets. 2. Suppose t = (1, 2, 4, 3), which of the following is incorrect? Explanation: Values cannot be modified in the case of tuple, that is, tuple is immutable.

Detailed explanation-2: -Note: You cannot remove items in a tuple.

Detailed explanation-3: -Q 22-Which of the following is correct about tuples in python? A-A tuple is another sequence data type that is similar to the list.

Detailed explanation-4: -To explicitly remove an entire tuple, just use the del statement.

There is 1 question to complete.