Question Bank
Python interview questions
Working Python code does not by itself explain memory behavior, iteration or mutable objects. Use these questions to review language mechanisms. Support your answer with a small example and predict the result before running it.
Showing 20 of 114 questions
Why is it dangerous to use a mutable object as a function argument's default value?
How does exception handling work in Python with try, except, else, and finally?
How are generators related to asynchronous programming in Python?
What is a context manager, used with the with statement, in Python?
In Python, what keyword is used to access the parent class?
In Python, what keyword is used to work with a context manager?
In Python, how do you pass named arguments from a dictionary to a function?
What is the difference between tensor.view() and tensor.reshape() in PyTorch?
How do you convert a PyTorch model to FP16 (Float16)?
In PyTorch, if you assign an ordinary Tensor rather than a Parameter to an nn.Module attribute, will it be trained?
What is PyTorch's automatic differentiation mechanism called?
What are async and await in Python? What happens if you put a blocking HTTP call inside an async function?
Может ли быть теоретически у нас такая ситуация, что на train у нас попадут все объекты 1 класса на тесте не одного?
А как внутрь декоратора прокидываются переменные для декорированной функции?
Prepare for your next interview with Vibe Interview.
Download Vibe Interview