Quiz on Python zip()
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
- The maximum number of arguments that can be given to the zip() function is?
CorrectIncorrect -
Question 2 of 15
2. Question
- What does the zip() function return?
CorrectIncorrect -
Question 3 of 15
3. Question
- Which of the following is not an application of the zip() function?
CorrectIncorrect -
Question 4 of 15
4. Question
- What is the use of the zip_longest() function?
CorrectIncorrect -
Question 5 of 15
5. Question
- To which of the following data types, the return value of the zip() function cannot be converted?
CorrectIncorrect -
Question 6 of 15
6. Question
What is the output of the following code?
for i in zip((1,3,5,7,9)):
print(i,end=(‘ ‘))CorrectIncorrect -
Question 7 of 15
7. Question
What is the output of the following code?
for i in zip(‘Python’,{1,2,3,4,5,6}):
print(i,end=(‘ ‘))CorrectIncorrect -
Question 8 of 15
8. Question
What is the output of the following code?
for i in zip(range(3),’aeiou’):
print(i,end=(‘ ‘))CorrectIncorrect -
Question 9 of 15
9. Question
Which of the following gives the output as:
(1.2, ‘x’, 0) (3.5, ‘y’, 1) (6.7, ‘z’, 2) (None, None, 3) (None, None, 4)
CorrectIncorrect -
Question 10 of 15
10. Question
What is the output of the following code?
from itertools import zip_longest
for i in zip_longest(‘Python’,[[1],[2],[3]],fillvalue='[]’):
print(tuple(i),end=(‘ ‘))CorrectIncorrect -
Question 11 of 15
11. Question
What is the output of the following code?
dict(zip(‘pqr’,[1,2,3],[1.2,9.4,0]))
CorrectIncorrect -
Question 12 of 15
12. Question
What is the output of the following code?
a,b,c=zip([1,2,3],(1,4,9))
print(a,b,c)CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following codes give an error?
CorrectIncorrect -
Question 14 of 15
14. Question
What is the output of the following code?
set(zip(range(3)))
CorrectIncorrect -
Question 15 of 15
15. Question
What is the output of the following code?
list1=sorted(list(zip([1,2,6,4],[3,0,8,2])))
for i in list1:
print(i[0],end=’ ‘)CorrectIncorrect