exam questions

Exam JN0-220 All Questions

View all questions & answers for the JN0-220 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hotbob
Highly Voted 5 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 4 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
4 years, 8 months ago
A is 100% Correct !
upvoted 1 times
...
osmankh1
4 years, 8 months ago
"A" is correct The first list index in Python is a[0] not a[1]
upvoted 1 times
...
the13thsinner
4 years, 10 months ago
Answer is A
upvoted 1 times
...
Zolimbika
4 years, 11 months ago
2 instead, index starts from 0 positions going up
upvoted 1 times
...
passnow
4 years, 11 months ago
the first number count is zero so 3 should be the 4th place
upvoted 1 times
...
h4ck3r
4 years, 11 months ago
A not D
upvoted 1 times
...
sedra1
5 years, 3 months ago
correct a
upvoted 1 times
...
zakhar
5 years, 5 months ago
A is correct
upvoted 1 times
...
Sof_Bek
5 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago