MCQ Practice Single Best Answer Topic: Python Built-in Functions MCQ

Q What will be the output after the following statements?
import random
x = [3, 8, 6, 5, 0]
y = random.shuffle(x)
print(y)

Question ID
#3948
Subchapter
Python Built-in Functions MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A A random element from the list x
  • B The shuffled list x with the elements mixed up
  • C None
  • D A random element from the list x, excluding 3 and 0
Correct Answer: C

Explanation

None

Share This Question

Share this MCQ with your friends or study group.