## Class 11 List Manipulation MCQ Quiz

Preview

Created by Lucky

Class 11 List Manipulation Quiz

1 / 46

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

2 / 46

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

3 / 46

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

4 / 46

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

5 / 46

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

6 / 46

The ____ operator replicates a list

7 / 46

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

8 / 46

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

9 / 46

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

10 / 46

A ___ list contains another list as its member .

11 / 46

What is correct syntax to copy one list into another ?

12 / 46

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

13 / 46

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

14 / 46

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

15 / 46

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

16 / 46

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

17 / 46

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

18 / 46

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

19 / 46

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

20 / 46

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

21 / 46

Which of the following commands will create a list ?

22 / 46

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

23 / 46

List can contains values of these types :

24 / 46

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

25 / 46

The ___ function sorts a list and returns another list .

26 / 46

Which of the following will create an empty list ?

27 / 46

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

28 / 46

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

29 / 46

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

30 / 46

Lists once created cannot be changed .

31 / 46

Which of the following will always returns a list ?

32 / 46

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

33 / 46

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

34 / 46

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

35 / 46

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

36 / 46

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

37 / 46

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

38 / 46

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

39 / 46

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

40 / 46

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

41 / 46

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

42 / 46

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

will give output

43 / 46

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

44 / 46

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

45 / 46

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

46 / 46

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

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