String Slicing and Data Abstraction
Which statement best describes the relationship between string slicing and the principle of data abstraction?
A
String slicing is unrelated to data abstraction and is solely used for efficiency in memory management.
B
Slicing demonstrates data abstraction by permanently altering the original string to create new, smaller string objects.
C
Slicing allows programmers to work with subsets of data without modifying the original string, exemplifying data abstraction by providing a higher-level operation on complex data structures.
D
Slicing is a low-level operation that contradicts data abstraction principles by exposing the internal representation of strings.
Question Leaderboard
Not enough data yet to show leaderboard.
