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

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

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

  • A. '1' + '1' + '1' < '1' * 3'
  • B. 121 + 1 != '1' + 2 * '2'
  • C. 'AbC'.lower() < 'AB'
  • D. '3.14' != str(3.1415)
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
Abbribas
1 month, 2 weeks ago
Selected Answer: BD
A. '1' + '1' + '1' → '111' '1' * 3 → '111' '111' < '111' → False B. Left side: 121 + 1 → 122 (int) Right side: '1' + 2 * '2' → '1' + '22' → '122' (str) Comparing: 122 != '122' → True (int ≠ str) C. 'AbC'.lower() → 'abc' Comparing 'abc' < 'AB' → False Because lowercase letters (a, b, c) have higher ASCII values than uppercase (A, B). D. str(3.1415) → '3.1415' '3.14' != '3.1415' → True
upvoted 1 times
...
Dave304409
1 year ago
Selected Answer: BD
is correct
upvoted 2 times
...
DKAT2023
1 year, 1 month ago
Selected Answer: BD
B and D 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 ...