Updated August 2026 — quiz hub restored (interactive HDquiz embed was lost; practice questions are inline below).
Welcome to the Python Programming Quiz hub on The Genius Blog. Use these questions to check fundamentals, then follow the tutorial links to go deeper.
Related on this blog:
We will cover:
1. Warm-up questions
- What does
type(3.0)return in Python 3? - Is
x = 1followed byx = "hi"legal? - What is the result of
True + True?
2. Lists and loops
- What does
[1, 2, 3][-1]evaluate to? - How do you make a shallow copy of list
awithout sharing identity? - What does this print?
for i in range(3): print(i, end="-")
3. Functions
- What is the default return value of a function with no
return? - Does Python pass arguments by value or by object reference?
- Write a one-liner that doubles every element of
numsusing a list comprehension.
4. Answers
<class 'float'>- Yes — variables are names bound to objects; types can change.
2(booleans subclassint)3a.copy()ora[:]orlist(a)0-1-2-None- By object reference (names refer to objects; mutable objects can change in place)
[n * 2 for n in nums]
Score yourself honestly, then open a tutorial from the links above and rebuild anything you missed. For more interactive quizzes historically hosted via HDquiz, treat this page as the stable index going forward.