Q. What does the `pass` statement do in Python?

  • (A) Stops the execution
  • (B) Skips the current loop iteration
  • (C) Does nothing, acts as a placeholder
  • (D) Raises an exception
πŸ’¬ Discuss
βœ… Correct Answer: (C) Does nothing, acts as a placeholder
Explanation: `pass` is a no-operation statement used as a placeholder.
Explanation by: Mr. Dubey
`pass` is a no-operation statement used as a placeholder.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
117
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate