Gce Model Questions Vol1 2020 Computer Studies Question 47

Practice objective / multiple choice question 47 from the 2020 Gce Model Questions Vol1 Computer Studies examination.

Gce Model Questions Vol1 2020 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 47 GCE_MODEL_QUESTIONS_VOL1 • 2020 • COMPUTER_STUDIES • objective

Consider the following Python code:\n\n```python\ndef append_to(element, to=[]):\n to.append(element)\n return to\n\nlist1 = append_to(1)\nlist2 = append_to(2, [])\nlist3 = append_to(3)\n\nprint(len(list1), len(list2), len(list3))\n```\nWhat is the output printed by the program?

Answer Options

Correct Answer A. 2 1 2
B. 1 1 1
C. 2 2 2
D. 2 1 1
Correct Answer
A
Correct Option:
2 1 2

About This Question

This is Gce Model Questions Vol1 2020 Computer Studies Question 47. It is one of the objective questions from the 2020 Gce Model Questions Vol1 Computer Studies examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support