Q1
Python is commonly described as:
Q2
Dynamic typing in Python means:
Q3
Which statement about Python execution is most accurate?
Q4
Which type is immutable in Python?
Q5
Which type is best suited for storing unique values only?
Q6
A Python dictionary stores data as:
Q7
In Python, `==` checks:
Q8
In Python, `is` is mainly used to compare:
Q9
Which of the following is mutable?
Q10
A shallow copy of a nested list mainly means:
Q11
Why is a mutable default argument risky in Python?
Q12
What is the usual safe default when you want an optional list parameter?
Q13
In Python, `*args` collects extra positional arguments into a:
Q14
In Python, `**kwargs` collects extra keyword arguments into a:
Q15
A lambda function in Python is best described as:
Q16
Which construct is most directly used to create a list in a compact loop-like form?
Q17
Which statement correctly compares an iterable and an iterator?
Q18
A generator in Python is useful mainly because it:
Q19
Which keyword is used to make a function behave as a generator?
Q20
Which statement best describes Python argument passing?
Q21
A decorator in Python is mainly used to:
Q22
When we say functions are first-class objects in Python, we mean they can:
Q23
Which keyword is used inside a nested function to modify a variable from the nearest enclosing function scope?
Q24
Which statement about `global` is correct?
Q25
In an instance method, `self` refers to:
Q26
What is the main purpose of `__init__()`?
Q27
Which method type receives `cls` as its first automatic argument?
Q28
Which method type receives neither `self` nor `cls` automatically?
Q29
Inheritance in Python allows a class to:
Q30
Method overriding happens when:
Q31
Python supports multiple inheritance, which means:
Q32
MRO in Python stands for:
Q33
Why is `super()` commonly used?
Q34
Duck typing in Python emphasizes:
Q35
In Python, a single leading underscore in an attribute name usually means:
Q36
Abstraction in Python is mainly about:
Q37
Which keywords are directly associated with Python exception handling?
Q38
`raise` in Python is used to:
Q39
Why is `assert` not a full replacement for `raise` in production logic?
Q40
A context manager is commonly used with:
Q41
Why is the `with` statement preferred for file handling?
Q42
The GIL in CPython mainly affects:
Q43
For CPU-bound work in CPython, which approach is often preferred over threading?
Q44
Which statement best compares threads and processes in Python?
Q45
Python memory management in CPython mainly relies on:
Q46
Reference counting means an object can usually be cleaned up when:
Q47
A module in Python is usually:
Q48
Why do we use `if __name__ == "__main__"`?
Q49
Unpacking in Python is used to:
Q50
Which expression is an example of slicing?
Q51
A dataclass in Python is most useful when:
Q52
What does `@property` mainly help you do?
Q53
If `nums = [1, 2]`, what does `nums.append([3, 4])` do?
Q54
Which statement correctly compares `append()` and `extend()`?
Q55
Which statement about `sort()` and `sorted()` is correct?
Q56
`__repr__()` is mainly intended for:
Q57
A closure in Python is:
Q58
Compared with a list comprehension, a generator expression usually:
Q59
EAFP in Python means:
Q60
LBYL in Python means: