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

Exam PCAP All Questions

View all questions & answers for the PCAP exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Damon54
9 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
10 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, 6 months 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 ...