MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
def abc(z):
    z.append(44)
x = [7, 8, 9]
abc(x)
print(x)

ID: #4017 Python Functions MCQ 688 views
Question Info
#4017Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A [7, 8, 9]
  • B [7, 8, 9, 44]
  • C [7, 44, 8, 9]
  • D [44, 7, 8, 9]
Correct Answer: Option B

Explanation

[7, 8, 9, 44]

Share This Question

Challenge a friend or share with your study group.