exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 8 discussion

Actual exam question from Microsoft's 70-483
Question #: 8
Topic #: 1
[All 70-483 Questions]

An application receives JSON data in the following format:

The application includes the following code segment. (Line numbers are included for reference only.)

You need to ensure that the ConvertToName() method returns the JSON input string as a Name object.
Which code segment should you insert at line 10?

  • A. Return ser.ConvertToType<Name>(json);
  • B. Return ser.DeserializeObject(json);
  • C. Return ser.Deserialize<Name>(json);
  • D. Return (Name)ser.Serialize(json);
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
JavaScriptSerializer.Deserialize<T> - Converts the specified JSON string to an object of type T.
References: http://msdn.microsoft.com/en-us/library/bb355316.aspx

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
apostolin
Highly Voted 5 years, 9 months ago
The correct answer is: C. Return ser.Deserialize<Name>(json);
upvoted 8 times
...
zzMichielzz
Most Recent 4 years, 8 months ago
C. YouC?
upvoted 2 times
...
cshine
4 years, 9 months ago
The correct answer is "C"
upvoted 1 times
...
lh2607
4 years, 11 months ago
C is correct
upvoted 1 times
...
rafaspimenta
5 years, 1 month ago
Bty, Any one use this in real world :) Newton-Json it's the answer
upvoted 2 times
...
robinnirola
5 years, 1 month ago
Ans : C , Return ser.Deserialize<Name>(json);
upvoted 2 times
...
tanujgyan
5 years, 2 months ago
Confirmed from the study material correct answer is C
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 ...