TRY TO REPLY/ANSWER ALL THE QUESTIONS:

1. Lists are mutable.

a. True

b. False

 

2.List is a  ?

a. group of same data type values only

b. group of different data type values

c. group of strings only

d. group integers only

 

3.which method append all the element of the list/tuple/set to main list?

a. add()

b.insert()

c.extend()

d.append()

 

4.which list method removes all items from the list?

a.pop()

b.pop(index)

c.remove()

d.clear()

 

5.Tuple is _______.

a.Immutable

b.mutable

 

6. t = (1,2,3) , p =(4,5,6)  what is result of print(t+p)?

a.(1,2,3,4,5,6)

b.()

c.(4,5,6,1,2,3)

d.Error

 

7. r = (10,50,90) what is the result of Print(t*2)?

a.(10,50,90)

b.(20,100,180)

c.()

d.Error

 

8. set1 ={10,20,30}  set2 = {40,50,60}

Q1. r1 = set1 + set2   print(r1)

Q2. r2= set1 & set2  print(r2)

Q3. r3= set1 - set2    print(r3)

Q4. r4 = set1 ^ set2  print(r4)

 

9. set = {10,20,50,10,20,70,10}   print("set =" ,set)

a.{10,20,50,10,20,70,10}

b.set = {10,20,50,10,20,70,10}

c.set ={10,20,50,70}

d.set()

 

10. sets are mutable.

a.True

b.False