Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam JN0-220 topic 1 question 28 discussion

Actual exam question from Juniper's JN0-220
Question #: 28
Topic #: 1
[All JN0-220 Questions]

Click the Exhibit button.
Referring to the exhibit, what is printed when you execute the python print (a[3]) command?

  • A. 2
  • B. 8
  • C. 0
  • D. 5
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference: https://swcarpentry.github.io/python-novice-inflammation/02-loop/

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
hotbob
Highly Voted 4 years, 7 months ago
Answer is A >>> a = [1,4,5,2,3,8,7,9] >>> print (a[3]) 2 >>>
upvoted 8 times
...
Shamos
Most Recent 3 years, 7 months ago
>>> a = [1,4,5,2,3,8,7,9] >>> print (a[3]) 2 >>> Answer is A = 2 tested
upvoted 1 times
...
juniper
3 years, 8 months ago
A is 100% Correct !
upvoted 1 times
...
osmankh1
3 years, 8 months ago
"A" is correct The first list index in Python is a[0] not a[1]
upvoted 1 times
...
the13thsinner
3 years, 10 months ago
Answer is A
upvoted 1 times
...
Zolimbika
3 years, 11 months ago
2 instead, index starts from 0 positions going up
upvoted 1 times
...
passnow
3 years, 11 months ago
the first number count is zero so 3 should be the 4th place
upvoted 1 times
...
h4ck3r
3 years, 11 months ago
A not D
upvoted 1 times
...
sedra1
4 years, 3 months ago
correct a
upvoted 1 times
...
zakhar
4 years, 5 months ago
A is correct
upvoted 1 times
...
Sof_Bek
4 years, 5 months ago
list are always zero-based, so print(a[0]) is 1, and print(a[1]) is 4, and so on.
upvoted 2 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 ...