exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 46 discussion

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

You are creating a console application named Appl.
App1 retrieves data from the Internet by using JavaScript Object Notation (JSON).
You are developing the following code segment (line numbers are included for reference only):

You need to ensure that the code validates the JSON string.
Which code should you insert at line 03?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The JavaScriptSerializer Class Provides serialization and deserialization functionality for AJAX-enabled applications.
The JavaScriptSerializer class is used internally by the asynchronous communication layer to serialize and deserialize the data that is passed between the browser and the Web server. You cannot access that instance of the serializer. However, this class exposes a public API. Therefore, you can use the class when you want to work with JavaScript Object Notation (JSON) in managed code.

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
Oziriz
Highly Voted 5 years, 11 months ago
Isn't the correct answer D?
upvoted 56 times
...
dosper
Highly Voted 5 years, 4 months ago
It's option D https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.javascriptserializer.deserialize?view=netframework-4.8
upvoted 15 times
...
DaGrooveNL
Most Recent 3 years, 10 months ago
FINAL ANSWER: D
upvoted 3 times
...
noussa
3 years, 11 months ago
I think it was a mistake that he/she selected B cause if you read the explanation below the answer it's definitely D; The JavaScriptSerializer Class Provides serialization and deserialization functionality for AJAX-enabled applications. The JavaScriptSerializer class is used internally by the asynchronous communication layer to serialize and deserialize the data that is passed between the browser and the Web server. You cannot access that instance of the serializer. However, this class exposes a public API. Therefore, you can use the class when you want to work with JavaScript Object Notation (JSON) in managed code.
upvoted 2 times
...
demoinq
4 years ago
D is the answer
upvoted 2 times
...
ensa
4 years ago
D , need to get the data from web
upvoted 2 times
...
TanveerAhmad
4 years, 2 months ago
it is D, even explanation confirms.
upvoted 3 times
...
Bertus
4 years, 4 months ago
Option C should not work. It must be D https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.netdatacontractserializer.deserialize?view=netframework-4.8#System_Runtime_Serialization_NetDataContractSerializer_Deserialize_System_IO_Stream_
upvoted 1 times
...
BurgSharp
4 years, 5 months ago
It should be D
upvoted 3 times
...
Sujay
4 years, 7 months ago
D is the correct answer. no doubt
upvoted 3 times
...
mmarinov
4 years, 7 months ago
D is correct.
upvoted 3 times
...
whtvr
4 years, 9 months ago
I agree that it should be D, especially since explanation only talks about the JavaScriptSerializer, which is D...
upvoted 4 times
...
Gods_Kenny
5 years ago
D is the correct answer
upvoted 10 times
...
user123
5 years, 3 months ago
I think D is the correct answer.
upvoted 9 times
...
supersunny
5 years, 4 months ago
I thumb up for B.
upvoted 3 times
ArunPrem
4 years, 12 months ago
I never heard about NetDataContractSerializer.
upvoted 9 times
noussa
3 years, 11 months ago
D is Correct It exists but it's not the correct answer. Here is the definition of NetDataContractSerializer: Serializes and deserializes an instance of a type into XML stream or document using the supplied .NET Framework types. This class cannot be inherited.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago