Multiple Choice
When a programmer calls the next function on an iterator object, what happens if there is no current item in the sequence?
A) the previous item is returned
B) the compiler generates an error
C) a StopIteration exception is raised
D) the None item is returned
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q40: When considering the ArrayBag class and the
Q41: What is one of the primary purposes
Q42: A class that uses lists can use
Q43: An instance variable that refers to an
Q44: When creating the AbstractCollection class, which methods
Q45: In which situation is a search unnecessary
Q46: A class that inherits properties from another
Q48: When implementing the _init_ method in the
Q49: How is creating a subclass of an
Q50: Which of the following is true about