Class 11 List Manipulation MCQ Quiz

Preview



Created by Lucky

Class 11 List Manipulation Quiz

1 / 46

To sort a list, sort() and sorted (), both can be used.

 

2 / 46

Which of the following is a standard Python library function and not an exclusively list function ?

 

3 / 46

The ___ function sorts a list and returns another list .

 

4 / 46

The ___  function sorts a list and makes changes in the list .

 

5 / 46

If LI =[1,3,5]and L2=[2,4,6] then L1+L2 will yield

 

6 / 46

The del statement can only delete list slices and not single elements from a list .

 

7 / 46

To create a empty list, function __ can be used.

 

8 / 46

What is the output of the following?
names= ['Hasan' ,'Balwant', 'Sean','Dia']
print(names[-1][-1])

9 / 46

If L=[1,2] then L*2 will yield

 

10 / 46

Which of the following can copy a list to another list ?

 

11 / 46

The POP( ) and remove( ) are similar functions.

 

12 / 46

The list() and copy() are the similar functions .

 

13 / 46

Which of the following will return the last element of a list  L with 5 elements ?

 

14 / 46

The ___ function is used to insert an element at a designated position in a list

 

15 / 46

The ___ operator adds one list to the end of another list.

 

16 / 46

The ____ function is used  to delete an element from a designated index in a list .

 

17 / 46

To find the last element of list namely Smiles in Python,___ will be used.

 

18 / 46

To delete a list slice from a list , ____ is used .

 

19 / 46

To check if an element is not in list, _____ operator is used .

 

20 / 46

The del statement can work similar to the pop() function.

will give output

21 / 46

Which of the following can't add a list of elements to a list ?

 

22 / 46

Which of the following searches for an element in a list and returns its index ?

 

23 / 46

What is correct syntax to copy one list into another ?

 

24 / 46

A ___ list contains another list as its member .

 

25 / 46

Given a list L=[10,20,30,40,50,60,70]
What would L[-3 : 99]return ?

26 / 46

Which of the following can add only one value to a list?

 

27 / 46

The insert () can add an element in the middle of a list.

28 / 46

lists are ____ data types and thus their values can be changed.

 

29 / 46

What is the output of the following 
L=[None]* 10
print(len(L))

30 / 46

What is the output when we execute list("hello") ?

 

31 / 46

Which of the following can delete an element from  a list if the index of the  element is given ?

 

32 / 46

Which of the following will create an empty list ?

 

33 / 46

The ____ operator replicates a list

 

34 / 46

Given a list l=[10,20,30 40,50,60]
What would L[2 : -2] return?

35 / 46

What is printed by the Python code ?
print (list (range(3)))

36 / 46

A = [] and A = list () will produce the same result .

 

37 / 46

Given a list L=[10,20,30,40,50,60,70 ]
What would l[1 :4] return ?

 

38 / 46

Lists once created cannot be changed .

 

39 / 46

Consider the list alist =["PTK", [1,5.5,8] ].
What would the following code print ?
print(alist[0][1], alist[1] [1] )

 

40 / 46

Which of he following can't delete an element from a list if the index of the element is given ?

 

41 / 46

Which of the following will always returns a list ?

 

42 / 46

The extend () adds a single element  to a list .

 

43 / 46

List can contains values of these types :

 

44 / 46

Which of the following commands will create a list ?

 

45 / 46

The append() can add an element in the middle  of a list.

 

46 / 46

The ___ function can append a list of elements to a list.

 

Your score is

0%

Exit



 

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