Python Media Automation Quiz
Python Media Automation Quiz
Morhaf
2. 2. In the `personalized_greeting` function, what does the `f` before the string indicate?
• a) Function string
• b) Fixed format
• c) Formatted string (f-string)
• d) File reference
3. 3. What issue does the basic `format_title` function fail to address? 00201149901175
• a) NumPy
• b) Pandas
• c) Pillow (PIL)
• d) OpenCV
```python
print(format_title(" the rise of AI in MEDIA! "))
```
13. 13. Name two reasons why image watermarking is useful for media professionals.
14. 14. Explain how `enumerate()` is used in the `rename_files` function.
15. 15. What should a user ensure before calling `add_watermark("photo.jpg", "Media
Inc.")`?
Answer Key
2. c
3. b
4. c
5. b
7. True
8. True
9. False
10. False