Certified Associate in Python Programming (PCAP-31-03) — Question 46

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

Answer options

Correct answer: B, D

Explanation

Option B is correct because 121 + 1 equals 122, which is not equal to '1' + 2 * '2' (which evaluates to '1' + '22' or '122'). Option D is also correct, as '3.14' is a string and does not equal the string representation of the float 3.1415. Options A and C are incorrect because they do not evaluate to True.