๐
Python Programming
Comprehensive Python programming questions covering fundamentals, data structures, and advanced concepts
300 questionsรขโฌยข30 pagesรขโฌยข~450 min
Use this quiz track to strengthen recall, speed, and exam-style decision making. Attempt one page first, review explanations, and then re-attempt incorrect questions without notes.
A good scoring strategy is to mark uncertain questions, finish known ones quickly, and return with elimination logic. This improves accuracy while keeping momentum under time constraints.
Progress: 0 / 3000%
Page 4 of 30 โข Questions 31-40 of 300
Q31medium
What's the output?
def f(x):
return x and x*2
print(f(0), f(3))Q32medium
Which keyword is used for coroutines (async)?
Q33easy
What's the output?
print(sorted([('b',2), ('a',1)]))Q34hard
What does __slots__ in class do?
Q35medium
What's printed?
a = [1,2,3]
print(*a)Q36medium
Which module helps with memoization?
Q37easy
What's the output?
print({1,2} & {2,3})Q38medium
Which data class feature auto-generates __init__?
Q39medium
What's the output?
def f():
yield 1
yield 2
g = f()
print(next(g) + next(g))Q40easy
Which would raise KeyError?
......
Quiz Pages
Navigate directly to paginated quiz sets. These links help you revise by page and make every page discoverable.