Python Iterables Quiz
FREE Online Courses: Elevate Skills, Zero Cost. Enroll Now!
Quiz Summary
0 of 10 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 10 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
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
Iterables can store ______ type of values.
CorrectIncorrect -
Question 2 of 10
2. Question
What type of objects are examples of iterables in Python?
CorrectIncorrect -
Question 3 of 10
3. Question
____ is/are immutable iterable(s).
CorrectIncorrect -
Question 4 of 10
4. Question
____ iterable does not contain duplicates.
CorrectIncorrect -
Question 5 of 10
5. Question
____, ____, and ____ are used for list, set, tuple respectively in Python.
CorrectIncorrect -
Question 6 of 10
6. Question
x, y = [3, 2]
print(x, y)
CorrectIncorrect -
Question 7 of 10
7. Question
nums = [[5, 2], [6, 3], [2, 4]]
sum = 0
for a, b in nums:
sum += a*b
print(sum)
CorrectIncorrect -
Question 8 of 10
8. Question
world = [“America”, “Australia”, “Japan”, “Korea”]
for num, name in enumerate(world):
if num == 2:
print(name)
break
CorrectIncorrect -
Question 9 of 10
9. Question
from collections.abc import Iterable
word = “B”
print(isinstance(word, Iterable))
CorrectIncorrect -
Question 10 of 10
10. Question
li = [24, 24, 24, 24, 25, 16]
print(set(li))
CorrectIncorrect