Certified Associate in Python Programming (PCAP-31-03) — Question 66
Which of the following expressions evaluate to True? (Choose two.)
Answer options
- A. 'in not' in 'not'
- B. 'a' not in 'ABC'.lower()
- C. 'not' not in 'in'
- D. 't'.upper() in 'Thames'
Correct answer: C, D
Explanation
The correct answers are C and D because 'not' is indeed not present in 'in', making C True, and 't'.upper() results in 'T', which is found in 'Thames', making D True. Options A and B evaluate to False; A is incorrectly structured, and B evaluates to True since 'a' is not in 'abc'.