MCQ Practice Single Best Answer Topic: Python Functions MCQ

Q The output of the expression sorted ({ ord(i) for i in 'apple' }) is _______.

Question ID
#3648
Subchapter
Python Functions MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A {'a':97, 'e':101, 'l':108, 'p':112, 'p':112}
  • B [97, 101, 108, 112]
  • C [97, 112, 112, 108, 101]
  • D [97, 101, 108, 112, 112]
Correct Answer: B

Explanation

[97, 101, 108, 112]

Share This Question

Share this MCQ with your friends or study group.