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.
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
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
FireTv
Highly Voted 5 years agothanh3d
Highly Voted 5 years agodaniii89
Most Recent 4 months, 3 weeks agodesignated
8 months, 4 weeks agonetlol
2 years, 8 months agoNiki_nik
2 years, 9 months agomacxsz
3 years agoobiwan_kenobi
4 years agorichard2865
4 years, 2 months agoaprettyparrot
4 years, 1 month agonospampls
2 years, 7 months agoNitinPathak
4 years, 9 months ago