READ Free Dumps For Microsoft- 70-483
Question ID 16996 | You are developing an application by using C#. The application will output the text string
"First Line" followed by the text string "Second Line".
You need to ensure that an empty line separates the text strings.
Which four code segments should you use in sequence? (To answer, move the appropriate
code segments to the answer area and arrange them in the correct order.)
|
Option A |
|
Correct Answer | A |
Explanation
Question ID 16997 | You are creating a console application named App1.
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?
|
Option A | DataContractSerializer serializer = new DataContractSerializer();
|
Option B | var serializer = new DataContractSerializer();
|
Option C | XmlSerlalizer serializer = new XmlSerlalizer();
|
Option D | var serializer = new JavaScriptSerializer();
|
Correct Answer | D |
Explanation Explanation: 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.