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. True False 2 / 34 What will be the output of following Python code ?tp1= (5,1,7,6,2)tp1.pop(2)print(tp1) Error (5,1,6,2 ) (5,1,7,6,2) (5,1,7,6) 3 / 34 What is the output of the following code ?t= (10, 20, 30, 40,50,60,70)print(t [5:-1]) (60) 60 Blank output() (60,) 4 / 34 What is the output of the following code ?t= ( 10,20,30,40,50,60,70,)print(t[2:-2]) (30, 40, 50, 60) Blank output (40, 50, 60, 70) (30, 40, 50) 5 / 34 The ___ operator can be used to check for an element's presence in a tuple. out in if 6 / 34 Choose the correct statement (s) . A tuple can contain only integers as its elements A tuple can contain elements of different types. A tuple can contain only strings as its elements A tuple can contain either string or integer but not bothat a time. 7 / 34 A tuple can store values of ___ data types . 1 2 all 8 / 34 A tuple element inside another element is considered a single element. True False 9 / 34 Which of the below given functions cannot be used with nested tuples ? count( ) max index( ) sum( ) 10 / 34 A Tuple can store elements of different types . False True 11 / 34 Which of the following is /are correctly declared tuples(s) ? a=["Hina", "Mukul" , "Reena" ,"Nikhil" ] a="Hina", "Mukul" , "Reena" ,"Nikhil" ) a=("Hina" , "Mukul" , "Reena" ,"Nikhil" ) 12 / 34 The ____ function returns the number of elements in a tuple . index() find() len() or count() 13 / 34 What will be the output of following Python code ?tp1=(2,4,3)tp3=tp1*2print(tp3) (4,8,6) Error (2,2,4,4,3,3) (2,4,3,2,4,3) 14 / 34 The ___ operator used with two tuples, gives a concatenated tuple. - + * 15 / 34 The element in a tuple can be deleted . False True 16 / 34 Tuples are ____ data types of Python mutable None of these immutable 17 / 34 With tuple( ) function , the argument passed must be of a sequence type. True False 18 / 34 What will be the output of he following Python code ?tp = (5,)tp1=tp*2print(len(tp1) ) Error 2 1 0 19 / 34 Which of the following statements will create a tuple ? None of these tp1=("a","b") tp1=(3)*3 tp1[2]=("a","b") 20 / 34 Choose the correct statement(s). Tuples are mutable while lists are immutable. Both tuples and lists are immutable Tuples are immutable while lists are mutable. Both tuples and lists are mutable. 21 / 34 A tuple storing other tuples in it is called a nested tuple . False True 22 / 34 What will be the output of the following Python code ?tp= ( )tp1 = tp*2print(len(tp1) ) 1 Error 2 0 23 / 34 Which of the following will create a single element tuple ? (1) None of these (1,) 24 / 34 The _____ function sorts the elements of a tuple and returns a list . index( ) sorted( ) unsorted() 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) ? tp.sum( ) tp[1] = 2 tp. appened(2) tp1=tp+tp 26 / 34 A tuple cannot have negative indexing . False True 27 / 34 sum() function can be applied on tuples having numeric elements only. True False 28 / 34 The ___ function cannot work with nested tuples. len( ) tuple( ) sum() 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:] ) (i),(iii) (i),(ii) (ii),(iv) (i),(iv) 30 / 34 A tuple cannot store other tuples in it. False True 31 / 34 The ____ function returns the index of an element in a tuple . find() none of these index( ) 32 / 34 To create a single element tuple storing element 5, you many write t =( ___ ____) . (5,) (5) 5 33 / 34 The _____ operator used with a tuple and an integer, gives a replicated tuple . / * + 34 / 34 Tuples in python are mutable . False True Your score is Facebook Twitter VKontakte 0% Restart quiz Exit Lesson tags: python quiz for class 12 Class 11 List Manipulation MCQ Quiz Class 11 Dictionary MCQ Quiz Back to: CBSE class 11 Computer Science Notes