Evaluation Part - I Choose the best answer ( Marks) . Pick odd one in connection with collection data type (a) List (b) Tuple (c) Dictionary (d) Loop . Let list1=[ , , , , ], then print(List1[- ]) will result in (a) (b) (c) (d) . Which of the following function is used to count the number of elements in a list?
(a) count() (b) find() (c) len() (d) index() . If List=[ , , , , ] then List[ ]= will result (a) [ , , , , , ] (b) [ , , , , , ] (c) [ , , , , ] (d) [ , , , , ] . If List=[ , , , ] then List.append( ) will result (a) [ , , , , ] (b) [ , , , , ] (c) [ , , , , ] (d) [ , , , , ] . Which of the following Python function can be used to add more than one element within an existing list?
(a) append() (b) () (c) extend() (d) more() 12th Computer Chapter - - . What will be the result of the following Python code? S=[x** for x in range( )] print(S) (a) [ , , , , ] (b) [ , , , , ] (c) [ , , , , , ] (d) [ , , , , ] . What is the use of type() function in python?
(a) To create a Tuple (b) To know the type of an element in tuple. (c) To know the data type of python object. (d) To create a list. .
Which of the following statement is not correct? (a) A list is mutable (b) A tuple is immutable. (c) The append() function is used to add an element. (d) The extend() function is used in tuple to add elements in a list.
. Let setA = { , , }, setB = { , , }. What will be the result of the following snippet? print(setA|setB) (a) { , , , , , } (b) { , } (c) { } (d) { , , , } .
Which of the following set operation includes all the elements that are in two sets but not the one that are common to two sets? (a) Symmetric difference (b) Difference (c) Intersection (d) Union . The keys in Python, dictionary is specified by (a) = (b) ; (c) + (d) : Part - II Answer the following questions ( Marks) . What is List in Python?
. How will you access the list elements in reverse order? . What will