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

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

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

  • A. ord(ג€zג€) - ord(ג€Zג€) == ord(ג€0ג€)
  • B. len(ג€ג€ג€ ג€ג€ג€) > 0
  • C. chr(ord('a') + 1) == 'B'
  • D. len('\'') == 1
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
macxsz
Highly Voted 2 years, 6 months ago
Selected Answer: BD
A. ord("z") - ord("Z") == ord("0") B. len(" ") > 0 <<<< True C. chr(ord('a') + 1) == 'B' D. len('\'') == 1 <<< True
upvoted 7 times
...
seaverick
Most Recent 10 months ago
Selected Answer: BD
print(ord("z") - ord("Z") == ord("0"))#False print(len(""" """) > 0)#True print(chr(ord('a') + 1) == 'B')#False print(len('\'') == 1) #True Ans is B,D
upvoted 1 times
...
dicksonpwc
1 year, 8 months ago
B and D are correct print(ord("z") - ord("Z") == ord("0")) # ans A, False print(len(" ") > 0) # ans B, True print(chr(ord('a') + 1) == 'B') # ans C, False print(len('\'') == 1) # ans D, True
upvoted 1 times
...
ryanzou
1 year, 8 months ago
Selected Answer: BD
BD are correct
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 ...