What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 graphical analysis application.
You are about to save a graphical object from the application which is a collection of x and y points, each represented by using a single precision floating point number.
You are required to keep the disk space usage to a minimum by the saved object.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 graphical analysis application.
You are about to save a graphical object from the application which is a collection of x and y points, each represented by using a single precision floating point number.
You are required to keep the disk space usage to a minimum by the saved object.
What should you do?

A.
Use the TextWriter class.

B.
Use the StreamWriter class.

C.
Use the StringWriter class.

D.
Use the BinaryWriter class.

Explanation:
The BinaryWriter class is used to store data in a binary format, which is used to provide the most compact format for storing data among the given classes.
Incorrect Answers:
A, B, C: The classes in question all save or store data in the text format, which will require more space than the binary format and therefore should not be used in the scenario.
To successfully read the user’s preferences you should make use of the IsolatedStorageFile.GetUserStoreForAssembly method should be used. The method retrieves assembly-specific and user-specific data from the isolated storage.
Incorrect Answers:
A: This method should not be used in the scenario as it is designed too retrieve isolated storage that is application domain and assembly specific. B, C: The settings in question should not be used because the methods are machine-scoped rather than user scoped.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


mr_tienvu

mr_tienvu

I have the same idea. D