๐Ÿ

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 17 of 30 โ€ข Questions 161-170 of 300
Q161medium

Which module implements de/serialization for YAML (third-party)?

Q162easy

What's printed?

print( (lambda:None)() is None )
Q163easy

Which method removes item by value from list?

Q164easy

What's the output?

print({i: i for i in [1,1,2]})
Q165medium

Which builtin returns an iterator that aggregates elements from multiple iterables consecutively?

Q166medium

What's printed?

def f(x):
    x[0] = x[0] + 1

lst = [0]
f(lst)
print(lst)
Q167medium

Which typing construct represents optional type T (i.e., T or None)?

Q168hard

What's the output?

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

Which of these will read an entire file into memory as bytes?

Q170medium

What's printed?

a = {1: [1]}
b = a.copy()
a[1].append(2)
print(b[1])
......