Quiz: The Power of the for Loop
Test your understanding of the concepts discussed in this chapter.
1
How can we specify a different step when iterating over a range in Kotlin?
A)
By using the for
-each
loop instead of the for
loop
B)
By using the step
infix function
C)
By using the increment
keyword
D)
By using the step
keyword
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.