What will be the output?
print(6 > 5 > 4)
print(6 > 5 > 4)
Anonymous Quiz
71%
True
7%
False
13%
True True
7%
Error
2%
Check answer
👍1
Which of the following does not make an exception?
Anonymous Quiz
19%
method get
13%
method index
19%
function min
38%
everything doesn't make an exception
12%
Check answer
🦄1
What will the output?
print(type(type))
print(type(type))
Anonymous Quiz
22%
<class 'object'>
59%
<class 'type'>
4%
<class 'bool'>
12%
Error
3%
Check answer
👍1
What will be the output?
print(b'1' == '1')
print(b'1' == '1')
Anonymous Quiz
28%
True
35%
False
32%
Error
5%
Check answer
🦄1
What will be the output of the Python code above?
Anonymous Quiz
10%
Error, because constructor can’t have default arguments
5%
Nothing will be displayed
78%
«Hi there» will be displayed
7%
Error, because display function doesn’t have parameters
👍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 is Instantiation in terms of OOP terminology?
Anonymous Quiz
5%
Deleting an instance of class
12%
Copying an instance of class
21%
Modifying an instance of class
63%
Creating an instance of class
👍1
👍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
Что выведет код на картинке?
Anonymous Quiz
32%
[2, 6, 4]
2%
[1, 3, 2, 1, 3]
46%
[1, 3, 2, 1, 3, 2]
5%
[1, 3, 2, 3, 2, 1]
15%
Узнать ответ
👎1
Что из нижеперечисленного создаст словарь?
Anonymous Quiz
12%
d = {}
15%
d = {“john”:40, “peter”:45}
6%
d = {40:”john”, 45:”peter”}
63%
Все варианты верны
4%
Узнать ответ
👍1
Что выведет код выше?
Anonymous Quiz
26%
0 1 2 0
39%
0 1 2
15%
Error
16%
Ничего из вышеперечисленного
4%
Узнать ответ
👍1
Python в тестах
Что выведет код на картинке?
В ответах к тесту была допущена ошибка (неверный порядок цифр).
Правильный ответ: [1, 2, 3, 1, 2, 3].
Правильный ответ: [1, 2, 3, 1, 2, 3].
👍1