QUIZ Time Starts !

5 minutes

Thanks you have successfully attempted the quiz.


Python List Quiz

Fill out the form to attempt test.

 

 

 

1 / 10

10. What is the result of the following operation: lst[::2] where lst = [0, 1, 2, 3, 4, 5]?

2 / 10

9. Which of the following methods is used to sort a list in Python?

 

3 / 10

8. How can you check if an element x exists in a list lst in Python?

4 / 10

7. Which of the following methods adds an element at the beginning of a list in Python?

5 / 10

6. What does the extend() method do for lists?

6 / 10

5. What is the result of lst[1:3] where lst = [1, 2, 3, 4, 5]?

7 / 10

4. How do you remove the last element from a list in Python?

8 / 10

3. What does the range(5) function return in Python?

9 / 10

2. Which of the following data types is immutable in Python?

10 / 10

1. What will be the output of the following code?

x = [1, 2, 3]
y = x
y[0] = 10
print(x)

Your score is