PCAP Exam QuestionsBrowse all questions from this exam

PCAP Exam - Question 13


Which of the following statements are true? (Choose two.)

Show Answer
Correct Answer: BC

Python strings can be concatenated using the `+` operator, making it possible to join two or more strings together. Additionally, Python strings can be sliced like lists, meaning you can extract substrings using slicing notation (e.g., `string[start:end]`). However, Python strings are immutable, meaning they cannot be altered after they are created. Therefore, the statements that are true are that Python strings can be concatenated and can be sliced like lists.

Discussion

4 comments
Sign in to comment
DKMOptions: BC
Nov 4, 2021

Python strings cannot be changed — they are immutable.

macxszOptions: BC
May 3, 2022

B. Python strings can be concatenated C. Python strings can be sliced like lists

666_mOptions: BD
May 5, 2022

B& D. correct

666_m
May 14, 2022

error BC is correct