Quiz on Python Lists
FREE Online Courses: Dive into Knowledge for Free. Learn More!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of the following is not a property of a list?
CorrectIncorrect -
Question 2 of 15
2. Question
What is the output of the following code?
list1=[1,2,3,4,5]
print(5.0 in list1,end=” “)
print(‘5’ in list1)CorrectIncorrect -
Question 3 of 15
3. Question
- Which of the following functions cannot be used to add an element to the list?
CorrectIncorrect -
Question 4 of 15
4. Question
What is the output of the following code?
list1=[1,’a’,5.4]
list1.extend([-3,0.8])
list1CorrectIncorrect -
Question 5 of 15
5. Question
Which of the following gives the output as [5] if the
list1=[[1,2,3],[4,5,6],[7,5,3]]?
CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following gives the output as [5] if the list is
list1=[1,2,3,4,5,6,7,8,9]?
CorrectIncorrect -
Question 7 of 15
7. Question
What will be the output of the following code?
list1=[1,3.4,4,’a’,’t’,4]
print(list(set(list1)))
CorrectIncorrect -
Question 8 of 15
8. Question
list1=[9,8,7,6,5,4,3,2,1]
list1.pop(4)CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following is the show error on using sort() function?
CorrectIncorrect -
Question 10 of 15
10. Question
What will be the output of the following code?
list1=[‘abc’,’tres’,’yes’]
print(list1[2][2])CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following is the property of the all() function?
CorrectIncorrect -
Question 12 of 15
12. Question
list1=[‘abc’,’rt’,”,0,4,5.7]
list2=[i for i in list1 if i]
list2
CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following gives the output as [2,3,2,3,4,5] If list1=[2,3] and list2=[4,5]
CorrectIncorrect -
Question 14 of 15
14. Question
What will be the output of the following code?
list1=[-4,6,2,-8.5]
sorted(list1)
list1
CorrectIncorrect -
Question 15 of 15
15. Question
What will be the output of the following code?
list1=[”]*3
print(len(list1))CorrectIncorrect