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 131 discussion

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

What is the expected output of the following code?

  • A. False
  • B. 0
  • C. None
  • D. True
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
Jos015
1 year ago
Selected Answer: A
b1 is a list b2 is string import sys b1 = type (dir(sys)) is str b2 = type (sys.path[-1]) is str print (b1 and b2) print (b1) print (b2) print (dir(sys)) print (sys.path[-1])
upvoted 2 times
...
swatiphadtare
1 year, 7 months ago
type(dir(Sys)) would be a list
upvoted 3 times
...
macxsz
2 years, 6 months ago
Selected Answer: A
A. False
upvoted 3 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 ...