But the quiz specifically mentions on multiple answers that "In Python, unlike language X, Y, Z" OR "In Python, like [similar language] A, B, C"...I mean this says nothing about my programming ability, this says whether I know the quirks of the language in the same way that I can tell you all the quirks of JavaScript but not in Python. This to me is not a programming quiz, but a Python quiz designed to determine how much someone knows about what can go wrong in Python.
And then with timing attacks - I mean SQL Injection is a fair web security question to ask someone, but the timing is like, very fringe knowledge. Most devs let their framework handle all of those kinds of things. Not sure why I would need to know this unless I was specifically in the sec world.
The last 3 questions were actually general CS because they went through search trees and shortest paths algos, which are language-agnostic.
Anyway, if you want to bias it into Python, go for it. It's a fun quiz.
Like, whatever language you're using, you need to push the children of the current node on to the queue. Only one answer looks like it could reasonably do that.
[1] http://robertheaton.com/2014/02/09/pythons-pass-by-object-re...
[2] http://foobarnbaz.com/2012/07/08/understanding-python-variab...
[3] https://jeffknupp.com/blog/2012/11/13/is-python-callbyvalue-...
Q3: This requires knowledge around the semantics of argument passing, which vary from language to language.
Q4: this again requires some understanding of how values are stored. Some languages will copy, while others will use a reference to the originally inserted value.
Q5: python closure syntax. python scoping rules.
Q8: unless you know what "bytearray.decode" does, the best you can do is make an educated guess from the context.
I think. Not a language lawyer.
I've never used Python.
Not all languages manipulate arrays in the same way re ref/value.
Not all languages have the concept of range() - you could have used a simple array to be more language agnostic.
(I'm sure I could have found more, but I'm Python isn't a language I spend much time in)