Lists, Tuples, Sets and Dictionary Model Question Paper

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 01:00:00 Hrs
Total Marks : 40
5 x 1 = 5
1. Which of the following function is used to count the number of elements in a list?

(a)

count()

(b)

find()

(c)

len()

(d)

index()

2. 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.

3. 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

4. In list, the negative index number begin with

(a)

0

(b)

1

(c)

-1

(d)

0.1

5. a = ['A', 2, 3, [4,5,6]] is an example of

(a)

Tuple

(b)

Set

(c)

List

(d)

Dictionary

6. 5 x 2 = 10
7. Write the syntax of creating a Tuple with n number of elements.

8. What is set in Python?

9. What is nested list? Give example.

10. Write a syntax that shows the lists are mutable.

11. State the working of pop () and clear () function.

12. 5 x 3 = 15
13. List out the set operations supported by python.

14. What are the difference between List and Dictionary?

15. How will you find the length of a list? Explain with an example.

16. How will delete an entire tuple? Give an example.

17. Write a note on the following function used in list.

18. 2 x 5 = 10
19. What is nested tuple? Explain with an example.

20. Explain remove (), pop () and clear () used in list with an example.