Question 14/17
advanced
Select one answer

What is a context manager and how do you create one?

A class that manages global variables
An object implementing __enter__ and __exit__ methods for use with "with"
A module for managing contexts
A debugging tool

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.