Solved

When a for Loop Is Used to Iterate Over a Collection

Question 2

Multiple Choice

When a for loop is used to iterate over a collection, which statement is true?


A) list items are visited from last to first
B) items in a list are visited in a random order
C) items in a sorted collection are visited in ascending order
D) items in a dictionary are visited in descending order

Correct Answer:

verifed

Verified

Related Questions