When would you use a tuple?



When would you use a tuple?..

Answer / Bhoop Singh

A tuple is a data structure that can hold multiple elements of different types. It's useful when you need to keep track of values without worrying about their order, but want to enforce a specific type for each element. This is particularly useful in languages like Python.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Does hashmap maintain insertion order?

1 Answers  


Differentiate between push and pop?

1 Answers  


Can we store a string and integer together in an array?

1 Answers  


What is the use of placement new?

1 Answers  


Sorting is not possible by using which of the following methods? (a) Insertion (b) Selection (c) Exchange (d) Deletion

1 Answers  


What are the applications of b-tree?

1 Answers  


Which is better merge or quick sort?

1 Answers  


Differentiate between queue and stack.

1 Answers  


What is a circular singly linked list?

1 Answers  


What is a pass in bubble sort?

1 Answers  


where do you use double linked list?

1 Answers  


Is radix sort faster than quicksort?

1 Answers  


Categories