MCQ Practice Single Best Answer Topic: Create Objects in Python

Q Which of the following error occurs, if an iterator is accessed, when it has no elements?

Question ID
#20267
Subchapter
Create Objects in Python
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A DoneIteration
  • B NoElements
  • C Exhausted
  • D StopIteration
Correct Answer: D

Explanation

StopIteration

Share This Question

Share this MCQ with your friends or study group.