PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 16


Which of the following invocations are valid? (Choose two.)

Show Answer
Correct Answer: BD

To determine the valid invocations, the methods and functions need to be understood in relation to string operations in Python. 'sort()' is an in-place method available for lists and is not applicable to strings, so 'sort(

Discussion

3 comments
Sign in to comment
a4129fdOptions: BD
May 28, 2024

BD are the right ones

DKAT2023Options: BD
Jun 28, 2024

B and D are corrects. Sort for list not string

Dave304409Options: BD
Jul 2, 2024

B, D is correct