Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCAP topic 1 question 127 discussion

Actual exam question from Python Institute's PCAP
Question #: 127
Topic #: 1
[All PCAP Questions]

What is the expected behavior of the following code?

  • A. it raises an exception
  • B. it outputs nothing
  • C. it outputs True
  • D. it outputs False
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Damon54
2 months, 3 weeks ago
maybe is the_list = "1,2 3" .split() the_string = '' .join (the_list) print (the_string.isdigit()) D. it outputs False
upvoted 1 times
...
Bonesaw
3 months, 3 weeks ago
Not a big fan of this one. I think it's supposed to be .join which would allow it to get past that part. But then it throws another error for insight().
upvoted 1 times
...
macxsz
2 years ago
Selected Answer: A
as it is: A. it raises an exception
upvoted 1 times
...
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.

SaveCancel
Loading ...