Exam 350-401 All QuestionsBrowse all questions from this exam
Question 314

Refer to the exhibit.

What is the JSON syntax that is formed from the data?

    Correct Answer: B

    To convert the given information to a JSON format, we need to follow JSON syntax rules precisely. All keys and string values should be enclosed in double quotes. Numerical values should not be enclosed in quotes, and booleans should be in lowercase. Arrays are denoted by square brackets. The correct JSON format is: {"Name": "Bob Johnson", "Age": 75, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"]}. This format follows all the proper syntax rules of JSON.

Discussion
AliMo123

None of them is correct: the right answer is" {“Name”: “Bob Johnson”, “Age”: 75, “Alive”: true, “Favorite Foods”: [“Cereal”, “Mustard”, “Onions”]}

timtgh

Isn't that just option B, but typed with double quote marks instead of single?

Shri_Fcb10

Damn with cisco certs, like all the options are wrong even In option B instead of ':' between and age and 75 it is ',' which is wrong

BroekieOption: C

What is the JSON syntax that is formed the data? A . {Name: Bob, Johson, Age: 75, Alive: true, Favourite Foods. [Cereal, ”Mustard”, ”Onions]} B . {Name”, ”Bob” Johson”, ”Age”, 75, ”Alive”, true, ”favourite Foods”, [”Cereal, ”Mustard”, Onions”]} C . {“Name”: “Bob Johnson”,“Age”: 75,“Alive”: “true”,“Favorite Foods”: [“Cereal”,“Mustard”,“Onions”]} D . {Name”. ”Bob Johson”, ”Age”: Seventyfive, ”Alive” true, ”favourite Foods” ,[Cereal” ”Mustard” ”Onions”]} Answer: C

tatrman

C is wrong because booleans are like numbers "Alive": true not "Alive": "true"

danman32

Broekie mistyped the answers C doesn't have quotes around the boolean. however it doesn't have [] around the list of favorite foods.

xziomal9

The correct answer is: E. {“Name”:”Bob Johnson”,”age”:75,”alive”:true,”favorite foods”:[“Cereal”,”Mustard”,”Onions”]}

BurikOption: B

Once the text formatting is fixed, it's B. A. {Name: Bob Johnson, Age: 75, Alive: true, Favorite Foods: [Cereal, Mustard, Onions]} B. {"Name": "Bob Johnson", "Age": 75, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"]} C. {'Name': 'Bob Johnson', 'Age': 75, 'Alive': true, 'Favorite Foods': 'Cereal', 'Mustard', 'Onions'} D. {"Name": "Bob Johnson", "Age": Seventyfive, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"]} A is wrong because it's missing quotes of any kind. B is valid according to Json Validator. C is wrong because it uses single quotes and it's missing the array brackets. D is wrong because it doesn't use the proper numerical value for Age.

danman32

I believe single quotes are valid, as long as you are consistent

[Removed]Option: B

Not sure if everyone sees the same, but the format is some very weird characters. Instead of "quotes" it has the Euro sign, and what looks like Lambda symbol... Regardless, Assuming this is a formatting issue, the only correct format is B A: Wrong: has wrong syntax, its missing quotes around key-value pairs B: Correct: has a formatting issue, at least to me, but it appears to be a correct format C: Wrong: would have been correct, but it is missing the array brackets [ ] for the list of food D: Wrong: the key-value pair "age":seventyfive is incorrect syntax

a197cbf

Admins, please fix formatting of the original multiple choice. Instead of single quotes and commas there are a bunch of strange characters such as "ג€".

teikitizOption: B

A. {Name: Bob Johnson, Age: 75, Alive: true, Favorite Foods: [Cereal, Mustard, Onions]} B. {"Name":"Bob Johnson","Age": 75,"Alive": true,"Favorite Foods": ["Cereal","Mustard","Onions"]} C. {'Name': 'Bob Johnson', 'Age': 75, 'Alive': True, 'Favorite Foods': 'Cereal', 'Mustard', 'Onions'} D. {"Name":"Bob Johnson","Age": Seventyfive,"Alive": true,"Favorite Foods": ["Cereal","Mustard","Onions"]}

habibmangalOption: C

According to ChatGPT option C is correct

winderOption: B

how did I get this right, lol, it is B

xziomal9Option: A

A . {Name: Bob, Johson, Age: 75, Alive: true, Favourite Foods. [Cereal, ”Mustard”, ”Onions]} B . {Name”, ”Bob” Johson”, ”Age”, 75, ”Alive”, true, ”favourite Foods”, [”Cereal, ”Mustard”, Onions”]} C . {“Name”: “Bob Johnson”,“Age”: 75,“Alive”: “true”,“Favorite Foods”: [“Cereal”,“Mustard”,“Onions”]} D . {Name”. ”Bob Johson”, ”Age”: Seventyfive, ”Alive” true, ”favourite Foods” ,[Cereal” ”Mustard” ”Onions”]} E. {“Name”:”Bob Johnson”,”age”:75,”alive”:true,”favorite foods”:[“Cereal”,”Mustard”,”Onions”]}

Rockford

Correct would be this: { "Name":"Bob Johnson", "Age":75, "Alive": True, "Favourite foods": ["Cereal","Mustard","Onions"] }

Rockford

My bad! All is correct except: "Alive": True, Should be: "Alive": true, Lower case t on true...

SeMo0o0oOption: B

B is correct if we replace this weird ג€ with this ". I think it´s a typo from the website. { "Name": "Bob Johnson", "Age": 75, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"] }

SeMo0o0o

none of them is correct all keys and values should have " " and the Favoraite food should be followed with : [ ........ ]

kthekillerc

Provided answer is correct

error_909

{ "Name": "BoB Johnson", "Age": 25, "Alive": true, "Favorite Foods": [ "cereal", "Mustard", "Onions" ] }