hiexam
python-institute · PCAP-31-03 · Q605 · multiple_response · topic_1

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

Which of the following expressions evaluate to True? (Choose two.)
  • A.ord("0") - ord("9") == 10
  • B.len("''") == 2
  • C.chr(ord('z') - 1) == 'y'
  • D.len(''1234'') == 4
Explanation
BCD are TRUE TESTED: print(ord("0") - ord("9") == 10) print(len("''")== 2) print(chr(ord('z') - 1) == 'y') print(len("1234") == 4)

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.