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'>"
Unfortunately, this test will not be able to receive a prize:
Not an original test. Questions, answers were copied from an existing test. E.g. #q1<=https://iowiki.com/python/python_online_quiz.html,
#q15<=https://www.sookshmas.com/quiz/93204-4461/public/What-is-the-output-of-the-following-codenum3while,
#q40<=https://www.gangboard.com/blog/python-interview-questions-and-answers etc
www.tutorialspoint.com/python/pdf/python_mock_test_i.pdf
www.tutorialspoint.com/python/pdf/python_mock_test_ii.pdf
www.tutorialspoint.com/python/pdf/python_mock_test_iii.pdf
www.tutorialspoint.com/python/pdf/python_mock_test_iv.pdf
https://iowiki.com/python/python_online_quiz.html
Proof: https://telegra.ph/Copied-questions-in-httpsquizdirectoryquizXnnGZdu6-05-28
Proof: https://telegra.ph/3-same-questions-in-two-quizzes-05-28
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
print(l[-2)
There will be SyntaxError because you forgot about closing square bracket
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
You are talking about some code, but there is no code in this question
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"
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)"
You forgot about opening quote
while True: ...
Here, loop will run forewer. Probably you skipped 2 indents (in 2 last lines).
print(type(f()))
Your answer is "<type 'NoneType'>" but correct answer is "<class 'NoneType'>"