Bird
0
0

Which statement about Python strings is TRUE?

hard📝 Conceptual Q10 of 15
Python - Data Types as Values
Which statement about Python strings is TRUE?
AStrings support indexing and slicing
BStrings can contain only letters and digits
CStrings are mutable and can be changed after creation
DStrings do not support concatenation
Step-by-Step Solution
Solution:
  1. Step 1: Recall string properties

    Python strings are immutable, support indexing and slicing, can contain any characters, and support concatenation.
  2. Step 2: Evaluate each option

    A is false (strings are immutable), B is false (strings can contain any characters including symbols), C is true, D is false (strings support concatenation).
  3. Final Answer:

    Strings support indexing and slicing -> Option A
  4. Quick Check:

    Strings are immutable but indexable [OK]
Quick Trick: Strings are immutable but indexable and sliceable [OK]
Common Mistakes:
MISTAKES
  • Thinking strings can be changed in place
  • Believing strings only hold letters/digits
  • Ignoring string concatenation ability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes