Quiz on Python range()
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
- What does the range() function return?
CorrectIncorrect -
Question 2 of 15
2. Question
- How many inputs does the function range() take and how many of them are a must?
CorrectIncorrect -
Question 3 of 15
3. Question
- To which of the following data types the output of the function range() can be converted?
CorrectIncorrect -
Question 4 of 15
4. Question
- What is the default value of the step value in the function range()?
CorrectIncorrect -
Question 5 of 15
5. Question
What is the output of the below code?
for i in range(3):
print(i,end=’ ‘)CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following operations cannot be done on the output of the range() function?
CorrectIncorrect -
Question 7 of 15
7. Question
What is the output of the below code?
for i in range(3,8):
print(i,end=’ ‘)CorrectIncorrect -
Question 8 of 15
8. Question
What is the output of the below code?
set(range(1,3,-2))
CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following returns an empty object?
CorrectIncorrect -
Question 10 of 15
10. Question
What is the output of the below code?
for i in range(1,8,3):
print(i,end=’ ‘)
CorrectIncorrect -
Question 11 of 15
11. Question
What is the output of the below code?
for i in range(-4,-10,-2):
print(i,end=’ ‘)
CorrectIncorrect -
Question 12 of 15
12. Question
- Which of the following do not give any error?
CorrectIncorrect -
Question 13 of 15
13. Question
What is the output of the below code?
rng=range(-3,3)
rng[3]CorrectIncorrect -
Question 14 of 15
14. Question
- Which of the following give the output as True?
CorrectIncorrect -
Question 15 of 15
15. Question
What is the output of the below code?
for i in chain(range(-2,3,2),range(1,4)):
print(i,end=’ ‘)CorrectIncorrect