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 financial application and are busy developing a module that backs up the critical data on a separate hard drive.
You are required to decide which properties of the DriveInfo class to use and find the type of file system like FAT or NTFS and the drive free space and
the user disk quota should be ignored by the application.
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 financial application and are busy developing a module that backs up the critical data on a separate hard drive.
You are required to decide which properties of the DriveInfo class to use and find the type of file system like FAT or NTFS and the drive free space and
the user disk quota should be ignored by the application.
What should you do?

A.
Use the DriveFormat and TotalFreeSpace properties of the DriveInfo class.

B.
Use the DriveType and AvailableFreeSpace properties of the DriveInfo class.

C.
Use the VolumeLabel and TotalSize properties of the DriveInfo class.

D.
Use the DriveType and TotalSize properties of the DriveInfo class.

E.
Use the DriveFormat and AvailableFreeSpace properties of the DriveInfo class.

Explanation:
The only choice that would work with your requirement is the DriveFormat and TotalFreeSpace properties of the DriveInfo class; this will display what you need.
Incorrect Answers:
B: The DriveType property should not be used as it only specifies whether the drive is a DVD ROM or fixed drive etc. The AvailableFreeSpace property should also not be used as the user disk quota would be taken into account.
C: The VolumeLabel property should not be used in the scenario as it is used to give a name to the fixed disk.The TotalSize property should also not be used as it will specify the entire disk space not just free space.
D: The DriveType property should not be used as it only specifies whether the drive is a DVD ROM or fixed drive etc.
E: The AvailableFreeSpace property should not be used as the user disk quota would be taken into account.



Leave a Reply 1

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


mr_tienvu

mr_tienvu

I have the same idea. A