Python Programming Quiz
English
Intermediate
This online Python quiz is a fun way to check your learning progress and test your skills in programming.
Description
30
Questions
1 min
Per question
5:58
Average time
Disqualified
Contest Score
3.8
Community Rating
14
Participants
8 comments
Giant Elk judge
Thank you for taking the effort to submit your test for the contest.
Unfortunately, this test will not be able to receive a prize:

Not an original test. Questions, answers, explanations were copied from an existing test. E.g.: “#q6” <= https://everyscript.blogspot.com/2017/03/python-programming-part-3.html, “#q17” <= https://iot4beginners.com/python-quiz-3/, etc.
Stout Shrimp
> The result of the code:
x, y, z = 3, 2, 1
z, y, x = x, y, z print(x,y,z)

is actually syntax error.
The result of the code:
x, y, z = 3, 2, 1
z, y, x = x, y, z
print(x,y,z)

is "1 2 3"
Cool Bear
I am not the creator of this quiz, but I did fact-check what you said above. Yes, the way the creator of this quiz wrote the code is wrong (they didn't consider the usage of indentation by writing the print function in a new line) but suppose they did, the output will be 1 2 3 and not "1 2 3". Python 2 & 3 always outputs the value (results) without the double commas unless if you explicitly program it. Here is the proof: https://ideone.com/eu5wwl
Calm Quokka
Quiz is good but there are some mistakes -

que -
x, y, z = 3, 2, 1
z, y, x = x, y, z print(x,y,z)

que error -
print should be in new line

-----------------------------

que :-
Which of the following is not a Python built-in function:

option error -
it should be isinstance not isinstanse

-----------------------------
que -
The following code:
def f(par2,par1):
return par2 + par1 print(f(par2=1,2))

no proper explanation -
It doesnt explain the error as shown in option.

------------------------------
Cool Bear
I am not the creator of this quiz, but I took the liberty of fact-checking your first comment. You are right, when you run the code as the author wrote it, it will give a syntax error. The proof is here: https://ideone.com/02t2ja.

The correct way of writing the code is here: https://ideone.com/eu5wwl

As you have noted, the print function should be written in the new line. The main reason is that Python language is one of the languages in which indentation is very important. So if you don't indent your code (in this case didn't write the print function in a new line) the code will have an error.
Cool Bear
With regards to your second comment, yes you are right. The author doesn't explain what the is the error. The error is the same as the other code which is the indentation error. here is the proof of that: https://ideone.com/AOfdHu
Dark Dodo
Good, but there're some mistakes mentioned above + some are very similar, for example about "True" constant
Able Crow
Good quiz! Explanations are not detailed enough sometimes
Take the quiz to leave a comment