exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 32 discussion

Actual exam question from Cisco's 200-901
Question #: 32
Topic #: 1
[All 200-901 Questions]

Refer to the exhibit.

The JSON data in the exhibit has been parsed and stored into a variable `data`. What returns the value `172.16.0.11`?

  • A. data['items']['host']['value']
  • B. data['items'][1]['host']['value']
  • C. data['items'][0]['host']['value']
  • D. data['items']['host'][1]
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
macxsz
Highly Voted 6 months ago
Selected Answer: C
Only C As only C has [0] which is the first element of the list
upvoted 6 times
...
kibo_muc
Most Recent 7 months ago
Selected Answer: C
C is correct - I was confused at first.. But i think: ITEMS - is a dictionary with a list as its value. This list has only one entry though - hence you need the positional arg 0 to target the nested K/V pairs.
upvoted 4 times
...
anonymous1966
8 months ago
without special chars: The JSON data in the exhibit has been parsed and stored in a variable, "data". What returns the value "172.16.0.11" ? A. data['items']['host'][1] B. data['items'][O]['host']['value'] C. data['items']['host']['value'] D. data['items']['1']['host']['value']
upvoted 2 times
...
bitstomp
9 months, 1 week ago
C - print(data["items"][0]["host"]["value"])
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 ...