" /> -->

#### Lists, Tuples, Sets and Dictionary Book Back Questions

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
5 x 1 = 5
1. Pick odd one in connection with collection data type

(a)

List

(b)

Tuple

(c)

Dictionary

(d)

Loop

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

(a)

append()

(b)

append_more()

(c)

extend()

(d)

more()

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

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

5. The keys in Python, dictionary is specified by

(a)

"="

(b)

";"

(c)

"+"

(d)

":"

6. 3 x 2 = 6
7. How will you access the list elements in reverse order?

8. Write the syntax of creating a Tuple with n number of elements.

9. What is set in Python?

10. 3 x 3 = 9
11. Write a shot note about sort( ).

12. List out the set operations supported by python.

13. What are the difference between List and Dictionary?

14. 2 x 5 = 10
15. What the different ways to insert an element in a list. Explain with suitable example.

16. Explain the different set operations supported by python with suitable example.