๐Ÿ

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 15 of 30 โ€ข Questions 141-150 of 300
Q141easy

Which module provides namedtuple?

Q142medium

What's the output?

print((0.3).as_integer_ratio())
Q143easy

Which builtin raises for divide by zero?

Q144medium

What's printed?

def f(x=[]):
    x.append(len(x))
    return x

print(f())
print(f())
Q145hard

Which mechanism loads modules lazily on attribute access?

Q146medium

What's the output?

print({i:i*i for i in range(3)}.keys())
Q147medium

Which tool is recommended for packaging Python projects?

Q148easy

What's printed?

print(bool(None or 0 or []))
Q149easy

Which function returns true if all elements truthy?

Q150medium

What's the output?

print(type((x for x in [])))
......