Certified Associate in Python Programming (PCAP) — Question 53
Which of the following statements are true? (Choose two.)
Answer options
- A. Python strings are actually lists
- B. Python strings can be concatenated
- C. Python strings can be sliced like lists
- D. Python strings are mutable
Correct answer: B, C
Explanation
The correct answers are B and C because Python strings can indeed be concatenated using the '+' operator and sliced just like lists can. Option A is incorrect as strings and lists are different data types in Python, and option D is wrong since strings are immutable, meaning they cannot be changed after creation.