PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 47


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

Show Answer
Correct Answer: CD

The expression 'AbC'.lower() < 'AB' evaluates to True because 'abc' is lexicographically greater than 'AB' (even comparing lowercase 'a' with uppercase 'A'), so the statement is true. The expression '3.14' != str(3.1415) evaluates to True because '3.14' is a string and str(3.1415) converts 3.1415 to the string '3.1415', and the two strings are not equal.

Discussion

1 comment
Sign in to comment
DKAT2023Options: BD
Jul 12, 2024

B and D are corrects