Python List & Tuple MCQs

Question 1: Which of the following is mutable?

Question 2: A list can contain _________ elements.

Question 3: What will be the output of the following code?

nums=list({1:'one',2:'two'})
print(nums)

Question 4: Which of the following is an invalid list object?

Question 5: The list.pop() function will

Question 6: If ['one', 'four', 'three', 'two'] is a list object, the sort() function will return _____.

Question 7: Which of the following is true?

Question 8: If lst=[[1,2],[3,4]], which of the following will result true?

Question 9: What will be the output of the following?

lst=['Python', 'Java', 'C++'] 
 	lst.insert(len(L1),'SQL')
print(lst)

Question 10: What are list comprehensions?