Python Quiz
English
Elementar
151
Perguntas
1 min
Por pergunta
15:36
Tempo médio
Desqualificado
Pontos no Concurso
4
Participantes
12 comentários
Small Lizard
3 questions match with questions from other quiz
Proof: https://telegra.ph/3-same-questions-in-two-quizzes-05-28
Small Lizard
Which operator is right-associative
Your answer is "=" but it doesn't have associativity
My explanation:
This expression is correct: a=b=1
But we can't add brackets to it: (a=b)=1or a=(b=1)
So there is no correct answer in this question
Small Lizard
l = [1, 2, 3]
print(l[-2)
There will be SyntaxError because you forgot about closing square bracket
Small Lizard
x = 2
y = 10
x *= y * x + 1
What is the output of this code?

There is no output because there is no print function in the code
Small Lizard
What is more accurate for the following declaration? (Question about Circle)
You are talking about some code, but there is no code in this question
Small Lizard
def total(initial = 5, *num, **key):
Your explanation: Initial value 100 is summarized with the rest integer parameters 2, 3 and 50. The correct answer is 255.
You forgot about one more value "100"
Small Lizard
What function removes the last object from the list l?
Your answer is "l.pop(obj=l[-1])", but list.pop doesn't accept "obj" argument.
Correct answer is "l.pop()" or "l.pop(-1)"
Small Lizard
raining'.find('z')
You forgot about opening quote
Small Lizard
num=3
while True: ...
Here, loop will run forewer. Probably you skipped 2 indents (in 2 last lines).
Small Lizard
def f(): pass
print(type(f()))
Your answer is "<type 'NoneType'>" but correct answer is "<class 'NoneType'>"
Faça o quiz antes de comentar