Programming Languages Python Mcq
Sep 30, 2025

What is the purpose of __enter__ and __exit__ methods?

Choose the correct answer:
A) Implement context manager protocol
B) Handle function entry/exit
C) Manage class creation
D) Control program flow
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback