Python Quiz
English
Intermediate
Python has become one of the most popular programming languages. Although it has a simple readable syntax, there are some Python tricks that lead programmers to fallacies. By taking this quiz, you test your python skills. (quiz for Python versions 3.6+)
Description
Python, Python 3.6, Python 3.7, Python 3.6+ Programming, Programming language, Py, Code, Coding, Output based quiz
Tags
30
Questions
3 min
Per question
15:37
Average time
4.5
Contest Score
3.8
Community Rating
59
Participants
1. Educational explanations. 👍 Explanations cover why the correct answers are correct and why the wrong answers are wrong (when appropriate). E.g.: #q1, #q2, #q3 etc
2. Well-used and self-made media. 👍 E.g.: #q1, #q2, #q3 etc
1. Educational explanations. 👍 Explanations cover why the correct answers are correct and why the wrong answers are wrong (when appropriate). E.g.: #q1, #q2, #q3 etc
2. Well-used and self-made media. 👍 E.g.: #q1, #q2, #q3 etc
No, "else" and "finally" can be used at once, but "else" must be before "finally": https://ideone.com/7LvwaB
As you said, this is highly implementation dependent, so question is incorrect (I think so)
Moreover, behaviour changed in Python 3.8
Python 3.7.3: https://ideone.com/pcHIaT (00000)
Python 3.8.2: https://repl.it/repls/ElatedEmptyMegahertz (RuntimeError)
Quiz is for Python versions 3.6+, so both options are correct
Personally, this is advanced level for me.
12. What is the output of the above program?
In the question keys x,y,z but in the answer there are a,b,c. So, there is no correct answer :)
23. What is the output of the above program?
question is too hard to do this math in head. Did it only because counted letters.
PS I found a typo somewhere but forgot where. This will be your quiz to find it :D
Wish you good luck in a contest!
Yes, seems that this mistake occurred when I decided to change the letters of the question, I changed x,y,z to a,b,c in quiz options, but forgot to upload a newer version of the image :(
Unfortunately, I did not notice that before the deadline. My bad :(
If I pass this round (100% sure I won't, LOL), in the next stage I will be more attentive and will create quizzes without any kind of mistakes.