๐Ÿ

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 16 of 30 โ€ข Questions 151-160 of 300
Q151easy

Which of the following is used to create virtual environments?

Q152easy

What's printed?

a = [1,2]
a *= 2
print(a)
Q153easy

Which method returns the position of substring or -1?

Q154medium

What's printed?

print({}.setdefault('x', []).append(1))
Q155medium

Which of these is true for @property?

Q156medium

What's the output?

print((lambda a, *b: (a,b))(1,2,3))
Q157hard

Which of these is a consequence of using __slots__?

Q158medium

What's printed?

a = (i for i in range(2))
print(next(a), list(a))
Q159easy

Which function returns a shallow copy of dict?

Q160hard

What's the output?

print(type((1).__str__))
......