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

Exam PCAP-31-03 All Questions

View all questions & answers for the PCAP-31-03 exam

Exam PCAP-31-03 topic 1 question 50 discussion

Actual exam question from Python Institute's PCAP-31-03
Question #: 50
Topic #: 1
[All PCAP-31-03 Questions]

Which of the following expressions evaluate to True? (Choose two.)

  • A. 'dcb' not in 'abcde'[::-1]
  • B. 'True' not in 'False'
  • C. str(1-1) in '0123456789'[:2]
  • D. 'phd' in 'alpha'
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
KuaciCorn
1 month, 3 weeks ago
Selected Answer: BC
B&C is the correct answer
upvoted 1 times
...
jarun2024
2 months, 3 weeks ago
B&C is the correct answer
upvoted 1 times
...
JeyTlenJey
4 months ago
Selected Answer: BC
print("A.", 'dcb' not in 'abcde'[::-1], "list:",'abcde'[::-1]) #False; 'edcba' print("B.", 'True' not in 'False') #True, strings print("C.", str(1-1) in '0123456789'[:2],"str:",str(1-1),"in:",'0123456789'[:2]) #True '01' print("D.", 'phd' in 'alpha') #False
upvoted 1 times
...
Dave304409
4 months ago
Selected Answer: BC
is correct
upvoted 1 times
...
kstr
4 months, 1 week ago
BC CORRECT
upvoted 1 times
...
DKAT2023
4 months, 2 weeks ago
Selected Answer: BC
B and C are corrects
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 ...