Python 1000+ Flashcards

1
Q

Что такое сортировка слиянием3

A

https://easyoffer.ru/question/194

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Чем отличается быстрая сортировка от сортировки слияния3

A

https://easyoffer.ru/question/195

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Какая сложность сортировки слияния в худшем случае3

A

https://easyoffer.ru/question/196

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Какая основная идея функционального программирования3

A

https://easyoffer.ru/question/197

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Какая разница между EXPLAIN и EXPLAIN ANALYZE3

A

https://easyoffer.ru/question/257

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

В чем разница между рекурсией и итерированием3

A

https://easyoffer.ru/question/198

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

На основе какой структуры данных реализованы словари в Python3

A

https://easyoffer.ru/question/199

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Какая сложность у операции перебора всех элементов списка3

A

https://easyoffer.ru/question/200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Какая сложность у операции поиска всех элементов по индексу3

A

https://easyoffer.ru/question/201

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Какая сложность у бинарного поиска3

A

https://easyoffer.ru/question/202

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Какова сложность вставки в список3

A

https://easyoffer.ru/question/203

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Чем отличается множество от массива3

A

https://easyoffer.ru/question/204

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Как работает динамический массив3

A

https://easyoffer.ru/question/205

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

В чем преимущество хеш мапов перед массивами3

A

https://easyoffer.ru/question/206

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Как работает хеш мап3

A

https://easyoffer.ru/question/207

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

В чем сложность массивов и хешмапов3

A

https://easyoffer.ru/question/208

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Насколько сложен поиск по ключу в хеш таблице3

A

https://easyoffer.ru/question/209

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Если бы у нас нет было list в python, то как построить такую структуру данных3

A

https://easyoffer.ru/question/210

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Почему поиск по ключам в словаре работает быстро3

A

https://easyoffer.ru/question/211

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Чем массивы отличаются от списков3

A

https://easyoffer.ru/question/212

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Почему обращение по индексу работает быстро3

A

https://easyoffer.ru/question/213

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Какая сложность у пузырьковой сортировки3

A

https://easyoffer.ru/question/214

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Откуда берется O(n) и почему это лучше, чем O(n²)3

A

https://easyoffer.ru/question/215

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Расскажи про понятие вычислительной сложности.3

A

https://easyoffer.ru/question/216

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Какая сложность быстрее, линейная или логарифмическая3

A

https://easyoffer.ru/question/217

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Что такое хвостовая рекурсия3

A

https://easyoffer.ru/question/218

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Как можно оптимизировать хвостовую рекурсию в Python3

A

https://easyoffer.ru/question/219

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Что такое алгоритм Дейкстры3

A

https://easyoffer.ru/question/220

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Что такое жадные алгоритмы3

A

https://easyoffer.ru/question/221

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Как распознать NP-полную задачу3

A

https://easyoffer.ru/question/222

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Что такое динамическое программирование3

A

https://easyoffer.ru/question/223

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Что такое Алгоритм k ближайших соседей3

A

https://easyoffer.ru/question/224

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Что такое Алгоритм Ричарда Фейнмана3

A

https://easyoffer.ru/question/225

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

В чем преимущество синхронной разработки3

A

https://easyoffer.ru/question/235

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Какие в asyncio есть три вида табл объекта3

A

https://easyoffer.ru/question/236

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Чем отличается task от shared_task3

A

https://easyoffer.ru/question/237

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

В чем разница между асинхронностью и параллелизмом3

A

https://easyoffer.ru/question/238

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Расскажи про eventloop3

A

https://easyoffer.ru/question/239

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Что такое await3

A

https://easyoffer.ru/question/240

40
Q

Зачем нужна конструкция yield from3

A

https://easyoffer.ru/question/241

41
Q

Корутины выполняются в одном потоке или нескольких3

A

https://easyoffer.ru/question/242

42
Q

Чем асинхронность отличается от многопоточности3

A

https://easyoffer.ru/question/243

43
Q

Какие знаешь подводные камни асинхронности в python3

A

https://easyoffer.ru/question/244

44
Q

Чем отличается асинхронный контекстный менеджер от синхронного3

A

https://easyoffer.ru/question/245

45
Q

За счет чего асинхронность работает быстрее3

A

https://easyoffer.ru/question/246

46
Q

Почему вычислять большие значения в асинхронной функции плохо3

A

https://easyoffer.ru/question/247

47
Q

Что за функция run()3

A

https://easyoffer.ru/question/248

48
Q

Что за функция sleep()3

A

https://easyoffer.ru/question/249

49
Q

Что за функция create_task()3

A

https://easyoffer.ru/question/250

50
Q

Что за функция gather()3

A

https://easyoffer.ru/question/251

51
Q

Что за функция wait()3

A

https://easyoffer.ru/question/252

52
Q

Что такое асинхронное программирование3

A

https://easyoffer.ru/question/253

53
Q

Что такое конкурентность3

A

https://easyoffer.ru/question/254

54
Q

Что такое параллелизм3

A

https://easyoffer.ru/question/255

55
Q

Что такое однопоточность3

A

https://easyoffer.ru/question/256

56
Q

Что такое EXPLAIN3

A

https://easyoffer.ru/question/258

57
Q

Что такое VACUUM в PostgreSQL3

A

https://easyoffer.ru/question/259

58
Q

Что такое курсор и зачем он нужен3

A

https://easyoffer.ru/question/260

59
Q

Что такое вложенные транзакции3

A

https://easyoffer.ru/question/261

60
Q

Какие команды управления транзакциями знаешь3

A

https://easyoffer.ru/question/262

61
Q

Что понимаешь под навыками работы с базами данных3

A

https://easyoffer.ru/question/263

62
Q

Почему оптимизация запросов важный навык3

A

https://easyoffer.ru/question/264

63
Q

Как он работает SQL Join3

A

https://easyoffer.ru/question/265

64
Q

Что такое SQL Join3

A

https://easyoffer.ru/question/266

65
Q

Что такое индекс у реляционной базы данных3

A

https://easyoffer.ru/question/267

66
Q

Какие они бывают join-запросы3

A

https://easyoffer.ru/question/268

67
Q

Зачем нужны join-запросы3

A

https://easyoffer.ru/question/269

68
Q

Какие способы знаешь работы с базой данной3

A

https://easyoffer.ru/question/270

69
Q

Когда происходит запросы к базам при использовании query set3

A

https://easyoffer.ru/question/271

70
Q

Что такое PK и FK в sql3

A

https://easyoffer.ru/question/272

71
Q

Какие базы данных NoSQL знаешь3

A

https://easyoffer.ru/question/273

72
Q

Как индекс ускоряет запросы в БД3

A

https://easyoffer.ru/question/274

73
Q

Как понять что какой-то запрос в БД подтормаживает3

A

https://easyoffer.ru/question/275

74
Q

В чем преимущество NoSQL перед SQL3

A

https://easyoffer.ru/question/276

75
Q

Где лучше хранить хеш запроса, в redis или postgres3

A

https://easyoffer.ru/question/277

76
Q

Что такое индексы в postgres3

A

https://easyoffer.ru/question/278

77
Q

Чем отличаются оператор where и having в SQL3

A

https://easyoffer.ru/question/279

78
Q

Какие бывают индексы в SQL3

A

https://easyoffer.ru/question/280

79
Q

Расскажи про денормализация, был ли опыт3

A

https://easyoffer.ru/question/281

80
Q

Что такое уровни изоляции транзакций3

A

https://easyoffer.ru/question/282

81
Q

С какими драйверами работал ли с MongoDB3

A

https://easyoffer.ru/question/283

82
Q

Как посмотреть примерное количество записей в БД3

A

https://easyoffer.ru/question/284

83
Q

Зачем нужны схемы в БД3

A

https://easyoffer.ru/question/285

84
Q

Как посмотреть количество текущих коннектов к базе3

A

https://easyoffer.ru/question/286

85
Q

Какие подводные камни добавления индексов на большие таблицы3

A

https://easyoffer.ru/question/287

86
Q

Какие виды репликаций есть таблицы3

A

https://easyoffer.ru/question/288

87
Q

В каком свойстве можно посмотреть текст sql запроса3

A

https://easyoffer.ru/question/289

88
Q

Чем отличается join от leftjoin3

A

https://easyoffer.ru/question/290

89
Q

Для чего использовал alembic3

A

https://easyoffer.ru/question/291

90
Q

Как происходит профилирование запросов к БД3

A

https://easyoffer.ru/question/292

91
Q

Какие join методы знаешь3

A

https://easyoffer.ru/question/293

92
Q

В чем смысл CAP теоремы3

A

https://easyoffer.ru/question/294

93
Q

В каком порядке выполняются запросы where и having3

A

https://easyoffer.ru/question/295

94
Q

Какие бывают типы JOIN’ов3

A

https://easyoffer.ru/question/296

95
Q

Какие есть особенности работы с репликацией3

A

https://easyoffer.ru/question/297

96
Q

Как пропустить заблокированные поля в БД при использовании select3

A

https://easyoffer.ru/question/298