Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 47

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

    Correct Answer: C, D

    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
DKAT2023Options: BD

B and D are corrects