Python List
Test your Python skills with w3resource' quiz. This page contains interesting quizzes related to Python list The test contains 32 questions with no time limit. You will have to read all the given questions, answers and click over the correct answer.
Sign in to Google to save your progress. Learn more
Let list1 = [0.5 * a for a in range(0, 4)], list1 is ________ *
1 point
What Will be The output Of the following code snippet? *
1 point
Captionless Image
Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1.index(5)? *
1 point
What Will be The output Of the following code snippet? *
1 point
Captionless Image
Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], What is list1[-1]? *
1 point
What is the output when we execute list(“hello”)? *
1 point
"Welcome to Python".split() is ________ *
1 point
list1 = [11, 2, 23] and list2 = [11, 2, 2], list1 < list2 is ________ *
1 point
Let list1 =  [3, 4, 5, 18, 5, 22, 1, 2], what is len(list1)? *
1 point
 Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()? *
1 point
What will be the output of the following code snippet? *
1 point
Captionless Image
Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is max(list1)? *
1 point
Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], Which of the following is correct? *
1 point
Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.extend([34, 5])? *
1 point
Let list1 = [2, 3, 4], What is list1 * 2? *
1 point
To remove string "red" from list1, use _______. *
1 point
Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)? *
1 point
What will be the output of the following code snippet? *
1 point
Captionless Image
To insert 5 to the third position in list1, use _______. *
1 point
What will be the output of the following code snippet? *
1 point
Captionless Image
To add 5 to the end of list1, use _______. *
1 point
What will be the output of the following code snippet? *
1 point
Captionless Image
Let list1 = [0, 3, 2], what is sum(list1)? *
1 point
 Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.sort()? *
1 point
What is list("a#b#c#d".split('#'))? *
1 point
list1 = [11, 2, 23] and list2 = [2, 11, 23], list1 == list2 is ________ *
1 point
What is list("pqrs")? *
1 point
Let list1 = [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)? *
1 point
Let list1 = [3, 2, 5, 10, 5, 24, 1, 3], what is min(list1)? *
1 point
 __________ creates a list. *
1 point
Let list1 = [1, 3, 2, 4, 5, 2, 1, 0], What is list1[:-1]? *
1 point
To shuffle list1, use _______. *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google.