Question 1 Of 10
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?
Symmetric difference
Difference
Intersection
Union
Question 2 Of 10
Which of the following statement is not correct?
A list is mutable
A tuple is immutable.
The append () function is used to add an element.
The extend () function is used in tuple to add elements in a list.
Question 3 Of 10
Which of the following Python function can be used to add more than one element within an existing list?
append ()
append_more()
extend ()
more()
Question 4 Of 10
Which of the following function is used to count the number of elements in a list?
count()
find()
len()
index()
Question 5 Of 10
If List= [17,23,41,10] then List.append (32) will result
[32,17,23,41,10]
[17,23,41,10,32]
[10,17,23,32,41]
[41,32,23,17,10]
Question 6 Of 10
Let setA={3,6,9], setB={l,3,9}. What will be the result of the following snippet? print(setA | setB)
{3,6,9,1,3,9}
{3,9} c) {1}
{1}
{1,3,6,9}
Question 7 Of 10
What will be the result of the following Python code?
[0,1,2,4,5]
[0,1,4,9,16]
[0,1,4,9,16,25]
[1,4,9,16,25]
Question 8 Of 10
What is the use of type() function in python?
To create a Tuple
To know the type of an element in the tuple
To know the data type of python object
To create a list.
Question 9 Of 10
Pick odd one in connection with collection data type
List
Tuple
Dictionary
Loop
Question 10 Of 10
If List= [10,20,30,40,50] then List[2]=35 will result ~
[35,10,20,30,40,50]
[10,20,30,40,50,35]
[10,20,35,40,50)
[10,35,30,40,50]