Test Mode

Complete Test

Answer all questions and submit for instant results and performance analysis.

Q21. What makes a tuple different from a list in Python?

Q22. Which list method can combine two lists together?

Q23. What is the output of numbers = [1,2,3,4,5]; print(numbers[1:4])?

Q24. Which method is used to remove the first matching item from a list?

Q25. What will be the output? fruits=['Mango', 'Apple', 'Banana']; fruits[0]='Orange'; print(fruits)

Q26. What does the append method do in a list?

Q27. How do you access the second item in a list called fruits?

Q28. Which of the following is NOT a built-in data structure in Python?

Q29. Which of the following is a built-in Python library used to generate random numbers?

Q30. What is the purpose of a default parameter in a function?

Showing 21 to 30 of 151 Page 3 of 16