Hi, check the code twice before give your answers. If you read correctly the code if you execute it you will see that as it's wrote the response is an exception, so the answer is A.
Normally, you need to answer as you have in the questionnaire
C. False
typo in alpha()
The first line of code creates a list with one element, which is ‘alpha;beta;gamma’. However, the delimiter used in the split method is ‘:’ instead of ‘;’, so the list will only contain one element.
The second line of code joins all elements in the list into a single string, which will be ‘alpha;beta;gamma’.
The third line of code checks if the string ‘alpha;beta;gamma’ contains only alphabetic characters, which is False because it contains ‘;’.
Another question with a possible typo. Is it supposed to be 'isalpha()' or 'isaplpha()'?
Using 'isalpha()' gives a False and using 'isaplpha()' gives an error
This section is not available anymore. Please use the main Exam Page.PCAP Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Dave304409
4 days, 1 hour agoBonesaw
1 year, 2 months agoroncr
1 year, 5 months agomplopez
1 year, 7 months agoaferiver
2 years agocarpmatias
2 years, 11 months agomacxsz
2 years, 11 months agosadako11
3 years, 2 months agolukaki
3 years, 4 months agoEfren
3 years, 5 months agomazimir
3 years, 6 months agoHrishi8888
3 years, 5 months ago