Перейти к основному содержанию
Zoro
Вопросы
Таймер
Резервное копирование
Главная
/
Вопросы
/
🐍 Python
🐍
Python — вопросы для собеседования
222+ вопросов для подготовки к собеседованию по Python
82 Junior
99 Middle
41 Senior
1
What is Python and what is it used for?
junior
2
What are the main data types in Python?
junior
3
What is the difference between list and tuple?
junior
4
What are *args and **kwargs?
junior
5
What is a decorator and how to use it?
middle
6
What is the difference between == and is?
junior
7
What are list comprehensions and how to use them?
junior
8
What is a lambda function and when to use it?
junior
9
What is the difference between a shallow copy and a deep copy?
middle
10
What are generators and how to use them?
middle
11
What is the difference between a module and a package?
junior
12
What are Python magic methods (dunder methods)?
middle
13
What is the GIL (Global Interpreter Lock)?
senior
14
What are context managers and how to use them?
middle
15
What is the difference between a class method and a static method?
middle
16
What is the difference between break, continue and pass?
junior
17
What is the difference between a mutable and an immutable object?
junior
18
How does memory management work in Python?
senior
19
What is the difference between a module-level variable and a global variable?
junior
20
What is the difference between a class attribute and an instance attribute?
junior
21
What is the difference between append() and extend() for lists?
junior
22
What is the difference between a package and a library?
junior
23
What is the difference between a module and a script?
junior
24
What is the difference between a package and a module?
junior
25
What is the difference between a function and a method?
junior
26
What is the difference between a class variable and an instance variable?
junior
27
What is the difference between a class method and a static method?
junior
28
What is the difference between a constructor and an initializer?
middle
29
What is the difference between a class attribute and a static attribute?
junior
30
What is the difference between a class method and an instance method?
junior
31
What is the difference between a class variable and an instance variable?
junior
32
What is the difference between a class method and a static method?
junior
33
What is the difference between a constructor and an initializer?
junior
34
What is the difference between a class attribute and a static attribute?
junior
35
What is the difference between a class method and an instance method?
junior
36
What is the difference between a class variable and an instance variable?
junior
37
What is the difference between a class method and a static method?
junior
38
What is the difference between a constructor and an initializer?
junior
39
What is the difference between a class attribute and a static attribute?
junior
40
What is the difference between a class method and an instance method?
junior
41
What is the difference between a class variable and an instance variable?
junior
42
What is the difference between a class method and a static method?
junior
43
What is the difference between a constructor and an initializer?
junior
44
What is the difference between a class attribute and a static attribute?
junior
45
What is the difference between a class method and an instance method?
junior
46
What is the difference between a class variable and an instance variable?
junior
47
What is the difference between a class method and a static method?
junior
48
What is the difference between a constructor and an initializer?
junior
49
What is the difference between a class attribute and a static attribute?
junior
50
What is the difference between a class method and an instance method?
junior
51
What is the difference between a class variable and an instance variable?
junior
52
What is the difference between a class method and a static method?
junior
53
What is the difference between a constructor and an initializer?
junior
54
What is the difference between a class attribute and a static attribute?
junior
55
What is the difference between a class method and an instance method?
junior
56
What is the difference between a class variable and an instance variable?
junior
57
What is the difference between a class method and a static method?
junior
58
What is the difference between a constructor and an initializer?
junior
59
What is the difference between a class attribute and a static attribute?
junior
60
What is the difference between a class method and an instance method?
junior
61
What is the difference between a class variable and an instance variable?
junior
62
What is the difference between a class method and a static method?
junior
63
What is the difference between a constructor and an initializer?
junior
64
What is the difference between a class attribute and a static attribute?
junior
65
What is the difference between a class method and an instance method?
junior
66
What is the difference between a class variable and an instance variable?
junior
67
What is the difference between a class method and a static method?
junior
68
What is the difference between a constructor and an initializer?
junior
69
What is the difference between a class attribute and a static attribute?
junior
70
What is the difference between a class method and an instance method?
junior
71
What is SQLAlchemy?
middle
72
What is asyncio event loop?
senior
73
What are slots in Python?
senior
74
What is the descriptors protocol?
senior
75
What are ABC (Abstract Base Classes)?
middle
76
What is pattern matching (match/case)?
middle
77
What is the walrus operator (:=)?
middle
78
What is caching in Python?
middle
79
What is dataclasses.asdict?
middle
80
What is typing.Protocol?
senior
81
What is __slots__ optimization?
senior
82
What is async/await in Python?
middle
83
What are async context managers?
middle
84
What is the difference between asyncio.gather and asyncio.create_task?
middle
85
What is asyncio.Queue and when to use it?
middle
86
What is a generator expression vs list comprehension?
junior
87
What is yield from and when to use it?
middle
88
What are send() and throw() methods on generators?
senior
89
What are itertools and the most useful functions?
middle
90
How does the GIL affect I/O-bound vs CPU-bound tasks?
senior
91
What is multiprocessing and when to use it?
middle
92
What is the difference between Process and Pool in multiprocessing?
middle
93
What are decorator factories and how to create them?
middle
94
What is functools.wraps and why is it important?
middle
95
What is a class decorator and how is it different from a function decorator?
middle
96
What are descriptors and how do they relate to decorators?
senior
97
What is the difference between asyncio and threading?
middle
98
What is concurrent.futures and when to use it?
middle
99
What is async for and async with?
middle
100
What is the difference between a generator and an iterator?
junior
101
What is a class-based decorator pattern?
middle
102
What is multiprocessing.Queue and how does it differ from queue.Queue?
middle
103
What is asyncio.Semaphore and when to use it?
middle
104
What is a contextvars and how is it used with asyncio?
senior
105
What is the __init_subclass__ method?
senior
106
What is the GIL-free approach for CPU-bound tasks in Python?
senior
107
What is an async generator?
middle
108
What is a decorator stack and execution order?
junior
109
What is functools.partial and when to use it?
middle
110
What are async context managers for database connections?
middle
111
What is the difference between async map and regular map?
middle
112
What is multiprocessing.shared_memory and when to use it?
senior
113
What is an async context manager for HTTP sessions?
middle
114
What is the difference between @staticmethod and a regular function?
junior
115
What is asyncio.wait and when to use it over gather?
senior
116
What is the __del__ method and when to use it?
middle
117
What is the asyncio.run_until_complete vs asyncio.run?
middle
118
What is the __class_getitem__ method?
senior
119
What is the difference between Process and Thread in Python?
middle
120
What is a data descriptor vs non-data descriptor?
senior
121
What is a multiprocessing.Value and Array?
middle
122
What is Django and what are its main features?
junior
123
What is a Django model and how to define one?
junior
124
What is the Django ORM and how to query data?
middle
125
What is FastAPI and why is it popular?
junior
126
What is pytest and why use it?
junior
127
What are type hints and why use them?
junior
128
What is a pytest fixture and how to use it?
middle
129
What are Generic types in Python?
middle
130
What is Django REST Framework and why use it?
middle
131
What is Pydantic and why is it used with FastAPI?
middle
132
What are Django signals and when to use them?
middle
133
What is FastAPI dependency injection?
middle
134
What is mocking and why is it important in testing?
middle
135
What are Django migrations and how do they work?
junior
136
What is async testing in pytest?
middle
137
What is Protocol and structural subtyping?
senior
138
What is FastAPI middleware and when to use it?
middle
139
What is test coverage and how to measure it?
junior
140
What is Django middleware and how does it work?
middle
141
What are Parametrized Tests and why use them?
junior
142
What is the Union and Optional types?
junior
143
What is Django REST Framework authentication?
middle
144
What is async SQLAlchemy and when to use it?
senior
145
What is FastAPI background tasks?
middle
146
What are type aliases and NewType?
middle
147
What is Django class-based vs function-based views?
junior
148
What is FastAPI event handlers?
middle
149
What is conftest.py in pytest?
middle
150
What is TypedDict and when to use it?
middle
151
What is Django transaction management?
middle
152
What is the TypeVar bound parameter?
senior
153
What is Django select_related and prefetch_related?
middle
154
What is Annotated and how to use it with FastAPI?
middle
155
What are Django test client and TestClient?
middle
156
What is the Literal type?
middle
157
What is Django caching and how to implement it?
middle
158
What is FastAPI response model and how to use it?
middle
159
What is ParamSpec and Concatenate?
senior
160
What is Django REST Framework serializers in depth?
middle
161
What are Django REST Framework viewsets and routers?
middle
162
What are async generators and when to use them?
middle
163
What is the __class_getitem__ for generic types?
senior
164
What are descriptor methods in detail?
senior
165
What is the __init_subclass__ pattern?
senior
166
What is the GIL and how does it affect concurrency?
senior
167
What is a metaclass and when to use it?
senior
168
What is the asyncio.to_thread function?
middle
169
What is the class-based decorator with state?
middle
170
What is the typing.Final type?
middle
171
What is async context manager for database transactions?
middle
172
What is the __missing__ method in dict subclasses?
senior
173
What is the typing.overload decorator?
senior
174
What is the __init_subclass__ for validation?
senior
175
What is asyncio.run_in_executor?
middle
176
What is the typing.TypeAlias and when to use it?
middle
177
What is a property vs descriptor?
middle
178
What is the __init_subclass__ for plugin registration?
senior
179
What is asyncio.gather vs asyncio.wait?
middle
180
What is the ClassVar type hint?
middle
181
What is the functools.lru_cache decorator?
middle
182
What is the typing.cast function?
middle
183
What are async context managers for HTTP sessions?
middle
184
What is the dataclass field function?
middle
185
What is the typing.NamedTuple vs dataclass?
middle
186
What is the typing.TypeGuard?
senior
187
What is the __set_name__ method in descriptors?
senior
188
What is the typing.ParamSpec?
senior
189
What is the async for pattern with asyncpg?
middle
190
What is the typing.Required and NotRequired?
middle
191
What is the asyncio.TaskGroup?
middle
192
What is the dataclasses.asdict function?
middle
193
What is the typing.Unpack?
senior
194
What is the contextlib.ExitStack?
middle
195
What is the typing.TypeVarTuple?
senior
196
What is the functools.reduce function?
junior
197
What is the typing.Concatenate?
senior
198
What is the dataclass __post_init__ method?
middle
199
What is the typing.Annotated with Field?
middle
200
What is the typing.TypeAliasType (Python 3.12)?
senior
201
What is the typing.assert_type function?
middle
202
What is the walrus operator (:=) in Python 3.8+?
middle
203
What is the match-case statement in Python 3.10+?
middle
204
What is the `itertools.groupby` function?
middle
205
What is the `pathlib` module?
junior
206
What is the `dataclasses.field()` metadata parameter?
senior
207
What is the `collections.defaultdict` class?
junior
208
What is the `functools.singledispatch` decorator?
senior
209
What is the `contextlib.suppress` context manager?
junior
210
What is the `enum.Enum` class?
junior
211
What is the `logging` module best practices?
middle
212
What is the `abc.ABC` and `@abstractmethod`?
middle
213
What is the `__slots__` attribute?
senior
214
What is the `typing.Protocol` class?
senior
215
What is the `warnings` module?
middle
216
What is the `threading` module?
middle
217
What is the `multiprocessing` module?
middle
218
What is the `concurrent.futures` module?
middle
219
What is the `asyncio` event loop?
middle
220
What is the `json` module best practices?
junior
221
What is the `re` module for regular expressions?
middle
222
What is the `csv` module?
junior
Назад ко всем категориям