Question 23 - Week 4 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 4
Question 23
00:00
Est. 2 min
Marks:
+5.00
0.00
For what values of `a`, `b`, and `c` does the code given below print a sequence which has
0
0
as one of the elements? ``` for i in range(a, b, c): print(i) ```
Multiple correct
Medium Difficulty
16 October 2022
A
`a = 10`, `b = -1`, `c = -1`
B
`a = -10`, `b = 1`, `c = 1`
C
`a = 10`, `b = -2`, `c = 0`
D
`a = -4`, `b = 5`, `c = 4`