CBSE Class 11 Computer Science Question 35 of 88

Tuples and Dictionary — Question 15

Back to all questions
15
Question

Question 15

Which of the following creates a tuple?

  1. t1 = ("a", "b")
  2. t1 [2]= ("a", "b")
  3. t1= (5) *2
  4. None of these
Answer

t1 = ("a", "b")

Reason — The statement t1 = ("a", "b") creates a tuple with two elements: "a" and "b".