Python в тестах
3.17K subscribers
232 photos
25 links
Тесты по языку Python. Никакой воды.

@anothertechrock
Download Telegram
What data type is mutable?
Anonymous Quiz
17%
bytes
40%
bytearray
30%
both mutable
13%
Check answer
👍1
What will be the output?
print(4 ^ 2)
Anonymous Quiz
5%
4
16%
6
47%
16
26%
Error
5%
Check answer
😁2
Which attribute integer variable hasn't?
Anonymous Quiz
18%
real
33%
imag
10%
abs
23%
denominator
15%
Check answer
🦄1
What will be the output?
print(6 > 5 > 4)
Anonymous Quiz
71%
True
7%
False
13%
True True
7%
Error
2%
Check answer
👍1
🦄1
👍1
What will be the output?
print(b'1' == '1')
Anonymous Quiz
28%
True
35%
False
32%
Error
5%
Check answer
🦄1
Which function overloads the + operator?
Anonymous Quiz
60%
__add__()
10%
__plus__()
21%
__sum__()
10%
None of the mentioned
👍1
What will be the output of the Python code above?
Anonymous Quiz
44%
5
32%
8
5%
13
13%
Error
6%
View answer
👍1
Let A and B be objects of class Foo. Which functions are called when print(A + B) is executed?
Anonymous Quiz
20%
__str__(), __sum__()
28%
__str__(), __add__()
19%
__sum__(), __str__()
34%
__add__(), __str__()
👍1
What will be the output of the Python code above?
Anonymous Quiz
12%
10
6%
2
69%
12
13%
Error
👍1
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
Anonymous Quiz
15%
print(max(t))
65%
t[3] = 45
14%
print(len(t))
6%
print(t[3])
👍1
Максимальная возможная длина идентификатора в Python?
Anonymous Quiz
6%
31 символ
13%
63 символа
17%
79 символов
42%
Ничего из вышеперечисленного
21%
Узнать ответ
👍1
👎1