## Class 11 Tuples MCQ Quiz

Preview

Created by Lucky

Class 11 Tuples Quiz

1 / 34

Functions max() and min() work with all types of nested tuples.

2 / 34

What will be the output of following Python code ?
tp1= (5,1,7,6,2)
tp1.pop(2)
print(tp1)

3 / 34

What is the output of the following code ?
t= (10, 20, 30, 40,50,60,70)
print(t [5:-1])

4 / 34

What  is the output of the following code ?
t= ( 10,20,30,40,50,60,70,)
print(t[2:-2])

5 / 34

The ___ operator can be used to check for an element's presence in a tuple.

6 / 34

Choose the correct statement (s) .

7 / 34

A tuple can store values of ___ data types .

8 / 34

A tuple element inside another element is considered a single element.

9 / 34

Which of the below given functions cannot be used with nested tuples ?

10 / 34

A Tuple can store elements of different types .

11 / 34

Which of the following is /are correctly declared tuples(s) ?

12 / 34

The ____ function returns the number of elements in a tuple .

13 / 34

What will be the output of following Python code ?
tp1=(2,4,3)
tp3=tp1*2
print(tp3)

14 / 34

The ___ operator used with two tuples, gives a concatenated tuple.

15 / 34

The element in a tuple can be deleted .

16 / 34

Tuples are ____ data types of Python

17 / 34

With tuple( ) function , the argument passed must be of a sequence type.

18 / 34

What will be the output of he following Python code ?
tp = (5,)
tp1=tp*2
print(len(tp1) )

19 / 34

Which of the following statements will create a tuple ?

20 / 34

Choose the correct statement(s).

21 / 34

A tuple storing other tuples in it is called a nested tuple .

22 / 34

What will be the output of the following Python code ?
tp= ( )
tp1 = tp*2
print(len(tp1) )

23 / 34

Which of the following will create a single element tuple ?

24 / 34

The _____ function sorts the elements of a tuple and returns a list .

25 / 34

Which of the following options will not result in an error when performed on tuples in Python Where tp=(1,2,3,4,5) ?

26 / 34

A tuple cannot have negative indexing .

27 / 34

sum() function can be applied on tuples having numeric elements only.

28 / 34

The ___ function cannot work with nested tuples.

29 / 34

Given tp = (1,3,2,19,10). Which of the following statements will give the same output ?
(i) print ( tp[:-1])
(ii) Print( tp[0:5])
(iii) print( tp[0:4] )
(iv) print (tp [-4:] )

30 / 34

A tuple cannot store other tuples in it.

31 / 34

The ____ function returns the index of an element in a tuple .

32 / 34

To create a single element tuple storing element  5, you many write t =( ___  ____) .

33 / 34

The   _____ operator used with a tuple and an integer, gives a replicated tuple .

34 / 34

Tuples in python are mutable .

Lesson tags: python quiz for class 12
Back to: CBSE class 11 Computer Science Notes