CH 9 MCQ- COMPUTER SCIENCE - XII

1. Pick odd one in connection with collection data type

2.Let list1=[2,4,6,8,10], then print(List1[-2]) will result in

3. Which of the following function is used to count the number of elements in a list?

4. If List=[10,20,30,40,50] then List[2]=35 will result

5. If List=[17,23,41,10] then List.append(32) will result

6.Which of the following Python function can be used to add more than one element within an existing list?

7. What will be the result of the following Python code? S=[x**2 for x in range(5)] print(S)

8. What is the use of type() function in python?

9. Which of the following statement is not correct?

10. Let setA = {3,6,9}, setB = {1,3,9}. What will be the result of the following snippet? print(setA|setB)

11. 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?

12. The keys in Python, dictionary is specified by

Score: 0 / 12