Topics-Tuples: introduction, indexing, tuple operations (concatenation, repetition, membership and slicing); built-in functions/methods – len(), tuple(), count(), index(), sorted(), min(), max(), sum(); tuple assignment, nested tuple; suggested programs: finding the minimum, maximum, mean of values stored in a tuple; linear search on a tuple of numbers, counting the frequency of elements in a tuple.

1. What is a tuple in programming?

 
 
 
 

2. How can you access individual elements in a tuple?

 
 
 
 

3. Which of the following tuple operations combines two or more tuples together?

 
 
 
 

4. Which tuple operation repeats a tuple a certain number of times?

 
 
 
 

5. Which built-in function is used to determine the length of a tuple?

 
 
 
 

6. Which built-in method is used to count the occurrences of an element in a tuple?

 
 
 
 

7. Which built-in method is used to find the index of the first occurrence of an element in a tuple?

 
 
 
 

8. Which built-in method is used to create a tuple from a sequence?

 
 
 
 

9. Which built-in method is used to sort the elements of a tuple in ascending order?

 
 
 
 

10. Which built-in method is used to find the minimum value in a tuple of numeric values?

 

 
 
 
 

11. Which built-in method is used to find the maximum value in a tuple of numeric values?

 
 
 
 

12. Which built-in method is used to calculate the sum of values in a tuple of numeric values?

 
 
 
 

13. What is tuple assignment?

 
 
 
 

14. What is a nested tuple?

 
 
 
 

15. Which suggested program involves finding the frequency of elements in a tuple?

 
 
 
 

Copywrite © 2020-2024, CBSE Python,
All Rights Reserved