Introduction True/False
- Python is a compiled language. (False)
- Python supports object-oriented programming. (True)
- Python has a small standard library. (False)
Basics True/False
- Python variables must be declared with a type. (False)
- 5 / 2 equals 2.5 in Python 3. (True)
- The 'or' operator returns True if both operands are True. (False)
- For loops can iterate over lists. (True)
- Functions in Python must return a value. (False)
Intermediate True/False
- Lists can be modified after creation. (True)
- Tuples use square brackets. (False)
- Dictionary keys must be unique. (True)
- Files opened with 'w' mode append to existing content. (False)
- Modules must be installed separately. (False)
Advanced True/False
- Classes can inherit from multiple classes in Python. (True)
- Try block must have an except block. (False)
- Binary search works on unsorted lists. (False)
- NumPy arrays are faster than lists for numerical operations. (True)
- Pandas is built on top of NumPy. (True)