BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Python Institute Discussions
Exam PCAP-31-03 Topic 4 Question 63 Discussion
Python Institute Exam PCAP-31-03 Topic 4 Question 63 Discussion
Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 63
Topic #: 4
[All PCAP-31-03 Questions]
Which of the following invocations are valid? (Select two answers)
A
sorted ('python'')
B
'python' .sort ( )
C
sort' ('python')
D
'python' ,find (' ')
Show Suggested Answer
Hide Answer
Suggested Answer:
A, D
by
Rhea
at
Apr 27, 2024, 10:02 PM
Limited Time Offer
25%
Off
Get Premium PCAP-31-03 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Carin
5 months ago
So it's A and D then?
upvoted
0
times
...
Ciara
5 months ago
Correct, 'find' is a valid string method.
upvoted
0
times
...
Nada
5 months ago
Good point. What about 'python'.find(' ')?
upvoted
0
times
...
Tatum
6 months ago
Definitely. B is incorrect because strings in Python don’t have a 'sort' method.
upvoted
0
times
...
Anglea
6 months ago
Yeah, sorted('python') is valid. It should return a sorted list.
upvoted
0
times
...
Nada
7 months ago
This question seems tricky. Do we need to look at syntax errors?
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Carin
5 months agoCiara
5 months agoNada
5 months agoTatum
6 months agoAnglea
6 months agoNada
7 months ago