exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 11 discussion

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

Refer to the exhibit.

Which Python data structure does my_json contain?

  • A. map
  • B. list
  • C. json
  • D. dict
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
FireTv
Highly Voted 5 years ago
D json is Data format, which is kept in python dictionary (my_json) data structure here in the example
upvoted 8 times
...
thanh3d
Highly Voted 5 years ago
D is right
upvoted 5 times
...
daniii89
Most Recent 4 months, 3 weeks ago
Selected Answer: D
D. dict The json.loads(json_string) function in Python converts a JSON-formatted string into a Python dictionary (dict).
upvoted 1 times
...
designated
8 months, 4 weeks ago
Selected Answer: D
The right answer is D. Dictionaries are analogous to "hashes" in some other languages. A dictionary is a data structure that stores simple key-value pairs. They make it very easy and fast to store and retrieve a value by supplying a key to be used as an index for that value. Values: The values in a Python dictionary can be anything, and like lists the types don't have to be consistent. Keys: A dictionary's keys have an important restriction: Whatever you want to use as a key has to be immutable and hash-able. This means that you could use a tuple as a key (immutable), but not a list (mutable). Also note that all of the basic data types that you learned about previously (int, float, bool, str, bytes ) are immutable and can be used as dictionary keys. You create a dictionary by using curly braces {] , separating a key from its value with a colon : , and separating the key-value pairs with commas. You can access and update elements using indexing; however, instead of using numerical sequential index numbers, you use the key as the index. You can add new elements simply by assigning a value to a new key.
upvoted 2 times
...
netlol
2 years, 8 months ago
In this exercise they only wanted to know if you know what does the "loads" function returns.. and it returns a dictionary in python
upvoted 1 times
...
Niki_nik
2 years, 9 months ago
Selected Answer: D
dict. the picture shows the key and the object
upvoted 1 times
...
macxsz
3 years ago
Selected Answer: D
Type is dict. D
upvoted 1 times
...
obiwan_kenobi
4 years ago
It should be "Ford Prefect"
upvoted 5 times
...
richard2865
4 years, 2 months ago
I will take your work for it, but I see a dictionary and a list here... {} and [].
upvoted 1 times
aprettyparrot
4 years, 1 month ago
A dict can have lists inside of it, the keys can point to any type
upvoted 1 times
...
nospampls
2 years, 7 months ago
The question is what does my_json contain. yes, json_string is a json containing also a list, but after loading json_string into my_json the json becomes a python dictionary so D is correct
upvoted 1 times
...
...
NitinPathak
4 years, 9 months ago
D is right answer.
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 ...