exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 356 discussion

Actual exam question from Cisco's 350-401
Question #: 356
Topic #: 1
[All 350-401 Questions]

Refer to the exhibit.

What is the value of the variable list after the code is run?

  • A. [1, 2], [1, 2], [1, 2]
  • B. [1, 2] * 3
  • C. [1, 2, 1, 2, 1, 2]
  • D. [3, 6]
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Willy78
Highly Voted 2 years, 10 months ago
Right. Correct answer is C: >>> list = [1, 2] >>> list = list * 3 >>> print (list) [1, 2, 1, 2, 1, 2]
upvoted 15 times
jason2626
2 years, 3 months ago
Tested as well.
upvoted 2 times
...
...
Anilr
Highly Voted 2 years, 10 months ago
Correct answer C.
upvoted 8 times
...
[Removed]
Most Recent 5 months, 2 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
eww_cybr
1 year, 4 months ago
The code multiplies the list by 3, resulting in the list elements being repeated three times. my_list = [1, 2] my_list = my_list * 3 print(my_list) The output will be [1, 2, 1, 2, 1, 2], which is the original list [1, 2] repeated three times.
upvoted 2 times
...
mdawg
2 years, 3 months ago
Selected Answer: C
Ran it through python, should be C
upvoted 2 times
...
Edwinmolinab
2 years, 4 months ago
Selected Answer: C
according at https://en.wikibooks.org/wiki/Python_Programming/Lists C is more appropriate
upvoted 3 times
...
[Removed]
2 years, 7 months ago
Selected Answer: C
Answer C is valid
upvoted 3 times
...
[Removed]
2 years, 9 months ago
Selected Answer: C
I agree
upvoted 3 times
...
bogd
2 years, 9 months ago
Selected Answer: C
C - list multiplication
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago